Right click on the project in which you want to put jar file. A window will open like this

Click on the AddExternal Jars there you can give the path to that jar file

Answer from Ram kiran Pachigolla on Stack Overflow
🌐
Blogger
javarevisited.blogspot.com › 2016 › 07 › eclipse-how-to-add-external-jar-into-classpath.html
Eclipse - How to add/remove external JAR into Java Project's Classpath? Example
May 17, 2023 - That's all about how to add/remove JAR files into your project's classpath in Eclipse. If you are using Maven with Eclipse e.g. via the M2Eclipse plugin then you don't need to do this exercise, as Maven dependencies are always in the build path. You just need to add the new library to the pom.xml and Maven will download and add into Maven dependency automatically. Further Learning Beginners Eclipse Java IDE Training Course Eclipse Debugging Techniques And Tricks The Eclipse Guided Tour - Part 1 and 2 Other Eclipse tutorials and tips for Java Programmers
Discussions

Setting the classpath in java using Eclipse IDE - Stack Overflow
I have an Eclipse project with an external folder containing a lot of JAR files (legacy libraries) . instead of adding all the jars in Eclipse ("add external Jar"), I would prefer to add a ref to t... More on stackoverflow.com
🌐 stackoverflow.com
A .jar added to the Eclipse classpath is missing at runtime
I am trying to insert a .jar file onto the classpath in Eclipse only. (Don’t ask!) It seems to only get onto the compile classpath. It builds, but when launching with Run, or Run as JUnit it is missing and crashes. The… More on discuss.gradle.org
🌐 discuss.gradle.org
11
0
April 13, 2018
How to place a file on classpath in Eclipse? - Stack Overflow
As this documentation says, "For example if you place this jndi.properties file on your classpath", but how can I place the .properties file on my classpath if I am using Eclipse? ... Just to add. If you right-click on an eclipse project and select Properties, select the Java Build Path link ... More on stackoverflow.com
🌐 stackoverflow.com
Configure classpath in Intellij similar to adding a project to Eclipse's classpath user entries

In your picture you have maven dependencies. As such, the easiest to import such project info IntelliJ is usually the following : File > Open > sélect your root pom > select « open as a project » That should apply all the correct settings, given that you already have a compatible SDK registered.

