LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-11-2011, 09:14 PM   #1
thoufiq
LQ Newbie
 
Registered: Apr 2011
Posts: 22

Rep: Reputation: Disabled
Cant Found jvm file in /etc


Hello All,
I am the new user of linux and installing eclipse IDE in the ubuntu server10.10. I have followed the steps given in the links http://www.cyberciti.biz/faq/howto-u...igure-jdk-jre/ and http://eclipse.dzone.com/articles/ho...-33-ubuntu-710. After installing sun-java6-bin, sun-java6-jre and sun-java6-jdk, i cant found the jvm file in /etc. While giving the below command i got only one result but in that link they have given 4 to 5 results.How to find the jvm file in /etc.


$ sudo update-java-alternatives -l
java-6-sun 63 /usr/lib/jvm/java-6-sun

$ java -version
Error: could not open '/usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/i386/jvm.cfg'



Pls anyone point me to the right directions.

Many Thanks.
 
Old 05-11-2011, 11:06 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

There isn't any "jvm file in /etc".

If you installed the JDK and JRE from Ubuntu package manager or "apt-get", then you should be able to run Java without doing anything further. Please try these commands:
Code:
java -version
javac -version
whereis java
One possibly complication is that you might have *multiple* different versions of Java. Ubuntu (along with most other Linux distros) uses "alternatives" to make one or another version the "default" version. For example:
Quote:
https://help.ubuntu.com/community/Java

sudo update-alternatives --config java
Failing all else, can also try a brute force "find" to locate your Java install(s):
Code:
find / -name java -print 2>/dev/null
'Hope that helps .. PSM
 
1 members found this post helpful.
Old 05-14-2011, 02:51 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I have followed the steps ...
Are you sure ?

'sudo apt-get install sun-java6-jdk' : Will provide "version 1.6.0.24"
and you have the buggy version 1.6.0.21.

Please read this ...
http://java.dzone.com/articles/sun-j...=toya256ForRSS

..

Last edited by knudfl; 05-15-2011 at 12:43 AM.
 
1 members found this post helpful.
Old 05-14-2011, 10:11 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Thanx, knudfl -

I assumed the discrepency was just a typo on the OP's part - but maybe there's something more to it.

thoufiq -

1. I noticed in this other post that you might still be having problems.
If you've resolved the problem, please post back how you fixed it, and mark the thread "solved".
That way, you can help others learn from your question.

2. Otherwise, if you haven't resolved the problem, please cut/paste the output of these commands:
Code:
java -version
whereis java

whereis javac
javac -version

find / -name java -print 2> /dev/null
3. If you find a viable "java", please focus on the "update-alternatives" command.

4. If you don't find Java, please either run another "apt-get", or follow the article Knudfl cited.

5. Whichever you choose, please cut/paste the exact commands and the exact text of any error messages.

Thank you in advance .. PSM
 
  


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
switching from gnu jvm to sun jvm without uninstalling gnu jvm vishal.gokhale Linux - Newbie 1 06-10-2009 09:14 AM
jvm problem to run/install bin file threaderslash Linux - Laptop and Netbook 2 04-15-2009 09:10 PM
pcAnywhere installation JVM not found ceantuco Linux - Newbie 5 09-08-2008 09:55 AM
No JVM could be found in my system-+ bjyostna Linux - Software 6 02-07-2005 05:37 AM
Installing NetBeans -> JVM Could Not Be Found eastj1974 Linux - Software 1 05-11-2003 02:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:48 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