LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-09-2004, 06:23 PM   #1
xiangshan
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Unhappy java install under redhat 9


I installed j2sdk 1.4.2 under redhat 9.0 and have some problems.

I use RPM to install it. After intall, I can compile program(it generating .class file), but can not run it.

I checked the install, and found the path of /usr/java/j2sdk1.4.2. But when I run java -version, it displays "1.3.1".

I tried to uninstall the package and it said 1.4.2 is not installed; I tried to reinstall it and it said it is
already installed.

Can anyone help me and explain what is going on there?

Thanks
 
Old 04-09-2004, 07:12 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi xiangshan!!!!

Welcome to LinuxQuestions.org. Apparently, your install and compiler works fine. Could you tell us the commands that you are trying to use to compile and run your program?
 
Old 04-09-2004, 08:10 PM   #3
xiangshan
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your reply.

I use javac to compile my program, and use java to run my program.

Now what I do not understand is why when I issue the java -version, it gives me the version of "1.3.1", not 1.4.2.
 
  


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
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Redhat 9 and Java TheMysticWizard Linux - Newbie 2 06-30-2005 09:05 AM
Java in Redhat. Peleus Programming 4 04-05-2004 01:26 PM
x-java-vm for Redhat V9 mfeat Red Hat 5 10-30-2003 09:28 PM
java in redhat 8 key_maker Linux - Software 1 10-02-2003 06:23 AM

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

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