wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes eclipse: confusions about war files and jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "eclipse: confusions about war files and jar files" Watch "eclipse: confusions about war files and jar files" New topic
Author

eclipse: confusions about war files and jar files

himani jangid
Greenhorn

Joined: Jul 04, 2013
Posts: 18
I have never put my hands on in creating jar and war files. so i have following confusions:
1) first of all if we are using tomcat using eclipse then we can run those project in other browsers apart from the eclipse inbuilt browser.
those browsers can display our project but can we run those projects that were not created using eclipse??
eg. i have few old projects that are placed in web-app folder of tomcat so problem is that previously i was use to run them by setting environment var like catalina_path etc but with eclipse we dont need to do this but still
we are able to run the projects in external browsers but i am only able to run those projects that i have created using eclipse and could not run those which i have kept in web-app folder of tomcat.
so , to run those do i need to set the environment variables??

2)with eclipse i can export and import war files. when imported it is again converted to the same project hierarchy or unzipped but can i run those war files without unzipping them. or you can say can i made them read only
and then run using eclipse or using external browsers.




Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

1) Eclipse uses its own internal webapps directory and deploys wars it builds there. A grep (within workspace/.metadata) should find that directory for you, you could place your wars there. I think there might also be an option to deploy the the Tomcat webapps directory. Of course, there is always the sysdeo plugin which many ranchers recommend.

2) Not sure that you are asking here, but does my previous answer help?


JBoss In Action
himani jangid
Greenhorn

Joined: Jul 04, 2013
Posts: 18
sorry, i was not clear while posting the question. now these things are clear to me and i understood your point 1 too.. thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: eclipse: confusions about war files and jar files