Re: [jnc-users] exe won't run on one of my computers
Status: Beta
Brought to you by:
soapy
From: paul s. <pgs...@ya...> - 2010-08-03 17:32:15
|
________________________________ From: Marco Trudel <ma...@mt...> To: paul smith <pgs...@ya...> Cc: jav...@li... Sent: Tue, 3 August, 2010 11:35:10 Subject: Re: [jnc-users] exe won't run on one of my computers There was no message. Here's the compiler output: creating "con4sc3.exe" for Windows - main compilation step D:\c4\con4sc3.java:2: warning: The import java.lang.Math is never used import java.lang.Math; ^^^^^^^^^^^^^^ D:\c4\con4sc3.java:3: warning: The import java.applet is never used import java.applet.*; ^^^^^^^^^^^ D:\c4\con4sc3.java:7: warning: The serializable class con4sc3 does not declare a static final serialVersionUID field of type long public class con4sc3 extends Frame implements KeyListener, ActionListener { ^^^^^^^ D:\c4\con4sc3.java:702: warning: The serializable class AboutDialog does not declare a static final serialVersionUID field of type long class AboutDialog extends Dialog implements ActionListener{ ^^^^^^^^^^^ D:\c4\con4sc3.java:769: warning: The serializable class QuitDialog does not declare a static final serialVersionUID field of type long class QuitDialog extends Dialog implements ActionListener{ ^^^^^^^^^^ 5 problems (5 warnings) - packing binary done > Both computers are running vista and the program uses some graphics from > awt. > When I do the same test with "helloworld" it runs on both computers. Because it doesn't need any additional dlls at runtime. Hope that helps Yes. I copied the lib directory and it works. Thanks. I have to start the application twice from the console to get it to display. The first time the application runs and finishes without displaying the graphics - that is it goes back to the command prompt on the console. The second time it works correctly. It's the same on both machines (running vista). Marco > Please can anyone help with the problem? > Paul. > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > > > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users Hey Paul On 02.08.2010 20:56, paul smith wrote: > I compiled a program on the machine where I installed JNC and it worked > fine. Did you read the compilation messages? See below... > I then copied the the exe file to another computer and it gave the > following output when it ran: > Exception in thread "main" java.lang.unsatisfiedlinkerror: util can't > open the module > at > java.runtime._load(con4sc3.exe)..... Sounds like you didn't copy the "lib" directory that was put in the same location as the compiled binary. There is a message at compilation time explaining that you need that directory. |