faqts : Computers : Programming : Languages : Java : IDE Related : Eclipse

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 1 people (100%) answered Yes
Recently 1 of 1 people (100%) answered Yes

Entry

Java: IDE: Eclipse: Application: How to include classes? [classpath]

Apr 21st, 2006 13:49
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 21 April 2006 - 08:49 pm ----------------------

Java: IDE: Eclipse: Application: How to include classes? [classpath]

---

This method is similar to setting the CLASSPATH in MSDOS or Microsoft
Windows environment.

===

Steps: Overview:

 1. -Start the program 'Eclipse'

 2. -Create a new project or open an existing project

 3. -Add the classes

     1. -Select from menu option 'Project'

     2. -Select from list 'Properties'

     3. -In the left pane click on 'Java Build Path'

     4. -Select tab 'Libraries'

     5. -Click button 'Add external Jars'

     6. -Browse to your 'jar' or 'zip' directory
         containing your classes

         1. -E.g.

              C:\JAVA\jakarta-tomcat\lib\

     7. -Select all the following files
         containing the classes you need
         for your project
         (keep <CTRL> pressed to select more than
          1 file)

          E.g.

           ant.jar

           jasper.jar

           servlet.jar

           webserver.jar

           xml.jar

     8. -Click button 'OK'

 4. -If you now compile your project (e.g. using
     menu 'Run'->'Run as') this classes are included.

===

Tested successfully on
Microsoft Windows XP Professional (service pack 2),
running
Eclipse v3.1.1

===

Internet: see also:

---

Java: IDE: Eclipse: Link: Overview: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/40633/fid/1778

----------------------------------------------------------------------