|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Running in Netbeans; a couple of problems |
|
| Print at Dec 20, 2025, 3:15:08 AM | |
| Posted by dtgriscom at May 21, 2012, 1:25:13 AM |
|
Running in Netbeans; a couple of problems I'm trying to run SW3D in Netbeans, mainly so I can play with the UI a bit (e.g. change the frame rate of the generated videos). I've hit two problems, one of which I worked around: 1) I set up the source tree, and added the libraries in the lib/ directory, but was still getting lots of missing class errors (all in the package javax.jnlp). Then, I tried adding the library libtest/jnlp.jar, and (almost) all the errors in the main source packages went away (there were still errors in the test packages, which went away when I linked in the rest of the libraries in libtest/). I'd expect libraries in libtest/ to be needed for the test classes, but not the main; perhaps jnlp.jar should be moved to the lib/ directory. 2) The remaining error is in com.eteks.sweethome3d.j3d.Canvas3DManager, which uses the undefined methods javax.media.j3d.VirtualUniverse.removeRenderingErrorListener and javax.media.j3d.VirtualUniverse.addRenderingErrorListener. Perhaps this depends on a later version of javax.media.j3d.VirtualUniverse than I have? (I'm using OS X 10.6.8; "java -version" prints the following: java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-10M3635) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode) .) Ideas? Thanks, Dan |
| Posted by Puybaret at May 21, 2012, 11:49:05 PM |
|
Re: Running in Netbeans; a couple of problems As indicated in the README.TXT file you have to set java.library.path property to lib:lib/macosx ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by dtgriscom at May 22, 2012, 3:06:35 AM |
|
Re: Running in Netbeans; a couple of problems I've already added the libraries individually. I just tried adding "-Djava.ext.dirs=lib:lib/macosx" (no quotes) to the Netbeans project's Run/VM Options value, but I still get the same error (even after restarting Netbeans). The error is kind of strange, since everything else is present, including the javax.media.j3d.RenderingErrorListener class, which (AFAIK) is only used by the apparently missing method. I threw in a piece of code at the beginning of the com.eteks.sweethome3d.SweetHome3D.main() method: Properties p = System.getProperties();and then ran, and got the following output: Have no file for /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar... any ideas? Thanks, Dan [Note from moderator: cut long lines in code section] |
| Posted by Puybaret at May 22, 2012, 8:15:24 AM |
|
Re: Running in Netbeans; a couple of problems The error you report means the java.ext.dirs property you set didn't work. You have to override the default folders order where extension libraries come from, otherwise Java 3D 1.3.1 installed by default in the system will be picked. Try to change the paths in java.ext.dirs by full paths. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 20, 2025, 3:15:08 AM |