aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse crashes on start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse crashes on start" Watch "Eclipse crashes on start" New topic
Author

Eclipse crashes on start

Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
Apologies if this was around somewhere, couldn't find it in the search listings.

After an hour of clunking around reinstalling the Java SDK and fiddling with the (Windows Vista 64-bit) PATH and CLASSPATH variables, I finally got the ability to compile & run from the command line working.

Alas, I have somehow broken eclipse along the way! Whenever I start it up, I get the following error:


I re-unzipped the eclipse files to no avail. Any suggestions?

Thanks in advance for your help!
[ April 21, 2008: Message edited by: Joseph Macer ]
Guido Sautter
Ranch Hand

Joined: Dec 22, 2004
Posts: 142
The dialog contains a line "-Xmx256m", saying Eclipse has a maximum memory of 256 MB, which might be too little. But this is just a guess.

Do you have some sort of log file, which might give some more info regarding the actual error or exception that causes the crash?
Guido Sautter
Ranch Hand

Joined: Dec 22, 2004
Posts: 142
One more thing: Windows VISTA requires Eclipse 3.2, Eclipse 3.1 won't run on VISTA.
abhishek pendkay
Ranch Hand

Joined: Jan 01, 2007
Posts: 184
you are using jdk1.6.0_06 whereas there is a message in the error which says -Dosgi.required Java version=1.5
maybe that could be the problem


The significant problems we face cannot be solved by the same level of thinking which created them – Einstein
SCJP 1.5, SCWCD, SCBCD in the making
abhishek pendkay
Ranch Hand

Joined: Jan 01, 2007
Posts: 184
I just came across this link which says that there is a bug in 64 bit VM which causes eclipse to crash , maybe you can check out
[ April 21, 2008: Message edited by: abhishek pendkay ]
Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
I'm using Release 3.3.2 according to the readme in the program folder, and I have 4 GB of ram so I doubt it's a memory issue.

As for the SDK version, is it possible to have two versions installed at the same time? I'll try installing the older version I guess, but I was planning on using Java 6...
Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
Hmmm. Now I have JRE & JDK versions 1.5.0 and 1.6.0, but the same error occurs.

Perhaps I should uninstall all Java version, then re-install eclipse?
(also - fixed image in original post)



EDIT: nope, reinstalled everything to no avail. Grrr!
EDIT 2:: the kicker - Java no longer works in Firefox. I still have the JRE and JDK 1.6 installed, and can complie & run stuff from the command line, but java applications will not load in Firefox anymore. When I try to install version 1.5 of JRE or JDK, they insist they are already installed ><

[ April 21, 2008: Message edited by: Joseph Macer ]
[ April 21, 2008: Message edited by: Joseph Macer ]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868
    
  10

I don't know how this is for 64-bit Windows, but for 64-bit Linux there's a separate version of Eclipse (which is not the same as the 32-bit version).

Maybe you need a version of Eclipse which is specific for 64-bit Windows?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
Perhaps - but I've ran the same version of Eclipse before my tweaks and it worked fine. Any idea how to get my hands on the 64-bit package? It keeps trying to give me the 32-bit package.

EDIT: on further thought, that might be it: I have the 64-bit versions of 1.6 JRE and JDK, and 32-bit Eclipse, I just can't find a 64-bit Eclipse for windows.
[ April 21, 2008: Message edited by: Joseph Macer ]
Joseph Macer
Ranch Hand

Joined: Apr 20, 2008
Posts: 63
Also - Guido Sautter mentioned posting a log file, and I finally found it, but it's huge & long. Let me know if you want the whole thing posted


EDIT: Okay, fixed. Anyone with 64-bit windows, here's what I did:
1) Uninstalled all versions of java.
2) Installed 32-bit JRE & JDK.
3) Added "C:\Program Files (x86)\Java\jdk1.6.0_06\bin;" to the PATH variable.
4) Now stuff should run from both the command-line and Eclipse.

I'd rather have it set up so I use 64-bit versions to compile stuff from the command line, while still having 32-bit versions load for Eclipse (which didn't like the 64-bit versions), but it looks like I'd have to manually change the PATH variable each time.


Question: Do you lose much performance if, say, running a server in 32-bit mode rather than 64-bit?
[ April 21, 2008: Message edited by: Joseph Macer ]
Ganesh Hegde
Greenhorn

Joined: Apr 09, 2008
Posts: 12
Hi Joseph,

I don't think performance will be such an issue unless your program is very memory intensive. I read something about this here.

Kind regards,

Gaura


You die but your fame lives...
Omkar Kelkar
Greenhorn

Joined: Nov 04, 2008
Posts: 6
take a backup of eclipse.ini & delete it from eclispe root folder.
& check.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse crashes on start
 
Similar Threads
Eclipse 3.0 Kick Start: to the author
NetBeans Vs Eclipse
OSGI working example
jboss 4.2.3 takes 3 mintues!! to come up, the cpu usage is 100%
Eclipse + RedHat -> Gtk-warning