File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes using package getting compiler error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "using package getting compiler error" Watch "using package getting compiler error" New topic

using package getting compiler error

hasan khan
Ranch Hand

Joined: Aug 04, 2003
Posts: 222

I have a project at c:\myproject

I have a file name as in c:\myproject

I have a sub-directory named as com\sski\ in c:\myproject

In that subdirectory there is a file (package of is com.sski) which is using class b.

I have compiled successfully, But I am unable to compile
I am getting compiler error cannot resolve symbol

Sourece of is as follow

i have even tried using import b;
then i get error as '.' expected

how do i successfully compile, where do i place
i dont want to put inside any package.
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
This might help you

java amateur
Jon Lee
Ranch Hand

Joined: Mar 04, 2005
Posts: 134
Try to put in the directory of Namely, put and in the same dicrectory: [c:\myproject\com\sski\]

Now you can compile

Read more about ClassPath to know the cause of your problem.

SCJP 5.0 - 98% (2007)<br />SCWCD 1.4 - 97% (2007)
I agree. Here's the link:
subject: using package getting compiler error
jQuery in Action, 3rd edition