This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying Project

 
Mehul Kumbhani
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have completed my project using netbeans IDE 6.8 in servlet.

Now i want to run my project without netbeans,it is possible.
How can i achieve this.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34396
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mehul,
You can create a jar file by exporting the project in NetBeans. Then it can run at the Java command line.
 
Mehul Kumbhani
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,
I have created .war file from netbeans.
can i run this file?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mehul Kumbhani wrote:Sir,
I have created .war file from netbeans.
can i run this file?


You don't actually "run" it. You install it (deploy) into a J2EE server and run the server. When your web browser submits a URL that matches the application context that you deployed, it routes the URL to your application code.

For basic servelt/JSP WARs, you can use Tomcat as your webapp server. If you're using more advanced J2EE features such as EJBs, you need a full-function J2EE/JEE server such as JBoss, WebSphere, WebLogic or something similar.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic