LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-19-2005, 03:38 PM   #1
barabus
Member
 
Registered: May 2005
Distribution: SUSE LINUX PRO 9.3
Posts: 57

Rep: Reputation: 15
Configuring Java


Hi

I just downloaded the java jre 1_5_0_03 package and installed it (at least when I tried to KConsole informed me the package had already been installed.

I ran the java -version command and yet am informed the version in use is ver 1_4_2_06-b03

Can anyone tell me how I can update this information and run the later version as default


Thanks

- Barabus
 
Old 05-19-2005, 04:30 PM   #2
SpiderIRE
Member
 
Registered: Jan 2005
Distribution: FC (Planet CCRMA Kernel)
Posts: 81

Rep: Reputation: 15
dunno if this will help, but locate your latest version of java and:

export PATH=$PATH:/pathway...

-David
 
Old 05-19-2005, 04:43 PM   #3
barabus
Member
 
Registered: May 2005
Distribution: SUSE LINUX PRO 9.3
Posts: 57

Original Poster
Rep: Reputation: 15
Fraid not buddy! I consulted qwerty's thread and ocated the .bashrc file and tried editing it accordingly. The chance'd be a fine thing!

Rebooted and still showing old version is default.

As it's the jre I'm concerned with and not the JDK was wondering if its simply a matter of throwing a switch as you would do in windows control pane under java. Select efault version.

I'm a total newbie to Linux so if anyone has a minute or two perhaps they might describe what I need to edit, with what info - and if possible where to find the relevant directories of files in SUSE 9.3

Thanks again in advance!
 
Old 05-20-2005, 04:01 AM   #4
Seagull
Member
 
Registered: Oct 2003
Location: Holland
Distribution: SuSE 10.0 SuSE 10.2
Posts: 70

Rep: Reputation: 15
You can have many different versions of JDK and JRE installed. SuSE allows you to chose which to run. (See the README in /etc/java/)

In YaST/System/ there is the etc/system/ Editor. In here, under APPLICATIONS is something which allows you to create a link to JAVA versions.

Hopefully this will give you something to try.
 
Old 05-20-2005, 04:10 AM   #5
kiss_linux
Member
 
Registered: Mar 2005
Location: Calgary Canada
Distribution: Mandriva 10 / LE 2005
Posts: 46

Rep: Reputation: 15
ok give a try to following
Code:
echo $PATH
find out if there is any entry for java, like /usr/java/jre_ver/bin:

find out where jre 1_5_0_03 is installed
usually jre is installed in /usr/java/jre_ver but if ain't there try finding
Code:
locate jre 1_5_0_03
add following to /etc/profile ( replace /path_to_jre/jre_ver with actual path for jre 1_5_0_03 )
export JAVA_HOME=/path_to_jre/jre_ver
export PATH=$PATH:$JAVA_HOME/bin

make sure to clear path in ~/.bashrc

logout and login
 
Old 05-20-2005, 03:00 PM   #6
barabus
Member
 
Registered: May 2005
Distribution: SUSE LINUX PRO 9.3
Posts: 57

Original Poster
Rep: Reputation: 15
For now I will just say I located both packages the 1_5_0_03 was in /usr/java and the preinstalled version in /etc/aternatives/

I copied the files from the former directory to the latter and removed those I was replacing.

I typed java -version into the command line of the KConsole and - Hey Presto! I will note the info given in the replies and maybe with a later version of Java will experiment with these procedures.

Thanks again for the replies

- Barabus
 
  


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
Configuring Bash (.bashrc) for use with Java Sir Nerdalot Linux - General 2 11-13-2005 08:42 AM
configuring java policy with konqueror and applet pepisfree Linux - Software 1 10-18-2004 09:42 AM
problem with installing PostgreSQL . Configuring false with Java kernelvn Linux - Software 0 08-30-2004 04:15 AM
Configuring Java on Suse WiWa Programming 2 07-29-2004 02:43 PM
Configuring (g)vim-tab with C++/Java Mega Man X Programming 2 01-28-2004 06:27 AM

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

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

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