Re: [jnc-users] exe won't run on one of my computers
Status: Beta
Brought to you by:
soapy
From: Marco T. <ma...@mt...> - 2010-08-03 19:39:38
|
On 03.08.2010 19:32, paul smith wrote: > > > ------------------------------------------------------------------------ > *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 > > 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. > There was no message. Here's the compiler output: > <snip> Well, delete the lib directory and press compile again ;-) The message is only shown at the first compilation when the additional files are being copied. At least as far as I remember... It's quite a while ago I programmed that. > > > 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). There's a thread race in GCJ. AWT is almost always running into it. SWT is working much better... Hope that helps Marco |