Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 855
  • Last Modified:

Searching for Java(tm) Virtual Machine...

I'm trying to install the latest version of Sybase on a Linux Fedora 2 box, but I keep getting the following error:

********************************************************
[axter@LinuxMySql sybase]$ ./setup
InstallShield Wizard
 
Initializing InstallShield Wizard...
 
Searching for Java(tm) Virtual Machine...
......................A suitable JVM could not be found. Please run the
program again using the option -is:javahome <JAVA HOME DIR>
********************************************************

I've already installed j2re1.4.2_07, but I still get the above error.

I can I get it to install?
0
Axter
Asked:
Axter
  • 2
  • 2
1 Solution
 
wesly_chenCommented:
Hi,

   You might check the README or installation instruction for Sybase. It is most likely you need to set the environment variable
JAVA_HOME before you install Sybase. Or use
./setup -is:javahome <path to your java installation>

Say, run the following commands to determine where is the java and JAVA version you install.
which java  (should look like /usr/java/jre1.4.2_07/bin/java )
java -fullversion

Regards,

Wesly
0
 
AxterAuthor Commented:
I'm getting no Java return for which java.

I think what I need is some really good instructions on how to install Java on Linux
0
 
wesly_chenCommented:
Hi,

  Java installation is quite straightforward, it's usually installed in /usr/java/jdk_<version> or /usr/java/jre_<version>.
Just do
ls -al /usr/java
too check the installation.

  Then have your path set to it
export JAVA_HOME=/usr/java/jdk_<verion>
export PATH=$JAVA_HOME/bin:$PATH

After you set the path to $JAVA_HOME/bin, then try
java -fullversion
to see if java is there or not.

Then you can install Sybase after java is ok.

Wesly
0
 
AxterAuthor Commented:
Thanks for the help.

After looking at your post, I realize my script was using incorrect case for JAVA_HOME.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now