Skip to main content
gamedev.net
🔒 Locked

[java] can't run gl4java applet

Started by fenghus 2 replies 1k views
Original Post
fenghus
fenghus
Hi! I can''t seem to run my compiled java applet somehow. All demos on the gl4java website work great, but if i compile a gl4java applet and try to run it i get: Sorry, can''t find the library: GL4JavaJauGljJNI13 java.lang.UnsatisfiedLinkError: C:\WINDOWS\SYSTEM\GL4JavaJauGljJNI13.dll: Det gÕ r inte att hitta en DLL-fil som beh÷vs f÷r att k÷ra programmet (The last line is swedish for "Can''t find a dll file needed to run the program") There IS a file named C:\WINDOWS\SYSTEM\GL4JavaJauGljJNI13.dll and I have the same problem on another w2k computer, so i''m pretty sure the file exists in the correct place... Pointers, anyone? --Michael
WayfarerX
WayfarerX
Here''s what Sun says about how dlls are found in Win32:

Win32:
The Win32 VM uses a search path that includes the current directory for the process or one of the directories listed in the PATH environment variable.

So make sure C:\windows\system\ is in your PATH environment variable, or try putting the dll in C:\windows\system32\.


"If consquences dictate our course of action, it doesn''t matter what''s right, it''s only wrong if you get caught."
- Tool

"There is no reason good should not triumph at least as often as evil. The triumph of anything is a matter of organization. If there are such things as angels, I hope that they're organized along the lines of the mafia." -Kurt Vonnegut
fenghus
fenghus

Thanks!

That did it. I explicitly set the path for the java.exe in JCreator to c:\jdk1.4\jre\bin\java.exe and now it works.

--Michael

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.