Solved

Unable to resolve symbol

Posted on 2004-10-14
11
251 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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java - Why doesn't this JFrame work 3 59
arguments to jar 5 26
check java version using powershell 13 93
Running JavaFX on JDeveloper 12C 1 32
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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

809 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