LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 07-20-2005, 04:13 PM   #1
tareqth
Member
 
Registered: Jul 2005
Posts: 31

Rep: Reputation: 15
JVM error when I run eclipse


K I'm new to Linux thing.

I've istalled the J2SDK RPM in order to run Eclipse SDK.

When I run Eclipse I get thisss message before Eclipse starts loading:

JVM terminated. Exit code=1
/usr/bin/java
-Xms40m
-Xmx256m
-jar /prog/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /prog/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 1b0002
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /prog/eclipse/startup.jar

and Eclipse terminates before starting to load.

please help
 
Old 07-20-2005, 04:49 PM   #2
cleidh_mor
Member
 
Registered: Mar 2005
Location: Glasgow, Scotland
Distribution: SuSE
Posts: 70

Rep: Reputation: 15
Hi tareqth,

What version of java are you using? I see from the Eclipse web page they only support v 1.3.1 which is quite old:

Quote:
Linux

JavaTM 2 SDK, Standard Edition Version 1.3.1_01
JavaTM 2 Runtime Environment, Standard Edition Version 1.3.1_01
You can get your java version by running

Code:
$java -version
on your shell. For example, I get the following output:
Code:
~> java -version
java version "1.5.0_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
Cheers,

Cleidh Mor
 
Old 07-21-2005, 03:43 AM   #3
tareqth
Member
 
Registered: Jul 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Thanx for replying, cleidh_mor.

I have jre 1.4.2:

Code:
java version "1.4.2"
gcj (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
I think it's sstrange, I've installed JSDK but just found out that actually the working environment is GNU's !
 
Old 07-21-2005, 08:55 AM   #4
tareqth
Member
 
Registered: Jul 2005
Posts: 31

Original Poster
Rep: Reputation: 15
Trying lal lthis time to install Sun's j2sdk, but nothing goes for me

First of all I erased the gcc-java package.

Then installed j2sdk's rpm, but comamnds were not recognized.

Untnstalled the j2sdk rpm package, downloaded the bin package, created directory /usr/local/java/j2sdk-1.4.2, and unpacked the archive to that directory.

Then added this to my "/etc/profile":

Code:
PATH=${PATH}:/usr/local/java/j2sdk*/bin
export PATH
But this also didn't help.

Any suggestions, please?

Last edited by tareqth; 07-21-2005 at 08:57 AM.
 
Old 07-22-2005, 02:53 AM   #5
cleidh_mor
Member
 
Registered: Mar 2005
Location: Glasgow, Scotland
Distribution: SuSE
Posts: 70

Rep: Reputation: 15
Quote:
Then added this to my "/etc/profile":

code:

PATH=${PATH}:/usr/local/java/j2sdk*/bin
export PATH
Hmm, I'm not sure that wildcard you've put in your path would work. Also, bear in mind that you've still got a newer version of Java installed than Eclipse specify. What command is it that you're trying to run? What happens when you try this:

Code:
$ cd /usr/local/java/j2sdk-1.4.2
$ java -version
$ <insert whatever command you were trying before
You may well need to uninstall whatever versions of Java are already installed before trying Sun's RPM / BIN file.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run Eclipse? max2004 Fedora 10 02-22-2006 02:37 AM
eclipse JVM terminated. Exit code=1 Falco Linux - Software 2 03-18-2005 04:29 AM
where to install eclipse/jvm/java linux_ub Linux - Newbie 3 09-25-2004 03:30 PM
can't run eclipse tazaran Linux - Software 12 06-11-2004 03:46 PM
error running eclipse with stock jvm! c24chan Slackware 2 05-09-2004 03:39 AM


All times are GMT -5. The time now is 01:06 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration