I'm stuck into the process of deploying created .jar files in Eclipse.
Eclipse is at location: E:\eclipse
Web project is at: E:\Runtime_Testing\src\study_to_night
Tomcat is at location: C:\apache-tomcat-7.0.54-windows-x64
Meanwhile, steps followed for creating jar files in Eclipse:
- Right click on your Java Project and select Export.
- Expand the Java node and select JAR file.
- In the JAR File Specification page, checked the option which says "Export Java source files and resources"
- Selected the export destination as:
E:OneForAll.jar
;OneForAll
being the name of my .jar file - Checked the option` "Compress the contents of the JAR Files"
- Next ---> Finish.
On following the above steps, an executable JAR
file is created at the specified location. Just to check if all the files have been extracted in the .jar component, when I chose "Extract files" option, all source files were traceable. However, on double-click it throws Error: Invalid or corrupt jarfile 'E:OneForAll.jar'
.
I feel I'm lost. Is there something I missed out? What went wrong?
Could someone walk me through the steps to do this manually ?