i received a .jar file and want to use the content of the file as an Eclipse project
NOT
in an Eclipse project
I have tried to extract the .jar file, but eclipse doesn't reconize it as java project. The Jar file contains .class and .java files.
I already tried this way:
1-extract the JAR-file
2-create an new project in eclipse
3-right click on that project
4-import
5-file system
But i didn't work!
How can i proceed?
Thank you!
if you want to modify the code, this works if the JAR contains the source-files:
if you just want to use the classes in the JAR-file
if you want to modify the code of the JAR but it does not contain the source files, you need to decompile the class-files.
If you need the code, Simply:
1) Right click on your existing src folder (or a new folder you can create if you want)
2) Select "Import"
3) Under "General" select "Archive File"
4) Browse for your jar file. You will then be able to see all of the jar's contents.
5) Click finish and you are done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With