How can I add the classpath ?
-
- Posts: 6
- Joined: Tue 19. Aug 2008, 10:05
- Location: HTW des Saarlandes
How can I add the classpath ?
I have added the CLASSPATH variable in the ./profile (I use Linux). But the javac don't compile *.java files. I haven't programm java and a newbie in Linux. Please tell me step by step.
PS Sorry for my English. And can I write here German ?
PS Sorry for my English. And can I write here German ?
-
- Posts: 6
- Joined: Tue 19. Aug 2008, 10:05
- Location: HTW des Saarlandes
I want to compile the tutorial
It is do:
* In Directory ~/jReality:
and ~/.profile
in bash I have inputed:
then I get the information:
I have tried javac -classpath ~/jReality/*.jar *.jar and get too.
Thanks for your help.
It is do:
* In Directory ~/jReality:
Code: Select all
+jReality.jar
+antlr.jar
+bsh.jar
...[all third-paty *.jar]
+tutorial/
+--costa.3ds
+--dodec.off
+--grid.jpeg
+--README
+--terrain.3ds
+--de/
+--jreality/
+--tutorial/
.....
Code: Select all
CLASSPATH=~/jReality/*.jar
Code: Select all
> cd ~/jReality/
> javac tutorial/de/jreality/tutorial/*.java
Code: Select all
package de.jreality.geometry does not exist
Code: Select all
package de.jreality.geometry does not exist
Thanks for your help.
-
- Posts: 6
- Joined: Tue 19. Aug 2008, 10:05
- Location: HTW des Saarlandes
Thank you very much for your hints und tipps.
I did all, what you say, and I can compile. But I can not execute the *.class files
What must I do ?
I did all, what you say, and I can compile. But I can not execute the *.class files
Code: Select all
>java de.jreality.tutorial.Cube01
Exception in thread "main" java.lang.NoClassDefFoundError: de/jreality/tutorial/Cube01/class
-
- Posts: 6
- Joined: Tue 19. Aug 2008, 10:05
- Location: HTW des Saarlandes
I have done as new Getting Started. It doesn't work.
I use java 6 and suse 10.x (not exactly, because I can only use Internet at Uni). At home I use ubuntu with java 6 and have the same problem with executing. Oh, I have another question: Can I use ViewerApp at home, of course after I compile all the file in tutorial sucessful.
Code: Select all
>java -cp ../jReality.jar:../lib/jtem-beans.jar:./ de.jreality.tutorial.gereality.tutorial.geom.Cube05
Exception in thread "main" java.lang.NoClassDefFoundError: de/jreality/tutorial/geom/Cube05
-
- Posts: 6
- Joined: Tue 19. Aug 2008, 10:05
- Location: HTW des Saarlandes
Thanks for your hints.
I have check the comand and found, that the new jReality-tutorial.zip (I used all new files) hat not the geom folder. Then I have remove .geom in command, it work.
Could you please check the Download section ?
PS: There is a unused "/*" in compile command (fast at end), can you check that, too ?
I have check the comand and found, that the new jReality-tutorial.zip (I used all new files) hat not the geom folder. Then I have remove .geom in command, it work.
Could you please check the Download section ?
PS: There is a unused "/*" in compile command (fast at end), can you check that, too ?
The download section is up to date, clear browser cache. Or go directly to http://www3.math.tu-berlin.de/jreality/download/
The /*/*.java is for the different sub-packages under tutorial, like geom, intro. etc.
The /*/*.java is for the different sub-packages under tutorial, like geom, intro. etc.
-
- Posts: 6
- Joined: Tue 19. Aug 2008, 10:05
- Location: HTW des Saarlandes