Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "FAQ How do I add an extra library to my project's classpath?"

 
m
 
Line 1: Line 1:
Open the context menu on the project, and select '''Properties
+
Open the context menu on the project, and select '''Properties &gt; Java Build Path &gt; Libraries'''. From here, you can add JAR files to the build path, whether they are inside your workspace or not. You can also add a <i>class folder</i>, a directory containing Java class files that are not in a JAR.  Note that plug-in development has more restrictions on where build path entries can come from.  For plug-in projects, you should always let the plug-in development tools organize your build path for you. Simply select the <tt>plugin.xml</tt> file, and choose '''PDE Tools &gt; Update Classpath''' from the context menu.
&gt; Java Build Path &gt; Libraries'''.  
+
From here, you can add JAR files to the build path,  
+
whether they are inside your workspace or not. You can also add  
+
a <i>class folder</i>, a directory containing Java class
+
files that are not in a JAR.  Note that plug-in development has more  
+
restrictions on where build path entries can come from.  For plug-in projects,
+
you should always let the plug-in development tools organize your build path for you.
+
Simply select the <tt>plugin.xml</tt> file, and choose '''PDE Tools &gt; Update
+
Classpath''' from the context menu.
+
 
+
 
+
 
+
 
+
  
 
== See Also: ==
 
== See Also: ==
 +
*[[FAQ How do I set up a Java project to share in a repository?]]
 +
*[[FAQ When does PDE change a plug-in's Java build path?]]
 +
*[[FAQ What is the classpath of a plug-in?]]
  
 
+
{{Template:FAQ_Tagline}}
[[FAQ_How_do_I_set_up_a_Java_project_to_share_in_a_repository%3F]]
+
 
+
 
+
[[FAQ_When_does_PDE_change_a_plug-in%26%23146%3Bs_Java_build_path%3F]]
+
 
+
 
+
[[FAQ_What_is_the_classpath_of_a_plug-in%3F]]
+

Latest revision as of 04:54, 17 June 2006

Open the context menu on the project, and select Properties > Java Build Path > Libraries. From here, you can add JAR files to the build path, whether they are inside your workspace or not. You can also add a class folder, a directory containing Java class files that are not in a JAR. Note that plug-in development has more restrictions on where build path entries can come from. For plug-in projects, you should always let the plug-in development tools organize your build path for you. Simply select the plugin.xml file, and choose PDE Tools > Update Classpath from the context menu.

See Also:


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top