Cannot compile and run SweetHome 3D from src

This topic has been viewed 8405 times and has 8 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
chief3rd
Posts: 1
Joined: Fri Mar 20, 2009 5:51 pm

Cannot compile and run SweetHome 3D from src

Post by chief3rd »

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]
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Cannot compile and run SweetHome 3D from

Post by Puybaret »

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/*checkout*/sweethome3d/SweetHome3D/README.TXT?revision=1.15 ?

Under Ubuntu, I guess you used Java 1.4 and not Java 1.5 compiler from the errors you reported ( see the mention "since 1.5" at http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JEditorPane.html#W3C_LENGTH_UNITS ).


Emmanuel Puybaret, Sweet Home 3D creator
Haripriya
Posts: 4
Joined: Mon Aug 16, 2010 7:58 am

Re: Cannot compile and run SweetHome 3D from

Post by Haripriya »

Hi Puybaret,

I am facing the same problem though I have defined VM arguments as per your instruction. Can you please guide me how to make it working in eclipse ?

Thanks in advance.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Cannot compile and run SweetHome 3D from

Post by Puybaret »

What error do you get?
See also this subject.
Emmanuel Puybaret, Sweet Home 3D creator
Haripriya
Posts: 4
Joined: Mon Aug 16, 2010 7:58 am

Re: Cannot compile and run SweetHome 3D from

Post by Haripriya »

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"
Haripriya
Posts: 4
Joined: Mon Aug 16, 2010 7:58 am

Re: Cannot compile and run SweetHome 3D from

Post by Haripriya »

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.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Cannot compile and run SweetHome 3D from

Post by Puybaret »

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Cannot compile and run SweetHome 3D from

Post by Puybaret »

An by the way no SMS words on forum please. [>:)]
Emmanuel Puybaret, Sweet Home 3D creator
Haripriya
Posts: 4
Joined: Mon Aug 16, 2010 7:58 am

Re: Cannot compile and run SweetHome 3D from

Post by Haripriya »

Yes, that was a typo and I missed the hyphen there.Thank you and sorry for shorthands.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest