Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Getting Java 1.5 Installed on my Linux System

Thread view: 
kvnsmnsn@hotmail.com - 27 Nov 2005 07:01 GMT
I'm sitting here with twenty midterms to grade for the Intro to Compu-
ter Science class at Brigham Young University.  The students have
written their solutions with Java 1.5, many of them using <Scanner>
for input from the terminal.  My brother-in-law, to whom I am much in
debt, has installed Linux on my laptop complete with a Java compiler,
but alas, he set me up with version 1.4.  So I went to "java.sun.com"
and downloaded "jdk-1_5_0_05-linux-i586.bin" and ran that file on my
Linux machine.  That created an install file that I made executable
and ran, and it created "java" and "javac" binaries.  But when I type
in "./java -version" I get the message: "Error occurred during ini-
tialization of VM," and something about no Java object being found.

Does anybody know what I need to do to get a working Java 1.5 on my
machine?  Is this error message telling me something I'm missing?  Any
information on this would be greatly appreciated.

---Kevin Simonson

"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
Roedy Green - 27 Nov 2005 10:06 GMT
>Does anybody know what I need to do to get a working Java 1.5 on my
>machine?

Try uninstalling 1.4 then install the JDK 1.5
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Jon Martin Solaas - 27 Nov 2005 11:12 GMT
>> Does anybody know what I need to do to get a working Java 1.5 on my
>> machine?
>
> Try uninstalling 1.4 then install the JDK 1.5

Or simply make sure PATH and JAVA_HOME points to the correct version of
java. You may even be confused by the gcc java stuff here.

export JAVA_HOME=/usr/local/java/jdk15
export PATH=$JAVA_HOME/bin:$PATH

People also provide various java package repositories to make things
simpler (but I don't think it gets much simpler than the two above
commands). Try www.jpackage.org to check it out for yourself.

Signature

jon martin solaas

Thomas Hawtin - 27 Nov 2005 14:41 GMT
> I'm sitting here with twenty midterms to grade for the Intro to Compu-
> ter Science class at Brigham Young University.  The students have
[quoted text clipped - 7 lines]
> in "./java -version" I get the message: "Error occurred during ini-
> tialization of VM," and something about no Java object being found.

You don't say which flavour of Linux you are running. Quite probably it
is the slightly dodgy GNU reimplementation of Java.

On my Fedora Core 4 machine, I get:

[tackline@new scratch]$ java -version
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b61)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b61, mixed mode, sharing)
[tackline@new scratch]$ /usr/bin/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.
[tackline@new scratch]$ whereis java
java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java

The Sun version of Java should be in /usr/java. In order to use it,
either run with the full name of the executable:

/usr/java/jdk1.6.0/bin/javac *.java

Or insert the JDK bin directory before /usr/bin in your PATH. From my
~/.bashrc:

export JAVA_SE6=/usr/java/jdk1.6.0
export JAVA_HOME=$JAVA_SE6
export PATH=${JAVA_HOME}/bin:${PATH}

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.