Page 1 of 1

unable to install - version mismatch?

Posted: Thu 21. Aug 2008, 10:14
by CM

made a download and followed the "Getting Started" instruction. (System: Ubuntu 7.10, java version 1.6)

trying to do

Code: Select all

$ javac de/jreality/tutorial/*.java

Code: Select all

de/jreality/tutorial/ error: Texture2D cannot be resolved
de/jreality/tutorial/ error: ViewerApp cannot be resolved
367 problems (367 errors)

Code: Select all

$ java jReality.jar
I merely get

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: jReality/jar
Guess something is plain wrong on my side. A java version mismatch? Does the version need to be exactly 1.5, not >=1.5? In this case: Where do I get 1.5 for my system?
Or is it possible that I overlooked something else? Any hints?


Posted: Thu 21. Aug 2008, 12:33
by steffen

I have just updated the getting started section, please follow the instructions there and let me know if there are problems. The problem you mentioned should be fixed. Java could not find the jReality classes, which need to be added to the classpath.

I have also updated the Download section, please use the latest jReality.jar and

Good luck,


Posted: Thu 21. Aug 2008, 13:30
by CM

Well, you probably realized that I have no idea whatsoever with Java. So all I can provide you with is the info that after running

Code: Select all

$ javac -cp ../jReality.jar:../lib/jtem-beans.jar de/jreality/tutorial/*/*.java
I now get 65 warningsg, no error.


Posted: Thu 21. Aug 2008, 13:35
by steffen
And can you run the examples?

Posted: Thu 21. Aug 2008, 13:53
by CM
Yes, although trying to import a povray file does not work and opening a 'bean shell' gives

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: jterm/JTerm
        at de.jreality.ui.viewerapp.ViewerApp.setupBeanShell(
        at de.jreality.ui.viewerapp.ViewerApp.getBeanShell(
        at de.jreality.ui.viewerapp.ViewerApp.getContent(
        at de.jreality.ui.viewerapp.ViewerApp.update(
        at de.jreality.ui.viewerapp.actions.view.ToggleBeanShell.actionPerformed(
        at javax.swing.AbstractButton.fireActionPerformed(
        at javax.swing.AbstractButton$Handler.actionPerformed(
        at javax.swing.DefaultButtonModel.fireActionPerformed(
        at javax.swing.JToggleButton$ToggleButtonModel.setPressed(
        at javax.swing.AbstractButton.doClick(
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
        at java.awt.AWTEventMulticaster.mouseReleased(
        at java.awt.Component.processMouseEvent(
        at javax.swing.JComponent.processMouseEvent(
        at java.awt.Component.processEvent(
        at java.awt.Container.processEvent(
        at java.awt.Component.dispatchEventImpl(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.LightweightDispatcher.retargetMouseEvent(
        at java.awt.LightweightDispatcher.processMouseEvent(
        at java.awt.LightweightDispatcher.dispatchEvent(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Window.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.EventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(
Do I need to link additional files in?


Posted: Thu 21. Aug 2008, 14:55
by steffen
Yes, add all files in the to the classpath... You can also set an environment variable CLASSPATH instead of passing it all via command line.

I guess the povray import problem is independent of the classpath, please give more details. However, the reader supports only a very small subset as far as I know.