Installation problems

Problems with Java, jogl, etc?
Post Reply
jrodriguez
Posts: 5
Joined: Mon 19. Apr 2010, 21:43

Installation problems

Post by jrodriguez » Mon 19. Apr 2010, 21:56

Hello.

I've been trying to install jReality in vain. I discovered the "getting started document" and followed it until I could, but nothing worked. I say 'until I could' because in the latest 3rd party packages I couldn't find jtem-beans.jar. Browsing older packages I found one, but apparently that wasn't the only cause for my problems.

So, in summary, I downloaded the latest packages and followed the instructions to compile the tutorial, copied jtem-beans.jar from an older release and then I typed:

Code: Select all

javac -cp ../jReality.jar:../lib/jtem-beans.jar de/jreality/tutorial/*/*.java
Resulting in 100 errors such as

Code: Select all

de/jreality/tutorial/app/AnimatedTextureExample.java:12: package de.jreality.geometry does not exist
import de.jreality.geometry.Primitives;
This is in linux, if that matters. Could somebody give me a hand with this?

Thanks

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

Re: Installation problems

Post by Andre » Mon 19. Apr 2010, 23:06

"jtem-beans.jar" is called now only "beans.jar" at the current 3rd party package.

Edit:
Which "getting started document" are you using? I'll change there jtem-beans.jar to beans.jar, but I couldn't find it at our website
Last edited by Andre on Mon 19. Apr 2010, 23:12, edited 1 time in total.

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Installation problems

Post by steffen » Mon 19. Apr 2010, 23:09

First, jtem-beans.jar was renamed to beans.jar and also jRWorkspacePluginSDK.jar was renamed to jrworkspace.jar.

Second, the error

Code: Select all

de/jreality/tutorial/app/AnimatedTextureExample.java:12: package de.jreality.geometry does not exist
import de.jreality.geometry.Primitives;
shows that you made some mistake, the jar jReality.jar is not in the classpath. It is not in the folder ../ from where you try to compile the tutorials.

Since you are using linux you should be able to just cut & paste the commands (bash) except for the name changes.

Steffen.

jrodriguez
Posts: 5
Joined: Mon 19. Apr 2010, 21:43

Re: Installation problems

Post by jrodriguez » Tue 20. Apr 2010, 10:55

Thanks for the answers. It don't seem able to get it right.

Code: Select all

jcarlos@debian:~/software/other/jreality$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

Code: Select all

jcarlos@debian:~/software/other/jreality$ ls -l
total 70892
-rw-r--r-- 1 jcarlos jcarlos  4528658 Apr 20 09:32 jReality-3rd-party.zip
-rw-r--r-- 1 jcarlos jcarlos  3189360 Apr 20 09:34 jReality.jar
-rw-r--r-- 1 jcarlos jcarlos 28994767 Apr 20 09:33 jReality-src.zip
-rw-r--r-- 1 jcarlos jcarlos 26205045 Apr 20 09:33 jReality-tutorial.zip
drwxr-xr-x 2 jcarlos jcarlos     4096 Apr  7 10:58 lib
drwxr-xr-x 3 jcarlos jcarlos     4096 Apr  7 10:58 tutorial
-rw-r--r-- 1 jcarlos jcarlos  4812206 Apr 20 09:35 vrData.jar
-rw-r--r-- 1 jcarlos jcarlos  4740181 Apr 20 09:35 vrExamples.jar

Code: Select all

jcarlos@debian:~/software/other/jreality/tutorial$ javac -cp ../jReality.jar:../lib/beans.jar de/jreality/tutorial/*/*.java

de/jreality/tutorial/audio/MinimalExample.java:8: package de.jreality.audio.csound does not exist
import de.jreality.audio.csound.CsoundSource;
                               ^
de/jreality/tutorial/geom/TubeFactory02.java:39: package de.jtem.jrworkspace.plugin does not exist

import de.jtem.jrworkspace.plugin.Plugin;
                                 ^
de/jreality/tutorial/geom/TubeFactory02.java:40: package de.jtem.jrworkspace.plugin does not exist

...
And I get a bunch of other messages like those.

This is the "getting started document". It's a bit difficult to find. The user tutorial focuses on the webstart method, and it only links to it when it refers to the installation of jogl. I think this document should be more visible, people like me with no idea whatsoever about java will appreciate it.

Thanks

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

Re: Installation problems

Post by Andre » Tue 20. Apr 2010, 11:13

I have updated and tested the document. Now should it work.

Maybe you should first add all 3rd-party-libs and then try to compile

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Installation problems

Post by steffen » Tue 20. Apr 2010, 11:19

