Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory monitor motherboard music network printer problem ram registry router server slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Redhat 8 and Java!

Reply  
Thread Tools
mixx941's Avatar
Senior Member with 744 posts.
 
Join Date: Dec 2001
Location: Springfield, Missouri
20-May-2003, 09:28 PM #1
Exclamation Redhat 8 and Java!
Hello everybody.

I am running a box with Redhat 8 and I am trying to install Java Runtime Enviornment.

I was trying to install another program that required Java, so that's how I got to installing Java. When I try to install that other program that requires java, I get this in shell:

Quote:
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.
Then, when I go to try to install Java again:

Quote:
Preparing packages for installation...
package j2re-1.4.1_02-fcs is already installed
I should say that no java applets on the web work either, so...

If anyone has any suggestions on what to do next, please let me know.

Thanks

-Mark
__________________
Internet Radio: Party107 | Rock 101.9 The Edge

MIXXnet IRC Network: http://www.mixxnet.net | irc.mixxnet.net

Quality Web Hosting: TNTPowerHost
TristanSDM's Avatar
Member with 40 posts.
 
Join Date: Oct 2002
21-May-2003, 01:14 AM #2
http://forums.techguy.org/t134418/s.html

This can probably solve your problem, but was aimed at installing the JDK.

--OR This is similar but also for the JDK not JRE--

It is simply a matter of your path. You should add it to your PATH in:

$HOME/.bash_profile

$HOME is your home directory in *nix - /home/<username> on RedHat. Also
the environmental variable $HOME is set when you log in and ~ is a
shortcut for it. The . in front of .bash_profile hides the file - this
is the file the login process runs when you log in (after the
system-wide /etc/profile - you could change this alternately, but you
must do this as root).

*nix uses : to seperate paths and you must export the variable for it to
be visible outside the shell script. So your change should be something
like:

It is simply a matter of your path. You should add it to your PATH in:

$HOME/.bash_profile

$HOME is your home directory in *nix - /home/<username> on RedHat. Also
the environmental variable $HOME is set when you log in and ~ is a
shortcut for it. The . in front of .bash_profile hides the file - this
is the file the login process runs when you log in (after the
system-wide /etc/profile - you could change this alternately, but you
must do this as root).

*nix uses : to seperate paths and you must export the variable for it to
be visible outside the shell script. So your change should be something
like:

JDK_HOME=/usr/java/jdk-1.4.1_02
JAVA_HOME=$JDK_HOME

#append jdk path to already existing path adjustment
#PATH=$PATH:~/bin <-- old line
PATH=$PATH:~/bin:$JDK_HOME/bin

#export JDK_HOME and JAVA_HOME - a number of tools require these values
#export PATH <-- old line
#export PATH JAVA_HOME JDK_HOME
JAVA_HOME=$JDK_HOME

#append jdk path to already existing path adjustment
#PATH=$PATH:~/bin <-- old line
PATH=$PATH:~/bin:$JDK_HOME/bin

#export JDK_HOME and JAVA_HOME - a number of tools require these values
#export PATH <-- old line
#export PATH JAVA_HOME JDK_HOME
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 06:09 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.