Problems importing WAR files in Eclipse?

Posted by CitadelCSAlum on Stack Overflow See other posts from Stack Overflow or by CitadelCSAlum
Published on 2010-05-26T00:53:19Z Indexed on 2010/05/26 1:11 UTC
Read the original article Hit count: 293

Filed under:
|
|

I was unfortunately forced to result to uploading a WAR file as my backup for a web application I am working on.

Luckily I have the most recent WAR file available. I am using Eclipse IDE and am using the Web Tools plugin for all the J2EE work that I am doing with the Dynamic Web Application Project.

When I imported my WAR file, and ran it on a local server, everything works fine. The problem I a ran into is that in the Java Resources/src folder that all my packages and .java files were now only consists of all the same packages, but they are empty.

I checked to see if I could find the files and I found the .class files in an "Imported files" folder that is not accessible in the Eclipse Project Explorer. I believe that I need to do some type of build or something so that my .java files are available for me, but unfortunately this is one area where I lack.

One thing I would also like to know is, one way or the other, am I able to obtain the .java source code files if I have access to the .class files?

Also, I would like to configure this environment as it was before where my Java Resources:src folder contaiend the packages and .java files.

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse