Skip to main content



      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 00:51 Go to next message
Eclipse UserFriend
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 00:52] by Moderator

Re: Newbie: how to make a project questions [message #902018 is a reply to message #901917] Wed, 15 August 2012 09:58 Go to previous messageGo to next message
Eclipse UserFriend
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 07:01 Go to previous message
Eclipse UserFriend
www.itandtschool.com/php_course.html
www.itandtschool.com/java_course.html
Previous Topic:activePerspective in workbench.xml not starting
Next Topic:launching delegate issue with Eclipse
Goto Forum:
  


Current Time: Tue Jul 08 09:16:12 EDT 2025

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

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

Back to the top