LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2005, 12:22 PM   #1
Blue1K
Member
 
Registered: Dec 2004
Location: Vancouver
Distribution: Suse 10.1, PCLinuxOS
Posts: 31

Rep: Reputation: 15
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!!
 
Old 09-04-2005, 12:59 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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!
 
Old 09-04-2005, 01:27 PM   #3
Blue1K
Member
 
Registered: Dec 2004
Location: Vancouver
Distribution: Suse 10.1, PCLinuxOS
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks!!!!!!!!!!!!!!!

That worked. I really needed to get this program running by today.
 
Old 09-04-2005, 11:18 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
You're welcome
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration