File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse start but return exit code=1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse start but return exit code=1" Watch "Eclipse start but return exit code=1" New topic
Author

Eclipse start but return exit code=1

Yanan Jiang
Greenhorn

Joined: Jul 18, 2010
Posts: 4
I used to have Eclipse SDK 3.5.1-win32-x86_64 and it works well.
This morning I thought why not use the latest version? So I deleted the eclipse folder and unzipped the SDK 3.6. The nightmare happened then, I cannot even start the Eclipse when double clicking the icon. The message I got is (screen shot on web/attached):

http://www.freeimagehosting.net/uploads/8c8b5b2f07.png

This problem bugged me for the whole afternoon! I'll appreciate very much if anyone can help with it!



[Thumbnail for eclipse.png]

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why on earth would you delete your existing working environment?!?!?!

Had you customized your original deployment?
Yanan Jiang
Greenhorn

Joined: Jul 18, 2010
Posts: 4
I was stupid and regret doing that so muc1
I didn't customize the original version, just unzipped the packageand used the eclipse.exe.

David Newton wrote:Why on earth would you delete your existing working environment?!?!?!

Had you customized your original deployment?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'd check the Eclipse log first, just to see if it's something obvious. I'd check to make sure any 32/64 bit differences are dealt with, too.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Do you have a 32-bit or 64-bit JVM? Did you download the 32-bit or 64-bit version of Eclipse? They must agree (both be the same bitness) before it will run.

On my 64-bit Win7 system I have both 32-bit and 64-bit JVMs installed. To ensure that I get the right one for Eclipse I add this entry to the eclipse.ini file (note that it is two separate lines):



JBoss In Action
Yanan Jiang
Greenhorn

Joined: Jul 18, 2010
Posts: 4
It's solved. Thanks guys!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Yanan, I'm glad that you got it resolved and are running again, but could you please post what the solution was for the benefit of others who will come across your same problem in the future?
Yanan Jiang
Greenhorn

Joined: Jul 18, 2010
Posts: 4
Sure, thanks for the notice.

It turned out that I once installed the latest JDK, 1.6.21, since it has some issue with eclipse, I switched it back to 1.6.20.
But the JDK is not installed successfully, that' why I got the eclipse error. After reinstalling JDK (double check, there should be a jdk1.6.0_version folder in C:Program Files\Java) , everything is back on the track .

Peter Johnson wrote:Yanan, I'm glad that you got it resolved and are running again, but could you please post what the solution was for the benefit of others who will come across your same problem in the future?
 
 
subject: Eclipse start but return exit code=1