LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2002, 11:22 AM   #1
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Rep: Reputation: 30
Cannot get Java


I went to Sun Microsystem's Website. But for some reason I get a Server Error. I can't get my hands on the Java Runtime system. Could someone help out here so I can get my hands on it?
 
Old 10-15-2002, 12:01 PM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Try www.tucows.com
 
Old 10-15-2002, 12:51 PM   #3
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
No Dice
 
Old 10-15-2002, 09:59 PM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Have patience. Sometimes the server is overloaded. The best time would be near midnight.

http://java.sun.com/webapps/download...x-i586-rpm.bin

This is direct link. The cookie crap might time out. If it did, then go to

http://java.sun.com/j2se/1.4.1/download.html

And pick "Linux RPM in self-extracting file - RPM".

But let me ask you something, what are your purpose of installing it? Just for playing games/visiting Java-enabled Websites on Netscape/Mozilla? You could just get the plug-in 13MB vs. 22MB above.

ftp://ftp.netscape.com/pub/netscape6...22/xpi/jre.xpi

Ideally, you save that xpi on HD, back it up, install it on all Linux distros. To install, log in as root, open Mozilla/Netscape, browse to this file, open it.
 
Old 10-15-2002, 11:04 PM   #5
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
I need it for LimeWire and other web based stuffs.

BTW, the link worked, thanks!!
 
Old 10-15-2002, 11:21 PM   #6
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Ok, j2re v1.4.1 installed. Got ready to install LimeWire, and I got:

No java virtual machine could be found from your PATH enviroment variable. You must install a VM prior to running this program.

Isn't j2re v1.4.1 a VM? Or do I need a separate program to get a VM? Or do I need to just reboot my PC?
 
Old 10-15-2002, 11:31 PM   #7
aliensub
Member
 
Registered: Apr 2002
Location: Denmark
Distribution: OS X
Posts: 306

Rep: Reputation: 30
For me to get it work i first moved the dir contatning the java after extracting it and moved it too /usr/local/bin and then made a symlink from /usr/local/bin/j2re1.4.1/bin/java too /usr/local/bin/java

ln -s /usr/local/bin/j2re1.4.1/bin/java /usr/local/bin/java

I´m using debian and the blackdown java package so maybe your´s have too be a little different, and remember too do this as root.
 
Old 10-15-2002, 11:42 PM   #8
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
No Dice
 
Old 10-15-2002, 11:54 PM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Tons of info
 
Old 10-15-2002, 11:57 PM   #10
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
I kept searching and found a suggestion to edit my "/home/Bigun/.bashrc" file and add some kinda path or something, rebooted, and it installed. So I run the command "./runLimeWire", and I now get:

Exception in thread "main" java.lang.NoClassDefFoundError: lax/nl/java/option/java/stack/

help...anyone?
 
Old 10-16-2002, 02:33 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Setup your path via /etc/profile. Locate this line:
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/local/bin/java/bin"

And add java like I did Your's won't look the same as mine, and mine has the java/bin directory in it. Make sure you have it point ot the subdirectory of java - /bin As shown in my example.

After you will need to "source" the file:
source /etc/profile
And then run your limewire again.

Cool
 
Old 10-16-2002, 08:57 AM   #12
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
"source" the file?

Come again?
 
Old 10-16-2002, 09:00 AM   #13
Bigun
Member
 
Registered: Aug 2002
Location: Hickville, TN
Distribution: Gentoo > current. Have used: Red Hat 7.3, 9, Gentoo 1.4
Posts: 400

Original Poster
Rep: Reputation: 30
Also, in my /etc/profile, I cannot find the line:
# Set the default system $PATH:
in it, I also searched for anything that looked like a solid path, no dice. I'm running Red Hat. Should I add this line anyway?
 
Old 10-16-2002, 10:51 AM   #14
0x0001
Member
 
Registered: Sep 2002
Distribution: Slackware 8.1
Posts: 84

Rep: Reputation: 15
ok this is from memory so don't kill me if it's wrong.

All you (should) have to do is set the environmental variable JAVA_HOME to where the java directory is.

todo this best go to /etc/profile.d/ and create a file java.sh with
the following contents:

#!/bin/bash

export JAVA_HOME=/usr/local/j2re1.4.1

(if you have installed java to the /usr/local/j2re1.4.1 directory)

make the file executable and try again. if you have no /etc/profile.d/ write the export entry into you're .bashrc

If you use tcsh call the file in /etc/profile.d/ java.csh and enter

#!/bin/tcsh
setenv JAVA_HOME /usr/local/j2re1.4.1

and set x bit, or enter the setenv line into you're .tcshrc (or whatever you are using).

i hope this helps.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Web start java not working (java works fine) powadha Debian 5 06-05-2004 12:57 PM
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM
2 Questions: java calling system commands? PERL vs Java? randomx Programming 28 11-28-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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