Solved

Unable to resolve symbol

Posted on 2004-10-14
11
248 Views
Last Modified: 2010-03-31

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
0
Comment
Question by:fyness
  • 6
  • 5
11 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 12306742
>>(cant complie this class)

Why not?
0
 

Author Comment

by:fyness
ID: 12306752
if i knew that i wouldnt of asked the question. the error above is the problem
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12306759
Make sure your class files look something like this:

package serviceDeployment.orphans;

public class OrphansDetails {
}



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


package serviceDeployment.orphans;

public class OrphanBean {
}
0
 

Author Comment

by:fyness
ID: 12306765
yup, they do
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12306807
Compile OrphanBean first

javac serviceDeployment\orphans\OrphanBean.java
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:fyness
ID: 12306826
did that too, the class in there in the same package / directory as the details class and still no joy
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12306844
Try this then

javac serviceDeployment\orphans\*.java
0
 

Author Comment

by:fyness
ID: 12306902
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
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 12306919
Sorry - (assumed Windows)

javac serviceDeployment/orphans/*.java
0
 

Author Comment

by:fyness
ID: 12306938
yep, that worked mad!

thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12306958
8-)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now