Solved

Unable to resolve symbol

Posted on 2004-10-14
11
252 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
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!

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web application structure 18 111
java example issue 5 42
running on tomcat not jboss eap 7.0 3 28
How to log java errors in tomcat 8 24
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…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

713 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