import syntax for newbie [message #153798] |
Tue, 23 May 2006 11:29 |
Eclipse User |
|
|
|
Originally posted by: kerry.jcs.co.uk
just started working my way through Bruce Eckel's book to learn Java
language and using Eclipse to do the exercises.
Just started on chapter 3 which shows some code
import com.bruceeckel.simpletest.*; // which it cannot resolve
Now I have the examples downloaded onto my PC but I cannot find the syntax
needed to tell Eclipse to import from a folder on my Windows system
c:\beckel\thinkingjava\simpletest
Can someone tell me the correct notation.
Thanks
|
|
|
Re: import syntax for newbie [message #153807 is a reply to message #153798] |
Tue, 23 May 2006 11:37 |
Eclipse User |
|
|
|
Originally posted by: brunofernandesbastos.yahoo.com.br
just move the folders to your project folder in your workspace and do a
refresh in your project. The eclipse find the imports without you need to
especificate just clicking in the yellow box with a red x that is in the
left side of the line that the error appears.
|
|
|
Re: import syntax for newbie [message #153823 is a reply to message #153807] |
Tue, 23 May 2006 14:29 |
Eclipse User |
|
|
|
Originally posted by: kerry.jcs.co.uk
Thanks Bruno,
From playing I have also found that from the "properties" of the project I
looked at the "Java Build Path" libraries I noticed that I could add a class
folder.
I "created" a folder and linked it to the location of the downloaded files.
This seems to have done the same trick.
Not sure how I worked this one out but at least all my compilation errors
have gone. Now I am looking as to why it errors when running.
Many thanks for your option. It's good to know that if I have project
specific files or files that I want to keep with the project only that by
copying it into the project folder then it will automatically find the
files.
Kerry
"Bruno" <brunofernandesbastos@yahoo.com.br> wrote in message
news:d176fbd092dc59aaf86f5d12ddb1a9f5$1@www.eclipse.org...
> just move the folders to your project folder in your workspace and do a
> refresh in your project. The eclipse find the imports without you need to
> especificate just clicking in the yellow box with a red x that is in the
> left side of the line that the error appears.
>
|
|
|
Powered by
FUDForum. Page generated in 0.05847 seconds