wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes can't able to compile javabean file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "can Watch "can New topic
Author

can't able to compile javabean file

V K Gupta
Ranch Hand

Joined: Aug 07, 2008
Posts: 55
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
harilal ithikkat
Ranch Hand

Joined: Oct 06, 2008
Posts: 221
javac -d . *.java


SCJP 1.5
"A candle looses nothing by lighting another candle"
itechmentors.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't able to compile javabean file