File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes creating a war Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "creating a war" Watch "creating a war" New topic
Author

creating a war

Tom Griffith
Ranch Hand

Joined: Aug 06, 2004
Posts: 257
Hello. If somebodd has a minute, when using the command line, I can't seem to get my jsp's, jpgs, html, etc bundled...

c:\fuzzy> jar cvf fuzzy.war WEB-INF

All the jsp, html, etc are in the root C:\fuzzy directory. I think I am realizing the WEB-INF argument is telling the compiler to only look in there and it's grabbing all my classes and jar files, but I'm not sure how to tell it to look into the C:\fuzzy root. Thank you very much.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
try

c:\fuzzy> jar cvf fuzzy.war .

The dot (.) tells it to use the current directory as the root.


Merrill
Consultant, Sima Solutions
Tom Griffith
Ranch Hand

Joined: Aug 06, 2004
Posts: 257
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating a war
 
Similar Threads
directory structure questions...
How to Generate a War file
where is my webapp?
Exception: com.microsoft.jdbc
Help...JSP, MySql, and JDBC