Hello,

I am modifying the example app for struts, just adding another profile
property to see how things fit together.  My problem is that I can't compile
any of the java files that reference other classes, even ones I haven't
modified.  I know somehow that the solution to this is easy and that I
should be able to figure it out on my own, but I've spent too much time on
this so I give in!  I couldn't find anything helpful when searching the
archives except that it seems like it has something to do with my classpath.
Specifically, I am trying to compile User.java, and I was unable to compile,
as a test, Subscription.java as well.  However, I am able to compile
RegistrationForm.java just fine (which doesn't reference any of the example
classes).

Here is my classpath(which includes the directory for where the .class files
are for the example app as well as the directory that the .java files are
in)(I'm compiling in my editor, JCreator):

C:\Program Files\Allaire\JRun\servers\default\Struts
Example\WEB-INF\classes\org\apache\struts\webapp\example;C:\Program
Files\Allaire\JRun\servers\default\Struts
Example\WEB-INF\lib\struts.jar;C:\Program
Files\Allaire\JRun\servers\default\Struts
Example\WEB-INF\src\org\apache\struts\webapp\example;C:\Program
Files\Allaire\JRun\lib\ext\servlet.jar;C:\jdk1.3.1\jre\lib\rt.jar;C:\jdk1.3.
1\jre\lib\i18n.jar;C:\jdk1.3.1\lib\dt.jar;C:\jdk1.3.1\lib\tools.jar

and here is a sample error (they are all the same pretty much):

C:\Program Files\Allaire\JRun\servers\default\Struts
Example\WEB-INF\src\org\apache\struts\webapp\example\User.java:272: cannot
resolve symbol
symbol  : class Subscription  
location: class org.apache.struts.webapp.example.User
    public Subscription findSubscription(String host) {
           ^

Thank you in advance,

Hilary



Reply via email to