Thanks for the answers. It don't seem able to get it right.
Just follow the page step by step, simply paste into your shell. And also delete the 3 files that are mentioned. One error of your java command is that ../lib/jrworkspace.jar is not in the classpath.

jrodriguez
Posts: 5
Joined: Mon 19. Apr 2010, 21:43

Re: Installation problems

Post by jrodriguez » Tue 20. Apr 2010, 12:16

I have updated and tested the document. Now should it work.

Maybe you should first add all 3rd-party-libs and then try to compile
I don't notice any changes in the website...

By adding all 3rd-party-libs you mean doing something like this?

Code: Select all

javac -cp ../jReality.jar:../lib/*jar de/jreality/tutorial/*/*.java
Because I tried that and it didn't work.
Just follow the page step by step, simply paste into your shell. And also delete the 3 files that are mentioned. One error of your java command is that ../lib/jrworkspace.jar is not in the classpath.
Well, I must be doing something terribly stupid, but it doesn't work. Something odd I noticed--perhaps irrelevant--is that I don't get bash completion for the *jar files while typing the compile comand, only for the directories (lib, de and so on), if this makes any sense. What 3 files you mean? de/jreality/tutorial/audio/MinimalExample.java and so on? Those are only the first ones I got in the error message. I deleted those and the others anyway and tried to compile again with no success.

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

Re: Installation problems

Post by Andre » Tue 20. Apr 2010, 12:41

sorry we spoke again from the false getting started document, pls try this one:

http://www3.math.tu-berlin.de/jreality/ ... _tutorials

EDIT: AHHH now I fond your document. This Document is marked as offline for a few months
Last edited by Andre on Tue 20. Apr 2010, 12:46, edited 1 time in total.

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Installation problems

Post by steffen » Tue 20. Apr 2010, 12:44

Maybe we talk about a different web page: http://www3.math.tu-berlin.de/jreality/ ... e-tutorial

Just use

Code: Select all

export CLASSPATH=../jReality.jar:../lib/jrworkspace.jar:../lib/beans.jar
javac de/jreality/tutorial/*/*.java
instead of

Code: Select all

javac -cp ... 
What you try

Code: Select all

javac -cp ../jReality.jar:../lib/*jar de/jreality/tutorial/*/*.java
does not work. You would have to use

Code: Select all

javac -cp ../jReality.jar:../lib/jrworkspace.jar:../lib/beans.jar de/jreality/tutorial/*/*.java
instead.

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Installation problems

Post by steffen » Tue 20. Apr 2010, 12:45

Ah I see. This page has moved to the wiki. How did you find it btw. Is it linked from somwhere? It should be deleted...

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

Re: Installation problems

Post by Andre » Tue 20. Apr 2010, 12:53

So I've changed this site too. Now should be there only a link to the wikipage

jrodriguez
Posts: 5
Joined: Mon 19. Apr 2010, 21:43

Re: Installation problems

Post by jrodriguez » Tue 20. Apr 2010, 13:28

Yes, that one was the document I was following. The dead link is in the "User Tutorial", section "Getting started with the JRViewer application", last sentence of the paragraph after the screenshot, where it reads "See the getting started document for instructions on installing jogl".

Now everything looks fine, following the updated instructions. And OpenGL works quite well, compared to how it performs when launching the webstart application.

Just one thing...how do I start the viewer with no examples whatsoever so I can load whatever models I please? I already discovered that it's not by doing java -jar jReality.jar...

Thanks a lot.

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

Re: Installation problems

Post by Andre » Tue 20. Apr 2010, 13:46

Ok thanks, I changed that link. Sorry for all the circumstances.

maybe you should try one of the following tutorials:

Code: Select all

java de.jreality.tutorial.viewer.JRViewerVR  (icosahedron loaded and VR)
or

Code: Select all

java de.jreality.tutorial.viewer.SimpleJRViewer (noting loaded)
Last edited by Andre on Tue 20. Apr 2010, 16:16, edited 1 time in total.

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Installation problems

Post by steffen » Tue 20. Apr 2010, 13:51

Code: Select all

java de.jreality.plugin.JRViewer
starts the standard viewer. There is also an option -vr. Be aware that you need further jars from the lib folder in the classpath.

jrodriguez
Posts: 5
Joined: Mon 19. Apr 2010, 21:43

Re: Installation problems

Post by jrodriguez » Tue 20. Apr 2010, 17:48

Everything works perfectly. JReality is amazing, now my 3D plots look absolutely gorgeous. And the U3D exporter works very well, including the different objects in the pdf model tree hierarchy.

Now I only have to resist the temptation of playing too much with this until I finish writing up my thesis.

Thanks!

Post Reply