i m able to compile NameForm.java, but when i compile NameAction.java, i m getting following errors:
NameActio.java:19:can not resolve symbol
like this i m getting 4 can not resolve symbol errors.
can anybody help me???
my application's directory structure is as shown below:
| |--lib |--NameForm.java
| |--tlds |--NameAction.java
*)and i have set path and classpath with following values:
*)and i m compiling as shown below:
after above step i m getting four "can not resolve symbol" errors.
But i have successfully compiled NameForm.java file and facing problem in compiling NameAction.java.
can you please see though it.
Naveen, since the classes are in the example package, so you must not compile the files from the example directory. Instead compile the classes from the WEB-INF\classes directory like javac example\NameAction.java.
Also usually a folder named src in the WEB-INF directory is used to store source files i.e. .java files. You can compile .java files in src folder to classes folder (so that the .java files are in src folder and .class files are in classes folder) using the -d flag of the javac command. Search on the internet for more information on the javac command...
Joined: Feb 13, 2009
i agree with what all you have told.... i tried compiling it from the classes folder as you told, but even then i m getting the same errors. The problem is that the compiler is not able to locate "NameForm.java". if i remove all the statements related to NameForm class in NameAction.java, then it is compiling successfully. one of my friend told that there might be problem with path and classpath!!! what you have to say about this. Please provide some solution.