LinuxQuestions.org
Register a domain and help support LQ
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 06-02-2002, 01:15 PM   #1
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
need help step by step settign up Java VM


I need some help setting Java VM up. I need a step by step guide, you know break it down Barney style for the newb.

I have the java RPM downloaded on my desktop. Should I move it somplace else before running it? If so were? How do i get there from the terminal?

thanx this has been a pain so far

Gonus
 
Old 06-02-2002, 02:01 PM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
You can't run RPMs.

Type "man rpm" and read how to install them.

Also read the documentation that Sun gives you.

http://developer.java.sun.com/develo...ramming/linux/
 
Old 06-03-2002, 01:17 AM   #3
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
I understand what how to install the RPM's and i follow the instuctions replacing only what is differant such as 1_4_0 instead of 1_3_0, and follow instructions to set up the path nothing happens when i type in java -version

i get an error say nothing found
 
Old 06-03-2002, 01:25 AM   #4
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
I got it. heres what i was doing wrong. I was not directing to the correct path this is what i had typed in

PATH="$PATH:/usr/local/java/j2re1.4.0/bin"

I hat i neglected to do was check the path to the java folder on my machine which was not under local it was under

/usr

Thanx for the help though the java link was great 2.

Gonus
 
Old 06-03-2002, 05:10 AM   #5
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
I got a question too,
SuSE Linux Professional 7.3 comes with JVM 1.12 I think. I have just installed J2SDK 1.4.0 from Sun. How can I make the new JDK over-ride the old one so when I go "java somejarfile" it uses the new JDK?
 
Old 06-03-2002, 01:18 PM   #6
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
I would think that by installing it then changing the path to the new java would work. If not try the rpm upgrade comand not sure of the name my self. man rpm list all the options.

Gonus
 
Old 06-03-2002, 01:36 PM   #7
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
rpm -e packagename

I suspect that SuSE would have installed Kaffe instead of the Sun JDK
 
Old 06-03-2002, 03:45 PM   #8
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
Yes you are right. It IS Kaffe. The question remains how to FORCE the system to use the new JDK.

Note: Sun doesn't provide RPMs for J2SDK 1.4.0 They provide rpm.bin files which you have to extract and run through the command propt. lts Sun's way to make sure you learn their licence agreement by heart. They force you to accept the agreement before you can download the file, and in the file itself you also have to accept the agreement.

Anyways, I'm open to suggestions. I don't like Java too much but I need it for a class I'm in.

Thanx guys
 
Old 06-03-2002, 04:15 PM   #9
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Easiest way to make the system use the new version is to remove the old one.

Code:
rpm -e kaffe
 
Old 06-03-2002, 05:22 PM   #10
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
thanx, I'll try that. Do I need to change the path somehow?
 
Old 06-03-2002, 05:27 PM   #11
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Quote:
Originally posted by shassouneh
thanx, I'll try that. Do I need to change the path somehow?
Revisit the link I provided earlier and reread it. It tells you there.
http://developer.java.sun.com/develo...ramming/linux/
 
Old 06-03-2002, 06:18 PM   #12
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
Cool. Thanx
 
  


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
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 11:43 AM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 08:31 PM
I need a step by step help to instal Suse 9.3 Pro on the same hdd as XP Home & 2003 suse91pro Linux - General 4 09-07-2005 02:15 PM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 01:50 AM
step by step installation of java zexter Linux - Software 4 12-07-2003 02:15 AM


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