JCoster
October 16th, 2009, 04:42 PM
Right, i'm stumped.
Attempting to package a jar in Eclipse with a program which uses the Java3D file, and I can't seem to export the J3D libraries with it successfully.
Whenever I attempt to run it on a machine where J3D is not natively installed it throws errors saying that it's not installed. However, am I right in thinking that if I package the libraries with it then there should be no problem?
When exporting, I choose to 'Package required libraries into generated JAR' and as such the libraries end up in the root of the exported .jar file.
I don't really understand build-paths and as such I think this may be where I'm going wrong?
I imported the libraries to the Java Build Path and my 'JARs and class folders on the build path:' read as follows:
- j3dcore.jar
- j3dutils.jar
- vecmath.jar
- JRE System Library
..and the jars are imported externally from '/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64'.
The jar runs perfectly on this machine (which obviously has j3d libs installed) but attempting to run it on Windows without it just throws errors.
Any help is greatly appreciated,
JC
Attempting to package a jar in Eclipse with a program which uses the Java3D file, and I can't seem to export the J3D libraries with it successfully.
Whenever I attempt to run it on a machine where J3D is not natively installed it throws errors saying that it's not installed. However, am I right in thinking that if I package the libraries with it then there should be no problem?
When exporting, I choose to 'Package required libraries into generated JAR' and as such the libraries end up in the root of the exported .jar file.
I don't really understand build-paths and as such I think this may be where I'm going wrong?
I imported the libraries to the Java Build Path and my 'JARs and class folders on the build path:' read as follows:
- j3dcore.jar
- j3dutils.jar
- vecmath.jar
- JRE System Library
..and the jars are imported externally from '/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/amd64'.
The jar runs perfectly on this machine (which obviously has j3d libs installed) but attempting to run it on Windows without it just throws errors.
Any help is greatly appreciated,
JC