• Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot open jar file in eclipse  RSS feed

 
primnull jones
Greenhorn
Posts: 14
Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an older file I was working on 2 months ago and when i try to open it in eclipse I get a message corruption error. I know this is not possible since I was just working on it a while back, and it's the same program version as what i am currently using.... ideas to fix?
Or would I do a file import instead?

thank you
 
Guillermo Ishi
Ranch Hand
Posts: 789
C++ Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had Eclipse get buggered up from time to time. Is the jar file a library you're trying to use?
 
Knute Snortum
Sheriff
Posts: 4276
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two things to do:

1) Try to open the jar file without Eclipse, for instance with 7Zip in Windows or gunzip in Linux/GNU. If that doesn't work, you probably do have a corrupt jar file.

2) Post the exact error message you are getting.
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case there really is something wrong with Eclipse, I shall try duplicating this message in the IDEs forum.
 
primnull jones
Greenhorn
Posts: 14
Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
attached


I have the .jar file and I was able to open it with winrar and extract everything to a desktop folder
err1.jpg
[Thumbnail for err1.jpg]
 
Paul Clapham
Sheriff
Posts: 22828
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But that message says that the Class File Viewer can't handle that input. I wouldn't expect a Class File Viewer to be able to interpret the contents of a jar file as a Java class, so maybe that error message shouldn't be that surprising. On the other hand I've never used that tool in Eclipse before, didn't even know it existed. So did you do that before? What did the class file viewer show you?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!