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

setting classpath

rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
hi friends,
I am very new to struts.i have just started to develop my first app using struts.i am not able to compile the form and action.i get the error that the package org.apache.struts.action.*, does not exist.
please guide me as how i should set the class path to compile the form and action.also give me a link which wud guide me to build the properties file.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33107

If you are compiling at the command line, you can use the -cp option of javac. If you are using an IDE, post which one.

I'm not sure what you mean by build the properties file.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
hi Jeanne,
thanks for your reply.i have compiled my classes now.i meant the Message Resource Bundle by Properties file,where the declarations for the errors are given.
please guide me as how i should deploy my application.i am not using any IDE.i am using only notepad.
i had zipped my app folder to create a WAR and dropped it in the webapps folder of Tomcat,but i get the error HTTP 404-Resource not found.
please guide me as how i shud deploy the app.

I agree. Here's the link:
subject: setting classpath
It's not a secret anymore!