Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Newbie: how to make a project questions
Newbie: how to make a project questions [message #901917] Wed, 15 August 2012 04:51 Go to next message
Tim Lai is currently offline Tim LaiFriend
Messages: 1
Registered: August 2012
Junior Member
hi.

i am new to java and have been putting the puzzles together on programming. my questions are bugging me alot. When i create a java project, I choose to create a new class. The problem is when I start typing "import acm.program.*;" The class file shows it as an error. How do I add the files to eclipse so it can read it in the class. or am I missing something very stupid. Thanks

[Updated on: Wed, 15 August 2012 04:52]

Report message to a moderator

Re: Newbie: how to make a project questions [message #902018 is a reply to message #901917] Wed, 15 August 2012 13:58 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1403
Registered: July 2009
Senior Member
Eclipse (and any other java compiler) has to be able to find the class your code imports in order to resolve references to it. Eclipse uses the Build Path to resolve references. You access the Build Path from the Properties dialog for your project. If you are trying to use a third party library, then the class is probably distributed in a jar. You add jar files to the Build Path on the Library tab of the Build Path page.
Re: Newbie: how to make a project questions [message #902366 is a reply to message #901917] Fri, 17 August 2012 11:01 Go to previous message
monika monika is currently offline monika monikaFriend
Messages: 1
Registered: August 2012
Junior Member
www.itandtschool.com/php_course.html
www.itandtschool.com/java_course.html
Previous Topic:How to call an existing Eclipse dialog from my custom Eclipse plugin?
Next Topic:How can I use eclipse default package explorer to create my own package explorer
Goto Forum:
  


Current Time: Sat Sep 23 07:41:21 GMT 2017

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

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