LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 05-03-2004, 12:27 AM   #1
tsuehpsyde
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
Getting Java Runtime To Run


I'm not sure why it's not working for me, but the last time I installed Sun's Java Runtime, everything went smooth. Now, it's being kind of weird. Let me explain.

I first went with the RPM, then the .bin full of all the files. Either way they did the same thing. They extracted the files to /usr/java/j2re1.4.2_04/ and they all seem to work. You can cd into bin/ of that folder, and do ./java and that runs. Just typing java in a bash just gives you the -bash: java: command not found output. What I need to know is, how do I get /usr/java/j2re1.4.2_04/bin/ to be somehow added to files that can be ran as the binary name (java instead of /usr/java/j2re1.4.2_04/bin/java). I already tried simply copying java to /bin/, which I figured wouldn't work due to dependencies, and it diddn't.

So I either need to move all these files somehow to a relavent path, or do a link to it. Not exactly sure what to do.

Thanks,

-Tsu
 
Old 05-03-2004, 12:32 AM   #2
jeru
Member
 
Registered: Feb 2003
Location: Arizona
Distribution: Debian Sid
Posts: 57

Rep: Reputation: 15
edit

/etc/profile

and throw this line at the end of it

export PATH=$PATH:/usr/java/j2re1.4.2_04/bin

then logout and back in, or reboot, then try 'java'.
 
Old 05-03-2004, 12:54 AM   #3
tsuehpsyde
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Original Poster
Rep: Reputation: 0
looks like it works, thanks man
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
java runtime question velska Linux - Software 2 01-20-2005 01:57 PM
Java Runtime Envorment Davros Red Hat 2 12-05-2003 05:44 AM
java runtime shariqali Linux - Software 7 09-23-2003 10:08 PM
setting up java runtime FloatRed Linux - Newbie 4 09-24-2002 08:43 PM


All times are GMT -5. The time now is 09:13 PM.

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
Open Source Consulting | Domain Registration