File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New - Freshie

 
Jon cross
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That error usually means that you missed something with Java's syntax rules... like using a variable name that was never declared.
 
mike lau
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic