• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create a exe/jar from a WebApplication project in NetBeans?

 
Daniel Martins
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I have a WebApp in Netbeans.

When I build the project, a .war file is created in ../dist .

How can I get a jar/exe file?

Thanks in advance
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You do not create exe or JAR files from a web application project, since such a project must be deployed to, at least, a web container in order to run.
A WAR file is a special kind of JAR file used to deploy web applications to web containers and application servers.
Best wishes!
 
Daniel Martins
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you reply

So you are saying that the only way to run this app, is via IDE?

I have created the app, and the idea was to share the app with other collegues wihtout the need of the IDE...
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the only way to run the web application is to deploy it into, for instance, Tomcat, Jetty, GlassFish or something similar.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!