Adding external JAR to Eclipse

32,446

Solution 1

Download those dependent jar files.

Right click on your project -> Build Path -> Add External Jars

Follow this tutorial to setup java build path in eclipse.

Managing Java Build Path

Solution 2

Well first of all, download that jar from this link:

http://www.java2s.com/Code/Jar/a/Downloadantlrruntime301jar.htm

and then Right click on your project and Goto BUIld path and select ADD External Jar.

Right Click -> Build path -> add externalJars

and even you can add it into the /WEB-INF/lib folder too.

and that way program will work error will be solved.

Share:
32,446
Micah Kwaka
Author by

Micah Kwaka

Updated on January 31, 2020

Comments

  • Micah Kwaka
    Micah Kwaka over 4 years

    I am using the spring frame work tutorial, I am in the part I have to add the external JAR but I seem to be missing some like org.springframework.asm-3.1.0.M2, antlr-runtime-3.0.1. SO what have I done wrong?