Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » import syntax for newbie
import syntax for newbie [message #153798] Tue, 23 May 2006 11:29 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:BIRT report
Next Topic:Servlet Question
Goto Forum:
  


Current Time: Mon Nov 11 08:33:26 GMT 2024

Powered by FUDForum. Page generated in 0.08049 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top