?
Solved

Unable to resolve symbol

Posted on 2004-10-14
11
Medium Priority
?
255 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

777 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