Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 08-11-2009, 07:15 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 10

Rep: Reputation: 0
java path,classpath problem on ubuntu 9

Hi i have just upgraded my linux distro to ubuntu 9 x64. I have installed and unzipped my jave jdk and jre in my /usr/local/jdk1.6.0_14 and /usr/local/jre1.6.0_14. I have added the following lines to my bash.rc file
set JAVA_HOME=/usr/local/jdk1.6.0_14
export JAVA_HOME=/usr/local/jdk1.6.0_14
export $PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:/usr/local/jdk1.6.0_14/lib/tools.jar:/usr/local/jre1.6.0_14/lib/rt.jar

now when i reboot i get the follwoing message
export /usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/bin:usr/games:usr/local/jdk1.6.0_14/bin ': not a valid indentifier

If i type echo $JAVA_HOME i get the correct path output however if i type java -version i get an eror message saying that jave can be found in one of the following packages

Can anyone guide me please as to what i have done wrong. With regards to the jre do i also need to have my jre set to as my java-home variable is set?
Old 08-16-2009, 06:13 AM   #2
Registered: Mar 2007
Distribution: GNU/Linux debian unstable main
Posts: 93

Rep: Reputation: 17

I've also java installed below is my file '/etc/profile' hope it helps

export JAVA_HOME



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem in set the $PATH and $CLASSPATH in my .bashrc htamayo Linux - Newbie 5 04-10-2009 06:43 AM
can't compile, java classpath problem 144419855310001 Linux - Software 2 09-02-2008 05:26 PM
how to set up path,classpath,catalina home for java in fedora -9 vicky7038 Linux - Software 1 08-19-2008 08:41 AM
Newbie java classpath problem MarkSlack Linux - Newbie 11 12-19-2007 08:00 AM
set up path,classpath in linux(slaware9) for java Manjula.S Linux - Software 5 10-06-2003 11:38 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:54 PM.

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