problem with generating a jar file

202 views
Skip to first unread message

ljubisa

unread,
Jun 15, 2011, 7:39:26 AM6/15/11
to Jzy3d
I got it to work in eclipse, I have followed the instructions in the
"frequently asked questions" segment, but I can not get it to work as
a standalone JAR file :( and I'm stuck

please help - this is the error:


D:\!My Documents\!BSC Projekat\eclipse2\Eclipse1\proba - vizuelizacija
new sa up
akovanim DLL\export>java -jar vizuelizacija_v1_upakovani_DLL_JAR.jar

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:
56)
Caused by: java.lang.UnsatisfiedLinkError: no jogl in
java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at
com.sun.opengl.impl.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:
178)
at com.sun.opengl.impl.NativeLibLoader.access
$000(NativeLibLoader.java:48)
at com.sun.opengl.impl.NativeLibLoader
$DefaultAction.loadLibrary(NativeLibLoader.java:79)
at
com.sun.opengl.impl.NativeLibLoader.loadLibrary(NativeLibLoader.java:
102)
at com.sun.opengl.impl.NativeLibLoader.access
$200(NativeLibLoader.java:48)
at com.sun.opengl.impl.NativeLibLoader
$1.run(NativeLibLoader.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at
com.sun.opengl.impl.NativeLibLoader.loadCore(NativeLibLoader.java:108)
at
com.sun.opengl.impl.windows.WindowsGLDrawableFactory.<clinit>(Windows
GLDrawableFactory.java:60)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:
106)
at
javax.media.opengl.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:
409)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:117)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:86)
at
org.jzy3d.plot3d.rendering.canvas.CanvasAWT.<init>(CanvasAWT.java:45)

at
org.jzy3d.plot3d.rendering.canvas.CanvasAWT.<init>(CanvasAWT.java:40)

at org.jzy3d.chart.Chart.initializeCanvas(Chart.java:65)
at org.jzy3d.chart.Chart.<init>(Chart.java:56)
at CustomGraph.<init>(CustomGraph.java:492)
at Visualizer.<init>(Visualizer.java:221)
at Visualizer.main(Visualizer.java:227)
... 5 more

also I did not understand the description:
-----
2. I have checked out the sources but I don't know how to generate the
jars.

You should run the build.xml file at the project root. Its default
target simply releases the API. If you are working with Eclipse,
select folders "src/api" and "src/bridge", right click the selection,
click "export" and then "jar".
-----

can't find the build.xml in the root of the examples, also the folders
"src/api" and "src/bridge" does not exist!

:(

ljubisa

unread,
Jun 15, 2011, 8:29:31 AM6/15/11
to Jzy3d
i have also done everything stated in this thread
http://groups.google.com/group/jzy3d/browse_thread/thread/f24eb119438f6f38
- line by line, and it didn't help with generated runnable JAR file

Martin Pernollet

unread,
Jun 15, 2011, 11:15:17 AM6/15/11
to jz...@googlegroups.com


2011/6/15 ljubisa <nlj...@gmail.com>

also I did not understand the description:


This describes how to generate the jar from eclipse if your are working with full jzy3d project synchronized through Google Code SVN server. You can do the same by running the ant build file from eclipse (right click > run as)
If you have downloaded the jars from the download section, then you don't have to pay attention to this. The best is to use the eclipse project package that is bundled with a jar release of jzy3d.
 
-----
2. I have checked out the sources but I don't know how to generate the
jars.

You should run the build.xml file at the project root. Its default
target simply releases the API. If you are working with Eclipse,
select folders "src/api" and "src/bridge", right click the selection,
click "export" and then "jar".
-----

can't find the build.xml in the root of the examples, also the folders
"src/api" and "src/bridge" does not exist!

:(
They exist if you checkout the library:

Martin Pernollet

unread,
Jun 15, 2011, 11:16:49 AM6/15/11
to jz...@googlegroups.com
Download: http://code.google.com/p/jzy3d/downloads/list

requires:
and the binaries net.masagroup.*[platform], according to your platform.

2011/6/15 ljubisa <nlj...@gmail.com>
Reply all
Reply to author
Forward
0 new messages