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-09-2004, 07: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, 08:12 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
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, 09: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


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

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

All times are GMT -5. The time now is 05:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration