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

Not able to create war file

smitha rajgopal

Joined: Sep 22, 2005
Posts: 14
I am not able to create war file using the 'build war' command from commad prompt.
I have a folder with just a jsp file and webInf copied into that folder.My jdk1.5 is installed in h: drive and my folder is in d: drive and my java_home is set.My claspath is set to tools.jar present in jdk1.5.
From the command prompt if i try d:example/build war ..i get the error "build is not recognised as internal or external commad".
I even tried setting the 'path' variable to tools.jar.But its giving the same error.
Please help...

Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
I think you have some reading to do. "build" is not part of the JDK environment. You'll want to use jar to create war files.

<a href="" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
I agree. Here's the link:
subject: Not able to create war file
jQuery in Action, 3rd edition