Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 9
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 7943 times and has 8 replies Next Thread
chief3rd
Newbie




Joined: Mar 20, 2009
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
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]
[Mar 20, 2009, 5:51:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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 ?

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...ane.html#W3C_LENGTH_UNITS ).


----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Mar 20, 2009, 7:44:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Haripriya
Newbie




Joined: Aug 16, 2010
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Cannot compile and run SweetHome 3D from

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.
[Aug 16, 2010, 10:40:48 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Cannot compile and run SweetHome 3D from

What error do you get?
See also this subject.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Aug 16, 2010, 10:47:14 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Haripriya
Newbie




Joined: Aug 16, 2010
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
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"
[Aug 16, 2010, 10:56:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Haripriya
Newbie




Joined: Aug 16, 2010
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Aug 16, 2010, 10:57:42 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
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
[Aug 16, 2010, 11:04:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Cannot compile and run SweetHome 3D from

An by the way no SMS words on forum please. devilish
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Aug 16, 2010, 11:06:14 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Haripriya
Newbie




Joined: Aug 16, 2010
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Cannot compile and run SweetHome 3D from

Yes, that was a typo and I missed the hyphen there.Thank you and sorry for shorthands.
[Aug 16, 2010, 11:35:04 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved