LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help with java (https://www.linuxquestions.org/questions/linux-software-2/need-help-with-java-360115/)

Blue1K 09-04-2005 12:22 PM

Need help with java
 
I can't seem to get Varsha to launch. It is a .jar file that normally executes with this command:

java -jar varsha.jar

I made sure to install the jre package (to /opt/java/jre1.5.0_01). I also opened up my bash.rc file and added this:

JAVA_HOME=/opt/java/jre1.5.0_01/bin
PATH=$JAVA_HOME/bin:/$PATH:/opt/java/jre1.5.0_01/bin

But when I launch the java command I get this error:

bash: java: command not found

What am I doing wrong? I also get this response when I type "java" alone

Thanks!!

Mega Man X 09-04-2005 12:59 PM

Hi!

Try to create a symlink the java path to your /usr/bin. Like this:

ln -s /opt/java/jre1.5.0_01/bin/java /usr/bin/java

I'm also not sure why, but exporting the path not always work for me :S

Good luck!

Blue1K 09-04-2005 01:27 PM

Thanks!!!!!!!!!!!!!!!

That worked. I really needed to get this program running by today.

Mega Man X 09-04-2005 11:18 PM

You're welcome ;)


All times are GMT -5. The time now is 06:42 PM.