Re: Using Sweet Home 3D in Eclipse
by binadnsh77 » Sat Mar 23, 2013 3:00 am
Thanks Emmanuel for your quick response. On setting the VM arguments I was able to run it through eclipse on Linux and Windows2008, but I was not able to run it through eclipse on Windows 7 (32 bit). I am using SweetHome3D-3.7-src. Also I am not still not able to run the jar created through command line. Can you tell me how we can run it through command line. How do we pass the VM arguments on command line. I tried
java -jar SweetHome3D -Djava.ext.dirs=lib:lib/linux/i386
but it is showing an error---
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no j3dcore-ogl in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:231)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:200)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:157)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:987)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:299)
at javax.media.j3d.GraphicsConfigTemplate3D.getBestConfiguration(GraphicsConfigTemplate3D.java:321)
at java.awt.GraphicsDevice.getBestConfiguration(GraphicsDevice.java:175)
at com.eteks.sweethome3d.j3d.Component3DManager.<init>(Component3DManager.java:65)
at com.eteks.sweethome3d.j3d.Component3DManager.getInstance(Component3DManager.java:103)
at com.eteks.sweethome3d.SweetHome3D.addComponent3DRenderingErrorObserver(SweetHome3D.java:506)
at com.eteks.sweethome3d.SweetHome3D.init(SweetHome3D.java:398)
at com.eteks.sweethome3d.SweetHome3D.main(SweetHome3D.java:298)
... 5 more
Please if you can help me with this.