Problems with Java, jogl, etc?
-
CM
- Posts: 3
- Joined: Fri 15. Aug 2008, 15:11
Post
by CM » Thu 21. Aug 2008, 10:14
Hi,
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
gives
Code: Select all
<snip>
;
^^^^^^^^^^^^^
de/jreality/tutorial/TextureExample.java:86: error: Texture2D cannot be resolved
tex.setApplyMode(Texture2D.GL_MODULATE);
^^^^^^^^^
de/jreality/tutorial/TextureExample.java:88: error: ViewerApp cannot be resolved
ViewerApp.display(sgc);
^^^^^^^^^
367 problems (367 errors)
with
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?
TIA
Chris
-
steffen
- Posts: 186
- Joined: Fri 16. Jun 2006, 13:30
- Location: TU Berlin
-
Contact:
Post
by steffen » Thu 21. Aug 2008, 12:33
Hi,
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 jReality-tutorial.zip.
Good luck,
Steffen.
-
CM
- Posts: 3
- Joined: Fri 15. Aug 2008, 15:11
Post
by CM » Thu 21. Aug 2008, 13:30
Thanks!
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.
Chris
-
steffen
- Posts: 186
- Joined: Fri 16. Jun 2006, 13:30
- Location: TU Berlin
-
Contact:
Post
by steffen » Thu 21. Aug 2008, 13:35
And can you run the examples?
-
CM
- Posts: 3
- Joined: Fri 15. Aug 2008, 15:11
Post
by CM » Thu 21. Aug 2008, 13:53
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(ViewerApp.java:638)
at de.jreality.ui.viewerapp.ViewerApp.getBeanShell(ViewerApp.java:840)
at de.jreality.ui.viewerapp.ViewerApp.getContent(ViewerApp.java:799)
at de.jreality.ui.viewerapp.ViewerApp.update(ViewerApp.java:445)
at de.jreality.ui.viewerapp.actions.view.ToggleBeanShell.actionPerformed(ToggleBeanShell.java:77)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Do I need to link additional files in?
Chris
-
steffen
- Posts: 186
- Joined: Fri 16. Jun 2006, 13:30
- Location: TU Berlin
-
Contact:
Post
by steffen » Thu 21. Aug 2008, 14:55
Yes, add all files in the jRreality-3rd-party.zip 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.