wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes Prob in eclipse while importing war file - not bale to compile .java files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Prob in eclipse while importing war file - not bale to compile .java files " Watch "Prob in eclipse while importing war file - not bale to compile .java files " New topic
Author

Prob in eclipse while importing war file - not bale to compile .java files

isha gopal
Greenhorn

Joined: Apr 17, 2009
Posts: 3
hi.. i am trying to modify .java files from existing war file, compile and again save as war file and then use it. I tried importing the war file into a simple project in eclipse and im not able to compile the java files (actually save button also remains inactive, right_click_on_project > Properties dialog box Java Build Path option is not seen ). <br>
<p> While importing war file, i tried doing it directly through 'import' option. And also by first extracting into folder and then importing. Both ways, the above mentioned problem is seen.
what am i doing wrong. Any i/p on this is apprceiated.

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

First this question is well suited in IDEs-Version-Control-other-tools section, after follow this link about importing war file. And its hard to have a solution to your problem, I'm not getting any idea about How you are importing war file OR I'm not getting it right .


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
isha gopal
Greenhorn

Joined: Apr 17, 2009
Posts: 3
Sagar Rohankar wrote:First this question is well suited in IDEs-Version-Control-other-tools section, after follow this link about importing war file. And its hard to have a solution to your problem, I'm not getting any idea about How you are importing war file OR I'm not getting it right .


yes im importing in the same manner as shown in the link; selecting war file from the Import option. The problem is im not able to save the files (i.e., it gets saves as a text file when i do ctrl+s and save button remains inactive . in essence, no compilation) where as im able to compile and a run a simple java project. I want to edit the java files in the war and save and then make a new war file.
so obviously, when i try to make a war file , deploy in AS and execute.. its giving error.

If i had missed mentioning any useful info..please let me know.

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

isha gopal wrote:it gets saves as a text file when i do ctrl+s and save button remains inactive . in essence, no compilation

That's really annoying. May be original Java files are saved as text files, like "Test.java.txt", buts that's my guess. Attached your war file here, that's help us to solve your problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Prob in eclipse while importing war file - not bale to compile .java files
 
Similar Threads
Different Versions Of Eclipse. What's the Difference???
eclipse - importing war file - not able to compile - Please help
Web app deployment model depends on build.xml? (Lomboz)
Struts Blank WAR error
How to import a web project in eclipse?