More on reddit.com
🌐 r/IntelliJIDEA
7
2
September 14, 2019
🌐
Reddit
reddit.com › r/java › how do i add jar files to classpath? specifically, i am using eclipse and i want to add quartz scheduler jar files
r/java on Reddit: How do I add jar files to classpath? Specifically, I am using Eclipse and I want to add Quartz scheduler jar files
February 3, 2014 - In Eclipse: Right click your project, select Build Path > Configure Build Path... Tab over to Libraries · Add external JARs... > Find the JAR you're looking for · Should be good to go.
🌐
Eclipse
archive.eclipse.org › eclipse › downloads › documentation › 2.0 › html › plugins › org.eclipse.jdt.doc.user › tasks › tasks-114.htm
Adding a classpath variable to the build path
Select the project to which you want to add the classpath variable ... In the Properties page, select the Java Build Path page. On the Libraries tab, click Add Variable for adding a variable that refers to a JAR file. The New Variable Classpath Entry dialog appears which shows all available ...
🌐
Baeldung
baeldung.com › home › java › jvm › ways to add jars to classpath in java
Ways to Add JARs to Classpath in Java | Baeldung
July 19, 2025 - In this article, we’ll examine different methods for adding these libraries as JARs on the classpath. First, if we’re launching our program from the command line, it can make sense to specify our JAR dependencies as part of the command: java -cp /path/to/jar/file.jar com.example.MyClass
🌐
Java Code Geeks
javacodegeeks.com › home › core java
Include Jars In Java Classpath Example - Java Code Geeks
February 13, 2025 - Run the Java program as usual without specifying the JAR in the classpath · However, this mechanism was removed in Java 9 due to security and modularization improvements introduced by Project Jigsaw. For modern Java versions, consider using explicit classpath settings or dependency management tools like Maven or Gradle. Modern IDEs like Eclipse and IntelliJ IDEA provide built-in mechanisms to easily add JAR files to your project’s classpath.
Find elsewhere
🌐
Techwalla
techwalla.com › tech support › how to
How to Set the Classpath in Eclipse | Techwalla
February 9, 2017 - Click "Add External JARs..." to also include a JAR from another location on your computer if needed for your project. Click "Open" to add the path to the project. ... Add the JRE library. ... Click "Add Library..." to build a path for a library. The exact library you may need varies with your project. For example, to add the Java runtime environment, choose "JRE System Library" and click "Next." ... Click "Finish" to complete setting up the path for the JRE system library. Your classpath is now complete and you can return to your workbench.
🌐
Gradle
docs.gradle.org › current › dsl › org.gradle.plugins.ide.eclipse.model.EclipseClasspath.html
EclipseClasspath - Gradle DSL Version 9.6.0
Used by the GenerateEclipseClasspath task to generate an Eclipse .classpath file. The following example demonstrates the various configuration options. Keep in mind that all properties have sensible defaults; only configure them explicitly if the defaults don't match your needs. plugins { id 'java' id 'eclipse' } configurations { provided someBoringConfig } eclipse { //if you want parts of paths in resulting file to be replaced by variables (files): pathVariables 'GRADLE_HOME': file('/best/software/gradle'), 'TOMCAT_HOME': file('../tomcat') classpath { //you can tweak the classpath of the Ecli
🌐
TutorialsPoint
tutorialspoint.com › What-are-classpath-of-projects-in-Java-eclipse-projects
What are classpath of projects in Java eclipse projects?
February 20, 2020 - JavaObject Oriented ProgrammingProgramming · You can include Jar files to which you need to set the classpath in the eclipse project using build path · Step 1 − Right click on the project Select Build Path → Configure Build Path. Step 2 − Select libraries select Add External JARs…
🌐
Eclipse
help.eclipse.org › latest › topic › org.eclipse.jdt.doc.isv › guide › jdt_api_classpath.htm
Setting the Java build path
For example, a given project may choose to switch from using a source folder to exporting a library. This can be done without requiring its dependent projects to change their classpath. The factory method for a project prerequisite is newProjectEntry. The following classpath entry denotes a ...
🌐
Mercer
theochem.mercer.edu › csc204 › ClassPaths.pdf pdf
Adding Class Files to your Eclipse Build Path
Now that you have the class file ... to tell Eclipse to use that folder when if · tries to build your project. To start this process click make sure that the title of your project is · highlighted in the directory listing on the left of your screen. Then click the Project menu item at the · top of the screen and select “Properties” from the pull down menu. Select “Java Build Path” ...
🌐
Oracle
docs.oracle.com › javase › tutorial › deployment › jar › downman.html
Adding Classes to the JAR File's Classpath (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)
The following is an example of the Class-Path manifest attribute: Class-Path: servlet.jar infobus.jar acme/beans.jar images/ By using the Class-Path attribute in your application's JAR file manifest, you can avoid having to specify a long -classpath flag when launching java to run your application.
🌐
Gradle
discuss.gradle.org › help/discuss › buildship
A .jar added to the Eclipse classpath is missing at runtime - Buildship - Gradle Forums
April 13, 2018 - I am trying to insert a .jar file onto the classpath in Eclipse only. (Don’t ask!) It seems to only get onto the compile classpath. It builds, but when launching with Run, or Run as JUnit it is missing and crashes. The relevant bits are: subprojects { configurations { parserSubstitution } dependencies { parserSubstitution module("com.example:parser:1.0.0-SNAPSHOT") } apply plugin: 'eclipse' eclipse { classpath { plusConfigurations ...
🌐
Coderanch
coderanch.com › t › 105229 › ide › set-ClassPath-eclipse
How to set ClassPath in eclipse (IDEs and Version Control forum at Coderanch)
... Setting application specific ... following below steps. Right Click on Project --> Properties --> Java Build Path --> (Here You can use either "Add JARs" or "Add External JARs") depending upon the physical location of your JAR files in your system....
🌐
Wikihow
wikihow.com › computers and electronics › software › programming › java › how to add jars to project build paths in eclipse (java)
How to Add JARs to Project Build Paths in Eclipse (Java)
August 10, 2022 - Hold ⇧ Shift to select multiple JARs. ... Click OK. This closes the extend dialog window. ... Click OK. This closes the new classpath variable dialog. ... Click OK. This closes the build path setup dialog. If you share the project with someone else, they must also define the variable. They can define it under Window->Preferences->Java->Build Path->Classpath Variables.
🌐
Java67
java67.com › 2017 › 04 › how-to-add-jar-file-in-eclipse-project.html
How to add JAR files in Eclipse Project's Build path? Example | Java67
In this Java Eclipse tutorial, ... files in Eclipse Java projects. Many times we need to use external JAR files in our Java application for different needs like for general purposes you may use Google Guava or Apache Commons. If you are using Spring or Hibernate framework then you need their JAR files as well. In order to use any third-party library or framework, we have to add their JAR files in the classpath, to compile ...
🌐
TutorialsPoint
tutorialspoint.com › javaexamples › env_jar_classpath.htm
How to set classpath when class files are in .jar file using Java
Following example demonstrates how to set class path when classes are stored in a .jar or .zip file. c:> java -classpath C:\java\myclasses.jar utility.testapp.main
🌐
Eclipse
archive.eclipse.org › eclipse › downloads › documentation › 2.0 › html › plugins › org.eclipse.jdt.doc.user › reference › ref-123.htm
Java Build Path page
JAR files can also be added indirectly as class path variables. By default, the library list contains an entry representing the Java runtime library. Typically this is a variable entry called JRE_LIB. This entry points to the JRE selected as the default JRE. The default JRE is configured in the Installed JREs preferences page (Window > Preferences > Java > Installed JREs) In the Build classpath ...