Joined: Mar 20, 2009
Post Count: 1
Status:
Offline
Cannot compile and run SweetHome 3D from src
I have been trying to compile and run sweethome 3d 1.6 and 1.7 from src using eclipse. I have a project to do some testing on the software.
In Eclipse on Windows Vista Basic 32 bit I am able to compile SW3D however when I try to run as applications I am getting errors such as:
20-Mar-2009 12:26:37 PM javax.media.j3d.NativePipeline getSupportedOglVendor SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no j3dcore-d3d 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 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.Canvas3D.<clinit>(Canvas3D.java:3881) at com.microcrowd.loader.java3d.max3ds.Main.init(Main.java:121) at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.java:267) at java.lang.Thread.run(Unknown Source) I tried adding the dll files in lib/windows as a class directory but it has not worked.
In addition I tried using ubuntu 8.10 instead and eclipse gives me 4 errors which prevent it from compiling. These 4 errors are: JEditorPane.W3C_LENGTH_UNITS cannot be resolved - HelpPane.java line 236 PrintMode cannot be resolved - FurnitureTable.java - line 437 The method setLocationByPlatform(boolean) is undefined for the type JFrame - HelpPane.java line 385 The method setLocationByPlatform(boolean) is undefined for the type JFrame - HomeFramePane.java line 323
Any help whatsoever would be greatly appreciated. Thanks
[Note: this thread was started on sourceforge.net forums]
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Cannot compile and run SweetHome 3D from
Under Windows, did you try to "open Run Dialog in Eclipse, select the Arguments tab of the target application, and add to the VM arguments text field the option -Djava.ext.dirs=lib;lib/windows" as mentioned in the README.TXT file available at project root and at http://sweethome3d.cvs.sourceforge.net/viewvc.../README.TXT?revision=1.15 ?
Joined: Aug 16, 2010
Post Count: 4
Status:
Offline
Re: Cannot compile and run SweetHome 3D from
I am getting bellow error.
java.lang.NoClassDefFoundError: Djava/ext/dirs=E:\SweetHome3D_Workspace\SweetHome3D\lib\;E:\SweetHome3D_Workspace\SweetHome3D\lib\windows\ Caused by: java.lang.ClassNotFoundException: Djava.ext.dirs=E:\SweetHome3D_Workspace\SweetHome3D\lib\;E:\SweetHome3D_Workspace\SweetHome3D\lib\windows\ at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Exception in thread "main"
Joined: Aug 16, 2010
Post Count: 4
Status:
Offline
Re: Cannot compile and run SweetHome 3D from
Where "E:\SweetHome3D_Workspace\SweetHome3D\lib" is my path to "lib" and "lib\window" folder for dll. I hv given this path in my VM argument as per yr instruction.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Cannot compile and run SweetHome 3D from
Ouch! I think you should learn more about java options system before going further... If you don't know the basics, you won't go very far! You must have forgotten the hyphen in front of the D letter!
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator