?
Solved

Searching for Java(tm) Virtual Machine...

Posted on 2005-03-03
4
Medium Priority
?
829 Views
Last Modified: 2008-02-01
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
Comment
Question by:Axter
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 38

Expert Comment

by:wesly_chen
ID: 13461609
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
 
LVL 30

Author Comment

by:Axter
ID: 13469186
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
 
LVL 38

Accepted Solution

by:
wesly_chen earned 2000 total points
ID: 13480736
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
 
LVL 30

Author Comment

by:Axter
ID: 13482952
Thanks for the help.

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question