LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2006, 03:25 PM   #1
glassfrog
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
java .bin installation not finding JVM


I looked for quite awhile among the other posts and didn't find anything helpful. Let me know if I missed something.
When I run a .bin from the desktop I get this error (this error is not limited to just this .bin):

[root@nanan programs]# ./multishow-2.3.5unix.bin
Preparing to install...
tail: `-1' option is obsolete; use `-n 1'
Try `tail --help' for more information.
./multishow-2.3.5unix.bin: line 327: [: `)' expected, found -z
WARNING! The amount of /tmp disk space required and/or available
could not be determined. The installation will be attempted anyway.
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.
[root@nanan programs]#

java -version gives:

[root@nanan programs]# java -version
java version "1.4.2"
gij (GNU libgcj) version 4.0.0 20050519 (Red Hat 4.0.0-8)

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You have new mail in /var/spool/mail/root
[root@nanan programs]#


the $PATH variable is:

[root@nanan programs]# $PATH
bash: /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: No such file or directory
[root@nanan programs]#

Any help would be appreciated.
 
Old 03-15-2006, 05:27 PM   #2
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
My guess is that your install program is not seeing the Sun Java, since it appears you have the gcc Java loaded.

Though I appreciate the gcc java attempt, I wouldn't be suprised if it makes life difficult.

In Sun's java, there's an environment variable which points to your java directories - JAVA_HOME - and is usually something like /usr/bin/java.

On my system I have the following:


JAVA_HOME=/usr/lib/jvm/java
JAVA_ROOT=/usr/lib/jvm/java
JDK_HOME=/usr/lib/jvm/java
JRE_HOME=/usr/lib/jvm/java/jre



If you want the location on your system, type at a command prompt (sorry, it can't be helped):

echo $JAVA_HOME

You should get something like the following:

kai@yoda:~> echo $JAVA_HOME
/usr/lib/jvm/java
 
Old 03-15-2006, 05:31 PM   #3
glassfrog
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
This is what happened in the command prompt:
[root@nanan abbot-1.0.0rc2]# echo $JAVA_HOME

[root@nanan abbot-1.0.0rc2]#

the variable is not set to anything...
 
Old 03-15-2006, 05:50 PM   #4
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Yeah, that's what I figured.

Type: which java

That should give you the location of java. (It should be similar to mine.) You can then set the JAVA_HOME. I'm pretty sure the command is: export JAVA_HOME=<path to your java stuff>

I'm thinking that should work.

Oh, you running at root? If you are, I'd recommend against it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java v1.5 -- installing/finding/using hanasi SUSE / openSUSE 5 08-12-2005 09:47 AM
where to install eclipse/jvm/java linux_ub Linux - Newbie 3 09-25-2004 04:30 PM
jvm installation/firefox/jalbum webazoid Linux - Software 17 07-31-2004 03:34 PM
edonkey java gui not finding java Sephiroth Linux - Software 0 03-13-2004 09:14 PM
finding java path? pyropenguin Linux - Newbie 2 09-19-2002 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:37 PM.

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