Problem with tutorial examples in latest release

Problems with Java, jogl, etc?
Post Reply
NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Problem with tutorial examples in latest release

Post by NormanGraf » Thu 14. Jul 2011, 01:41

Hi,
I just tried updating to the latest release. As part of that procedure I try to run the de.jreality.tutorial.geom.Cube05 example. I'm encountering the following error:
  • $ java de.jreality.tutorial.geom.Cube05
    Jul 13, 2011 4:33:41 PM de.jtem.jrworkspace.plugin.simplecontroller.SimpleController startup
    SEVERE: java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:997)
    at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1323)
    at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.startup(SimpleController.java:394)
    at de.jreality.plugin.JRViewer.startup(JRViewer.java:387)
    at de.jreality.plugin.JRViewer.display(JRViewer.java:537)
    at de.jreality.tutorial.geom.Cube05.main(Cube05.java:91)
    Caused by: java.lang.NoSuchMethodError: de.jreality.plugin.basic.Scene.addChangeListener(Ljavax/swing/event/ChangeListener;)V
    at de.jreality.plugin.scene.Lights.install(Lights.java:90)
    at de.jreality.plugin.scene.Lights.install(Lights.java:115)
    at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.activatePlugin(SimpleController.java:552)
    at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController$1.run(SimpleController.java:355)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Possibly no jogl in classpath!
    Exception in thread "main" java.lang.NoSuchMethodError: de.jreality.plugin.basic.Scene.addChangeListener(Ljavax/swing/event/ChangeListener;)V
    at de.jreality.plugin.basic.View.install(View.java:238)
    at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.activatePlugin(SimpleController.java:552)
    at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.getPlugin(SimpleController.java:585)
    at de.jreality.plugin.JRViewer.getPlugin(JRViewer.java:279)
    at de.jreality.plugin.JRViewer.getViewer(JRViewer.java:287)
    at de.jreality.plugin.JRViewer.display(JRViewer.java:538)
    at de.jreality.tutorial.geom.Cube05.main(Cube05.java:91)
Before I start debugging I just wanted to check whether anyone else has tried running the tutorial examples.
Thanks,
Norman

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Problem with tutorial examples in latest release

Post by Andre » Thu 14. Jul 2011, 09:33

For me, everything runs fine.
NormanGraf wrote:Hi,
Possibly no jogl in classpath!
Exception in thread "main" java.lang.NoSuchMethodError: de.jreality.plugin.basic.Scene.addChangeListener(Ljavax/swing/event/ChangeListener;)V
at de.jreality.plugin.basic.View.install(View.java:238)
at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.activatePlugin(SimpleController.java:552)
at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.getPlugin(SimpleController.java:585)
at de.jreality.plugin.JRViewer.getPlugin(JRViewer.java:279)
at de.jreality.plugin.JRViewer.getViewer(JRViewer.java:287)
at de.jreality.plugin.JRViewer.display(JRViewer.java:538)
at de.jreality.tutorial.geom.Cube05.main(Cube05.java:91)
[/list]

Before I start debugging I just wanted to check whether anyone else has tried running the tutorial examples.
Thanks,
Norman
What system are you using (windows, linux, mac) ?
Because you are not using jogl, please read the manual:
Eclipse:
http://www3.math.tu-berlin.de/jreality/ ... p_tutorial

or Command-Line (not really up to date, but a good guide anyway):
http://www3.math.tu-berlin.de/jreality/ ... _tutorials

NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Re: Problem with tutorial examples in latest release

Post by NormanGraf » Fri 15. Jul 2011, 05:45

Hello Andre,
Apologies for not providing sufficient information. I am building on Windows, using a shell script to update an existing installation. I posted this script in the "Error installing with ant" thread and I've used it to successfully upgrade a few times before and it has always worked. The "Possibly no jogl in classpath!" warning has not been an issue in the past.
I'll start from a fresh installation and follow the build instructions again to see if that resolves my problem.
Thanks,
Norman

Andre
Posts: 226
Joined: Fri 18. Sep 2009, 11:30

Re: Problem with tutorial examples in latest release

Post by Andre » Fri 15. Jul 2011, 10:59

NormanGraf wrote:Hello Andre,
Apologies for not providing sufficient information. I am building on Windows, using a shell script to update an existing installation. I posted this script in the "Error installing with ant" thread and I've used it to successfully upgrade a few times before and it has always worked. The "Possibly no jogl in classpath!" warning has not been an issue in the past.
I'll start from a fresh installation and follow the build instructions again to see if that resolves my problem.
Thanks,
Norman

Hi NormanGraf,

you don't have the possibility to set up jReality with eclipse? It's much easier to handle a bunch of java projects with eclipse.

best
andre

NormanGraf
Posts: 18
Joined: Wed 1. Sep 2010, 23:53

Re: Problem with tutorial examples in latest release

Post by NormanGraf » Fri 15. Jul 2011, 23:12

Hello Andre,
I use an IDE for most of my work, but it just happens to be Netbeans.
Since you report no errors building and running the examples I will
start debugging my installation. I may install eclipse just to see if that
resolves this issue. If so, I'll most likely use that as a starting point
to developing a Netbeans project.
Thanks, and enjoy the weekend,
Norman

Post Reply