Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29th May 2007, 02:15 AM
StefanJ Offline
Registered User
 
Join Date: Nov 2006
Posts: 101
"Could not create virtual machine" after Java install

Running Core 5.

The base install put Java 1.4.2 on there. Too primeval for my needs.

I used this FAQ to install Java JDK 1.5.0, update 9:

http://www.fedorafaq.org/fc5/#java

This took me through installing the Sun self-extracting package, and installing the Fedora Compatibility Package for Java.

Java is apparently there:

Quote:
[root@FedoraDell ~]# which java
/usr/bin/java
[root@FedoraDell ~]# ls -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Mar 7 22:17 /usr/bin/java -> /etc/alternatives/java
[root@FedoraDell ~]# ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 35 May 28 17:59 /etc/alternatives/java -> /usr/lib/jvm/jre-1.5.0-sun/bin/java
[joe@FedoraDell etc]$ ls -l /usr/lib/jvm/jre-1.5.0-sun/bin/java
-rwxr-xr-x 1 root root 64248 Oct 12 2006 /usr/lib/jvm/jre-1.5.0-sun/bin/java
It's going through two links, but it's there!

However, when I try to see if I have the right version installed:
Quote:
[root@FedoraDell ~]# java --version
Unrecognized option: --version
Could not create the Java virtual machine.
Any ideas?

Thanks,

Stefan
Reply With Quote
  #2  
Old 29th May 2007, 02:44 AM
Wayne
Guest
 
Posts: n/a
I don't particularly like those instructions, especially making an RPM from the BIN file when you can easily install straight from the BIN file. Also the latest version of Java is: jre-6u1-linux-i586.bin

I always follow these notes and they work every time:

http://www.geocities.jp/rondonko/fc6notes.html#Java

Wayne
Reply With Quote
  #3  
Old 29th May 2007, 05:43 PM
daihard's Avatar
daihard Offline
Registered User
 
Join Date: Aug 2005
Location: Lynnwood, WA
Age: 45
Posts: 721
I am with Wayne on this. I like FedoraFAQ a lot, but not that part about installing JDK/JRE.

I followed the instructions outlined in post #6 on the following link:

http://forums.fedoraforum.org/showthread.php?t=59067

The instructions are valid for FC5 and FC6 as well as FC4, for which they were apparently written.
__________________
Registered Linux User: #281828
Fedora Core 6 (kernel 2.6.22.9-61.fc6) / KDE 3.5.8
Shuttle XPC SK22G2-V2 / Athlon64 X2 5200+ / 2GB Patriot PC2-5300 RAM
PNY Verto GeForce 7300GS / NEC MultiSync LCD1970GX
Reply With Quote
  #4  
Old 29th May 2007, 07:52 PM
StefanJ Offline
Registered User
 
Join Date: Nov 2006
Posts: 101
Thanks, I'll uninstall the old stuff and try one of those tonight.

Is there a way to update the FAQ? If only to put in alternative suggestions?
Reply With Quote
  #5  
Old 29th May 2007, 08:14 PM
daihard's Avatar
daihard Offline
Registered User
 
Join Date: Aug 2005
Location: Lynnwood, WA
Age: 45
Posts: 721
Quote:
Originally Posted by StefanJ
Thanks, I'll uninstall the old stuff and try one of those tonight.

Is there a way to update the FAQ? If only to put in alternative suggestions?
I suppose we can send the suggestion to whoever manages the site.
__________________
Registered Linux User: #281828
Fedora Core 6 (kernel 2.6.22.9-61.fc6) / KDE 3.5.8
Shuttle XPC SK22G2-V2 / Athlon64 X2 5200+ / 2GB Patriot PC2-5300 RAM
PNY Verto GeForce 7300GS / NEC MultiSync LCD1970GX
Reply With Quote
  #6  
Old 30th May 2007, 05:17 AM
StefanJ Offline
Registered User
 
Join Date: Nov 2006
Posts: 101
OK, that last set seems to have done the trick. I also installed 1.6.

However . . . I might actually have had 1.5.0-11 working yesterday without knowing it.

I was checking that the newly installed version was working by entering:

java --version

That turns out not to be a valid option! I'm used to full-word options having a double hyphen in front. I entered that again after I installed 1.6 and used the alternatives gizmo to set the link to the new binary. Got the "could not create virtual machine" error.

When I entered:

java -version

It returned the 1.6.0 version string! No virtual machine error.

In any case, the other threads pointed too provided instructions for setting environment variables.

Ultimate test: I was able to run the Java application that I installed Java for in the first place.

Thanks all!
Reply With Quote
Reply

Tags
install, java

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F9 & F8 freeze on "transferring install image..." AND F9 "insufficient disk space" fashionhat Installation and Live Media 4 1st July 2008 02:04 PM
Fglrx driver install - "direct rendering: No", Xlib: extension "XFree86-DRI" missing Squeaks Hardware & Laptops 9 21st October 2006 12:10 PM
Error:visibility arg must be one of "default", "hidden", "protected" or "internal" wangfeng Using Fedora 0 23rd May 2005 04:59 AM


Current GMT-time: 17:10 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat