Java path error in mandriva
Hello,
I am new in the linux world, very exiting by the way!
At this moment I'm trying to use java in linux mandriva 2007, I've tried a lot of things to run a class in the prompt, everything unsucessfully. I got the error NoClassDefFounfExcepction.
Some article said that creating a file into etc/profile.d/ with extension .sh I could run the classes in all the environment. Well I create it, now the command javac is recognized by the system, in fact I can create the class files, but I still getting the same Exception at moment to use java command.
When I made an echo for the variables of the system I got the next:
[root@localhost samples]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/java/jdk/jdk1.5.0_12/jre/bin/java:/usr/lib/qt3//bin:/usr/java/jdk/jdk1.5.0_12/jre/bin/java:/usr/java/jdk/jdk1.5.0_12/bin/
[root@localhost samples]# echo $CLASSPATH
/usr/java/jdk/jdk1.5.0_12/bin/:/usr/java/jdk/jdk1.5.0_12/lib/tools.jar:/usr/java/jdk/jdk1.5.0_12/jre/lib/:/usr/java/jdk/jdk1.5.0_12/jre/bin/java
[root@localhost samples]# echo $JAVA_HOME
/usr/java/jdk/jdk1.5.0_12
I also change the bashrc introducing the next line:
export PATH=$PATH:usr/java/jdk/jdk1.5.0_12/bin
Any Suggestion, :confused:?
Regards,