LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-14-2003, 01:53 AM   #1
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Rep: Reputation: 15
Problems installing Java Virtual Machine


Hello, finally I've run into a problem atext doc hasnt been able to help me through.
I have been trying to install LimeWire and in order to do so I need Java Virtual machine. Well, i went to Java.sun.com and downloaded their latest non beta release of Virtual Machine. I downloaded the 40 meg SDK version since it was reccommended in the last post reguarding LimeWire install. Well, everything went according to the way the html tutorial said it should except when I tried verifying the install by typing java -version I got no response except a bash error stating that there was no such command.
Anyone know whats going on? The RPM installed perfectly according to my kernel, I did it in the console as root as the doc stated, and I verified that java.sh was created and the directory leading to java.sh was truely there. So why isn't Java Virtual machine installed?
 
Old 04-14-2003, 01:57 AM   #2
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
go to the package manager for redhat and remove gcj - the gnu java compiler.
 
Old 04-14-2003, 02:00 AM   #3
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,415

Rep: Reputation: 99
u should type
java -version
logged in as user not as root
it is already installed - very likely
cheers, jens
 
Old 04-14-2003, 02:21 AM   #4
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Hey Jens, just checked and unfortunetly it's not.
Next step is to unstall gcj.
Thanks guys! =)
 
Old 04-14-2003, 02:23 AM   #5
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Hey Macewan, do you perchance have the exact package name? I just did a scan through myRPMs and it wasnt listed as gcj.
 
Old 04-14-2003, 02:44 AM   #6
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
K, I just uninstalled the GNU Compiler collection. But still nothing happens. Do I need to re-install the Java VM RPM?
 
Old 04-14-2003, 04:32 AM   #7
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
I installed it from blackdown (blackdown.org) on my wifes computer - redhat8 - so she could use limewire.

Are you using redhat's package manager to uninstall the gnu compiler?
 
Old 04-14-2003, 04:41 AM   #8
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Actually I'm running Mandrake 9.1. I used their rpm uninstaller to uninstall the GNU compiler. Thanks, i'll see if blackdown.org's works.
The weird thing is that i installed the Java.sun version and it's listed as an installed rpm. But I get a bash error that states that there is no java command. Yet the directory and everythign works fine. Do I need to uninstall the java.sun version before installing blackdown.org's?
 
Old 04-14-2003, 04:50 AM   #9
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
does typing:

javac


produce anything?
 
Old 04-14-2003, 04:57 AM   #10
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Well, I uninstalled the previous SDK version. No need for me to develop my own Java since I'm not a programmer yet or that advanced. I'll just take things slowly in that area.
Alright, Now how do I set my path for the Black Hawk version so that LimeWire install will recognize that I have VM installed.
Thanks a lo by the way for your help.
Sincerely,
Lord Rashid
 
Old 04-14-2003, 04:57 AM   #11
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Nope, typing javac doesnt do anything unfortunetly.
 
Old 04-14-2003, 05:16 AM   #12
macewan
Senior Member
 
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Blog Entries: 1

Rep: Reputation: 45
export JAVA_HOME=/usr/lib/j2se/1.4
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
export PATH=$JAVA_HOME/bin:$PATH
export PATH=/usr/lib/mozilla:$PATH


I've got this in my .bashrc file
 
Old 04-14-2003, 05:27 AM   #13
Lord-Rashid
Member
 
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Cool, Thanks.
In the console Ityped kedit .bashrc and kedit opened with that file.
Now, where in the file do I add this. I just want to make sure I dont mess anything up.
Here's what my file looks like.
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
 
Old 04-14-2003, 06:04 AM   #14
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,415

Rep: Reputation: 99
at the end of the file (all in all it doesnt matter but if there's another statement that exports PATH u must not declare or export your path before that!)
then u can type
source ~/.bashrc
and it will be available

Last edited by j-ray; 04-14-2003 at 06:06 AM.
 
Old 04-14-2003, 07:49 AM   #15
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
I know it's already done, but there are instructions on my guide on how to install both versions of java for future reference.
 
  


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
LimeWire Installation Problems- No Java virtual machine could be found... DYNO Linux - Software 2 12-04-2004 11:59 AM
Installing Java Virtual Machine!!!!!! orranview Linux - Newbie 1 03-13-2004 11:46 PM
Java Virtual machine ServalSoft Linux - Software 1 02-13-2004 08:27 PM
Java Virtual Machine gilch Linux - Newbie 8 10-23-2003 01:38 AM
Java Virtual Machine beajedi Linux - Newbie 4 07-09-2003 01:31 AM


All times are GMT -5. The time now is 08:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration