|
|
I'm trying to install the Java3D API in Foundation. What the heck is a java.library.path? |
| I followed the directions in this Borland FAQ:
http://community.borland.com/article/0,1410,20951,00.html But I don't understand the part about "java.library.path".
The end result, the application compiles, but fails when it tries to run (error output below). java.lang.UnsatisfiedLinkError: no J3D in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
Is doing this restricted in JBuilder Foundation?
Open your project properties, and in the VM Parameters field, add this: -Djava.library.path=c:\path\to\java3d's-dlls\here
Perhaps something like: -Djava.library.path=c:\jdk1.2.2\lib\windows Or whatever the path actually is for that package. I don't use it so I can't look it up for you. This is necessary because the dll files containing the native code portions of the Java 3D API aren't in a directory windows will search when the JVM asks the OS to load the J3D.dll file. The java.library.path variable tells the JVM to ask windows to look in the specified directory as well. However, the behavior of this variable seems to be platform-dependent. On Linux this value is appended to the system default search path for libraries, but on Windows it seems to OVERRIDE the system default. You may need to list additional windows directories in that java.library.path as well, separated by your platform's standard path separator. (I think it's a ; on windows, but it's : on unix.)
| |
| [Append to This Answer] | |
| 2001-Feb-17 5:22pm |
| Previous: |
|
| Next: |
|
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||