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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-14-2003, 02:53 AM
|
#1
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Rep:
|
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?
|
|
|
04-14-2003, 02:57 AM
|
#2
|
Senior Member
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Rep:
|
go to the package manager for redhat and remove gcj - the gnu java compiler.
|
|
|
04-14-2003, 03:00 AM
|
#3
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
u should type
java -version
logged in as user not as root
it is already installed - very likely
cheers, jens
|
|
|
04-14-2003, 03:21 AM
|
#4
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
Hey Jens, just checked and unfortunetly it's not.
Next step is to unstall gcj.
Thanks guys! =)
|
|
|
04-14-2003, 03:23 AM
|
#5
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
Hey Macewan, do you perchance have the exact package name? I just did a scan through myRPMs and it wasnt listed as gcj.
|
|
|
04-14-2003, 03:44 AM
|
#6
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
K, I just uninstalled the GNU Compiler collection. But still nothing happens. Do I need to re-install the Java VM RPM?
|
|
|
04-14-2003, 05:32 AM
|
#7
|
Senior Member
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Rep:
|
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?
|
|
|
04-14-2003, 05:41 AM
|
#8
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
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?
|
|
|
04-14-2003, 05:50 AM
|
#9
|
Senior Member
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Rep:
|
does typing:
javac
produce anything?
|
|
|
04-14-2003, 05:57 AM
|
#10
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
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
|
|
|
04-14-2003, 05:57 AM
|
#11
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
Nope, typing javac doesnt do anything unfortunetly.
|
|
|
04-14-2003, 06:16 AM
|
#12
|
Senior Member
Registered: Jan 2002
Distribution: Ubuntu, Debian
Posts: 1,055
Rep:
|
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
|
|
|
04-14-2003, 06:27 AM
|
#13
|
Member
Registered: Apr 2003
Location: Seattle WA
Distribution: Redhat 8.0 and Mandrake 9.0
Posts: 47
Original Poster
Rep:
|
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
|
|
|
04-14-2003, 07:04 AM
|
#14
|
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591
Rep:
|
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 07:06 AM.
|
|
|
04-14-2003, 08:49 AM
|
#15
|
Member
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533
Rep:
|
I know it's already done, but there are instructions on my guide on how to install both versions of java for future reference.
|
|
|
All times are GMT -5. The time now is 02:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|