Help - Search - Members - Calendar
Full Version: Java Virtual Machine
Linuxhelp > Support > Technical Support
new2it2
I have installed Java Virtual Machine in RH 9 per the instuuctions on their web site.It resides in /usr/java/j2re1.4.2_03 as it should. When I try to install logging program for amateur radio called Jlog which requires java to be installed I get the following text.

dan@main dan]$ cd /usr/local/jlog
[dan@main jlog]$ sh ./install.bin
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.
[dan@main jlog]$

I have been unable to find anything on the web that would help me with getting JVM into my "path". Thanks for any help....
hughesjr
See if you have java in your path ... issue the comamnd:

java -version
1. If the result is:
CODE
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-rc1)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-rc1, mixed mode)
(or maybe the sun version information)...then you may need to properly set your java CLASSPATH variable.

2. If the result is:

bash: java: command not found

Then find the java executeable .... I think it is going to be here (in your setup):

/usr/java/j2re1.4.2_03/jre/bin/java

If that is the correct path, issue this command:

ln -s /usr/java/j2re1.4.2_03/jre/bin/java /usr/bin/java

(If /usr/java/j2re1.4.2_03/jre/bin/java is not the correct path, find the java executable and substitute the correct path to it for /usr/java/j2re1.4.2_03/jre/bin/java)

After you make the link, try :

java -version

again and you should get a version print out (like posted in the above code block). Try reinstalling your program.
new2it2
Thanks, as you can see your suggestion worked for the java install. I don't suppose you would happen to know what this new error is all about would you. Thanks for the help...

[dan@localhost jlog]$ java -version
java version "1.4.2_03"
Java™ 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot™ Client VM (build 1.4.2_03-b02, mixed mode)
[dan@localhost jlog]$ sh ./install.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Exception in thread "main" java.lang.NoClassDefFoundError: com/zerog/lax/LAX
[dan@localhost jlog]$
hughesjr
not with this software ... but you might try the install docs for the program ... sometimes the program will have a specific CLASSPATH variable that you must set.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.