LinuxQuestions.org
Help answer threads with 0 replies.
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 04-29-2006, 10:44 AM   #1
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Rep: Reputation: 15
ubuntu java issue


hi

i installed the java binary from sun on my ubuntu system in /usr/local/jdk1.5.0_06

i also edited my .bashrc en .bash_profile with these lines:
# export java shizzle
export JAVA_HOME=/usr/local/jdk1.5.0_06
export PATH=$PATH:/usr/local/jdk1.5.0_06/bin
export PATH=$PATH:/usr/local/eclipse

however when i do: java -version i get this output:

java version "1.4.2"
gij (GNU libgcj) version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

how can i change this?


grtz
 
Old 04-29-2006, 10:59 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
It looks like you have another version of Java installed, probably from an Ubuntu package, and that that version comes first in your $PATH.
You could uninstall it, or simply put "/usr/local/jdk1.5.0_06/bin" at the beginning of your PATH and not at the end as you did.
 
Old 04-29-2006, 03:20 PM   #3
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Here's how to install Sun Java on Ubuntu.

HTH
 
Old 04-29-2006, 05:56 PM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
You were almost done!

change the line
Code:
export PATH=$PATH:/usr/local/eclipse
by
Code:
export PATH=$JAVA_HOME/bin:$PATH:/usr/local/eclipse
 
Old 04-29-2006, 07:15 PM   #5
kristof_v
Member
 
Registered: Feb 2006
Location: Belgium
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
thx guys i got it working

but now i'm having another problem.
there is no syntax highlighting in eclipse. (ubuntu)

i do however have syntax highlighting on the exact same eclipse release on my debian system.

must be missing some kind of package i guess, but i can't figure out
which one

grtz
 
  


Reply


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
Ubuntu Opera Java biojayc Linux - Software 4 09-29-2011 04:54 PM
Ubuntu issue.. Saurian Linux - Newbie 19 03-15-2006 11:44 AM
Ubuntu, Opera and Java hbsyn Linux - Software 0 10-08-2005 10:55 PM
Ubuntu Gnome-cd issue webterractive Ubuntu 0 03-25-2005 01:05 PM
Ubuntu Sound Issue jeffChuck Linux - Newbie 7 12-14-2004 07:55 PM

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

All times are GMT -5. The time now is 11:37 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