Unable to resolve symbol


Hey can anyone help as to why im getting the following error when i try complie my class

orphans/OrphansDetails.java:42: cannot resolve symbol
symbol  : class OrphanBean
location: class serviceDeployment.orphans.OrphansDetails
        OrphanBean orphan = new OrphanBean();


I have a package with two classes in it the OrphanDetails (cant complie this class) and the OrphanBean class which complies fine.

Thanks
fynessAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
Sorry - (assumed Windows)

javac serviceDeployment/orphans/*.java
0
 
CEHJCommented:
>>(cant complie this class)

Why not?
0
 
fynessAuthor Commented:
if i knew that i wouldnt of asked the question. the error above is the problem
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
CEHJCommented:
Make sure your class files look something like this:

package serviceDeployment.orphans;

public class OrphansDetails {
}



SNIP=====================================


package serviceDeployment.orphans;

public class OrphanBean {
}
0
 
fynessAuthor Commented:
yup, they do
0
 
CEHJCommented:
Compile OrphanBean first

javac serviceDeployment\orphans\OrphanBean.java
0
 
fynessAuthor Commented:
did that too, the class in there in the same package / directory as the details class and still no joy
0
 
CEHJCommented:
Try this then

javac serviceDeployment\orphans\*.java
0
 
fynessAuthor Commented:
get the following error

[root@dedicated axis]# javac serviceDeployment\orphans\*.java
error: cannot read: serviceDeploymentorphans*.java
1 error


the folder is there though, i can cd into it
0
 
fynessAuthor Commented:
yep, that worked mad!

thanks
0
 
CEHJCommented:
8-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.