• Post Reply Bookmark Topic Watch Topic
  • New Topic

another usebean doubt  RSS feed

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
joe here

person.java
package pack;
public abstract class person
{ private String name;
public person()
{ }
public void setName(String name)
{this.name=name; }
public String getName()
{return name; }
}
<b> empl.java </b>
package pack;
public class empl extends person
{ private int eno;
public empl()
{ }
public void setEno(int eno)
{this.eno=eno; }
public int getEno()
{return eno; }
}

i have these two classes in pack package for access as usebean .
i set the classpath as set classpath=%class%;.;

when i compile the person.java no error.
but when i compile the empl.java it shows as
cannot resolve symbol person. what may the error.
i set the path everything.
 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by joseph prabhu:
joe here

person.java
package pack;
public abstract class person
{ private String name;
public person()
{ }
public void setName(String name)
{this.name=name; }
public String getName()
{return name; }
}
<b> empl.java </b>
package pack;
public class empl extends person
{ private int eno;
public empl()
{ }
public void setEno(int eno)
{this.eno=eno; }
public int getEno()
{return eno; }
}

i have these two classes in pack package for access as usebean .
i set the classpath as set classpath=%class%;.;

when i compile the person.java no error.
but when i compile the empl.java it shows as
cannot resolve symbol person. what may the error.
i set the path everything.


joe here again
empl class i imported the package pack also as
package pack;
import pack.*;
public class empl extends person
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!