Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Unable to resolve symbol

Posted on 2004-10-14
11
Medium Priority
?
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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
 

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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

610 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