Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: adding jar files in Eclipse

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default adding jar files in Eclipse

    OS: UBUNTU 14.04
    Eclipse : Luna Release (4.4.0)

    I am trying to create a JSF web application using Eclipse. I was going through a tutorials, where it showed to add some jar files under the WebContent>>WEB-INF folder. In the tutorial, some jar files were added in WEB-INF folder for JSF. The tutorial was created using Windows OS.

    Do we need really need to add the jar files to WEB-INF for JSF projects. If so where can I find the jar files in my Ubuntu. How to add jar files in Ubuntu for JSF application?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: adding jar files in Eclipse

    What .jar files? Be specific. The Eclipse environment setup is essentially the same regardless the OS, so Yes, you should add the .jar files as instructed.

  3. #3

    Default Re: adding jar files in Eclipse

    Adding external Jar is not smart in case you want to change the project location in filesystem.

    The best way is to add the jar to build path so your project will compile if exported:

    1.Create a folder called lib in your project folder.

    2.copy to this folder all the jar files you need.

    3.Refresh your project in eclipse.

    4.Select all the jar files, then right click on one of them and select Build Path -> Add to Build Path

Similar Threads

  1. Eclipse plugin for Jar extraction and .class files
    By surya.chatta in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 17th, 2013, 11:55 AM
  2. Replies: 3
    Last Post: August 3rd, 2012, 10:40 AM
  3. [SOLVED] files size for files inside the JAR file
    By Natherul in forum Java Theory & Questions
    Replies: 3
    Last Post: February 9th, 2012, 03:17 PM
  4. How to create or edit .ser files in Jar files
    By xbill in forum Java IDEs
    Replies: 1
    Last Post: May 18th, 2011, 05:15 AM
  5. need help on jar files
    By kaka09 in forum AWT / Java Swing
    Replies: 2
    Last Post: July 13th, 2010, 09:30 AM

Tags for this Thread