Forums Register Login

can't able to compile javabean file

+Pie Number of slices to send: Send
i am having two javabean files dog.java and person.java inside tomcat/webapps/jsp7/web-inf/classes/foo


----------------------------------------------------------
code of dog.java
----------------------------------------------------------
package foo;

public class Dog {
String name;

public void setName(String name) {
this.name = name;
}

public String getName() {
return name;
}
}

---------------------------------------------------------------------------------
code of person.java
-------------------------------------------------------------------------------
package foo;

public class Person {
String name;
Dog dog;

public void setDog(Dog dog) {
this.dog = dog;
}
public void setName(String name) {
this.name = name;
}

public Dog getDog() {
return dog;
}

public String getName() {
return name;
}
}

The problem is : dog.java files compiles very well, but person.java is not able to compile it shows an error : cannot find symbol Dog
+Pie Number of slices to send: Send
javac -d . *.java
+Pie Number of slices to send: Send
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.

ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1251 times.
Similar Threads
Simple EL code is not working
El property not found problem
Unable to compile these java files
Compiling java file
EL doesn't work
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:12:00.