File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes JSP Project Deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Project Deployment " Watch "JSP Project Deployment " New topic

JSP Project Deployment


Joined: Aug 28, 2007
Posts: 10
i have developed an application using jsp and servlets , in Netbeans IDE , after completely deploying the Netbeans Project , i got a WAR file
I want to convert WAR file to exe file , in order to run the application as standalone application

Is there any process to do this ???

Please help me out

thanks in advance
Tarun Yadav
Ranch Hand

Joined: Sep 20, 2007
Posts: 134
You can't do that! You need to get your fundamentals clear on this. Just as you can't run a Java application without a JRE, you can't run a web application without a proper environment which is provided by the container.

EDIT: As for WARs, it's basically a JAR which is basically a ZIP file. So it's not a compiled executable as you might be mistakenly assuming; it's simply a zipped archive with a different extension. You can easily extract it's contents and you'll see that it's all the same stuff that you put into a web-apps directories; your libraries, your compiled classes, JSPs, HTML pages etc.
[ October 03, 2007: Message edited by: Tarun Yadav ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

As Tarun Yadav has correctly stated.
A Java web application is, essentially, a plugin component to a Java Application Server and can not be deployed as a standalone application.

If you wanted that, you probably shouldn't have written it as a web app.
Why didn't you use Swing?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: JSP Project Deployment
It's not a secret anymore!