Issue
I downloaded a demo jar file, and would like to open it in eclipse. What I did is
import->Existing projects into workspace ->select archive file
However, the eclipse returns "No projects are found to import".
As command line, I type
java -jar projectDemo.jar
This jar file just functions well. So it seems to me that jar file itself is OK, but how can I open it in Eclipse and modify this demo code? Thanks.
Solution
Since the jar file 'executes' then it contains compiled java files known as .class files. You cannot import it to eclipse and modify the code. You should ask the supplier of the "demo" for the "source code". (or check the page you got the demo from for the source code)
Unless, you want to decompile the .class files and import to Eclipse. That may not be the case for starters.
Answered By - Mob
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.