wood burning stoves 2.0*
The moose likes Struts and the fly likes New - Freshie Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "New - Freshie" Watch "New - Freshie" New topic
Author

New - Freshie

Jon cross
Greenhorn

Joined: May 23, 2004
Posts: 1
Hi Everyone,
Just starting to learn struts.
Have struts.jar/ Tomcat-catalina / j2sdk1.4 .
have struts / jdk on the classpath


Downloaded an example.war for testing purpose.put it under web-apps of tomcat.

When i start up tomcat it show the correct page and the page loads ok.


When i try to make any change to the existing *.java file (any action class etc) or should i say "compile" the file , it gives me "cannot resolve symbol ..." when the other files which it is saying abt is in the same folder.

I hope my explanation is making some sense...!!

Thanks in advace ,
Cross
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

That error usually means that you missed something with Java's syntax rules... like using a variable name that was never declared.


A good workman is known by his tools.
mike lau
Greenhorn

Joined: May 24, 2004
Posts: 1
Hi Marc ,me too in the same boat as Jon.

So do i need something like "Ant" to compile.
Or do i need to have some open source like eclipse.?

I have the same problem.

Thanks,
-mike
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Jon cross:
When i try to make any change to the existing *.java file (any action class etc) or should i say "compile" the file , it gives me "cannot resolve symbol ..." when the other files which it is saying abt is in the same folder.
Just checking... Are those other files in the same Java package as well? If not, you need to import them.

It would probably help if you would post your code so that we can actually see the code that doesn't compile. (btw, use the UBB CODE tags around your code snippets to make them print nicely)


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by mike lau:
Hi Marc ,me too in the same boat as Jon.

So do i need something like "Ant" to compile.
Or do i need to have some open source like eclipse.?

Using Ant doesn't help since the problem is in the source code, and Ant would use the same compiler anyway. Using Eclipse wouldn't help either since its Java compiler follows the same Java Language Specification that your regular javac does...
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

It would probably help if you would post your code so that we can actually see the code that doesn't compile.


I agree. It would be much easier to figure out if you didn't leave out the symbol(s) that could not be resolved.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: New - Freshie
 
Similar Threads
Catalina.jar issue
new to struts
I Can not access my welcome file, frame.jsp?
Struts Startup/Restart Resource Not Found Problem
Problem in using property of a bean in composing a html link