Skip to main content

New application, new woes--won't launch

3 replies [Last post]
afishionado
Offline
Joined: 2004-05-26

Hello,

After slogging through a rewrite of all the tutorials, I want to do something FUN now. :-) I have a very early version working of my new program, "PeriodicTable3D".

http://img171.imageshack.us/img171/5620/periodictable3dscreenshotzw9.jpg

I haven't implemented the actual 3D features yet, so at the moment it's just a normal periodic table of the elements that floats around in lg3d.

Originally, I was manually compiling and jarring the program, then manually copying the program into ext/apps, and all was well.

Then, I decided to integrate it with lg3d-incubator, and build with ant. ant reports no errors, but for whatever reason, lg3d isn't wanting to run the jar built with ant.

The icon shows up in lg3d, so it successfully read the .lgcfg file and found the icon, but the program won't run when I click the icon. lg3d spits out on the command line:

WARNING: Executing java app in the same JVM: java org.jdesktop.lg3d.apps.periodictable.PeriodicTable3D
WARNING: Failed to find class in classpath :

No, I didn't cut the second line off when I copied it. It ends right after the colon. Arrgh.

lgserver.log ends with:

WARNING: Executing java app in the same JVM: java org.jdesktop.lg3d.apps.periodictable.PeriodicTable3D
Using ClassLoader org.jdesktop.lg3d.displayserver.LgClassLoader@1445748 ID = 44
Classpath =
Aug 28, 2006 6:14:16 PM org.jdesktop.lg3d.utils.action.AppLaunchAction$1 run
WARNING: Failed to find class in classpath :
java.lang.ClassNotFoundException: org.jdesktop.lg3d.apps.periodictable.PeriodicTable3D
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jdesktop.lg3d.utils.action.AppLaunchAction$1.run(AppLaunchAction.java:77)
at java.lang.Thread.run(Thread.java:619)

Now, I'd assume that I had just made a typo somewhere, maybe in the ant tasks, but every once in a while, out of the blue, the program will randomly work perfectly. I've tried for three days, but I absolutely cannot figure out what triggers it to work correctly. :-( As soon as I restart lg3d, my program stops working again.

I'm stumped. Ideas?

William

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
afishionado
Offline
Joined: 2004-05-26

I moved the icon from the task bar to the "Early Prototypes" menu (where it should have been anyway) and now it works fine.

Go figure.

afishionado
Offline
Joined: 2004-05-26

Well, the app is now in the incubator. It's not feature-complete, but it's functional.

There's one funky little bug I still haven't, and I would be curious to see if anybody else has any input on it.

Menu -> Demos -> Early Prototypes -> PeriodicTable3D launches the program. After it launches, double-click the periodic table to enter 3D mode, then dock the program on the right-hand side of the screen. The Z-ordering then gets wonky.

I see similar behaviour if I undock the application and rotate the scene by click-dragging the Java coffee cup. Any ideas on whether this might be a bug in my application, the LG3D server, or Java3D itself?

William

paulby
Offline
Joined: 2003-06-13

The wonky rendering is due to the age old problem of determining the correct rendering order for transparent geometry.

In the last couple of weeks I added a TransparencyOrderedGroup class to lg3d. You should be able to use this to force your components to be rendered in the correct order. If you assume the view does not move you can just assign a static ordering.