How to manage Libraries/jar files in eclipse?

I might be missing something but how do you manage Java projects in eclipse that need a lot of Jar files. I know maven manages libraries well if there are new updates but maybe I'm missing something, is there a way that eclipse can update new jar files (it would be especially useful for projects using apache-commons, say).

I don't want to sound like asking for a feature request, but I'm looking at if there are ways to keep libraries jar files that a Java project uses to keep them updated automatically the way maven does. With more languages coming with this type of features, finding the right Jar files probably should be easier than this.

-------------Problems Reply------------

Eclipse doesn't manage your jar versions for you, and as far as I know it won't do any auto-updating of jars that have newer versions out there. There's simply not enough information or infrastructure for Eclipse to recognize that a given jar you've added to the classpath is eligible for updating and that you want it updated.

However, there is a Maven plugin for Eclipse called M2Eclipse, which will read a POM and construct a classpath out of jars it finds in the local repository and any remote repositories you've configured. It behaves largely like Maven does in terms of finding the latest version for a given jar (if you've specified a version range in your POM).

You can create user libraries and change their content when new versions are available. That way you do not at least need to change the build path of every project. Or you can load sources of the libraries from their svn and use their trunk version. Remember that you can select multiple projects and svn update them at once.

Category:java Views:1 Time:2010-04-12
Tags: java eclipse

Related post

  • Creating jar files using Eclipse 2010-12-12

    I need to create a jar file using eclipse IDE. But I am facing with a problem of adding referencing jars to the jar I am creating... after creating a jar for my project, when I run it using command prompt (I use command prompt because I need to input

  • Adding external .jar file in Eclipse 2011-06-09

    I'm having trouble adding a .jar file I downloaded for my Java project. This is really the first time I've used eclipse, so please bear with me and for some reason (I have no clue why), I just find it somewhat confusing. I know that in order referenc

  • how do I add classpath to the exported runnable java .jar file using eclipse 2011-07-16

    so my projects have a lot of classpath variables set in the run configuration -> classpath tab in eclipse... but once I exported the project as a runnable java jar file, none of these classpaths are exported to the jar's manifest file despite havi

  • Getting a strange behavior when creating a runnable jar file on eclipse for my Chess project 2012-04-30

    As the topic says I have created a chess game as my first 2D game, but when ever I try to create a runnable jar file from it I get a strange behavior, and when I move the pieces the game becomes chaotic and nothing works. The weird thing is that insi

  • How can I include platform-specific native libraries in the .JAR file using Eclipse? 2010-04-23

    I am just starting to learn JNI. I have been following a simple example, and I have created a Java app that calls a Hello World method in a native library. I'd like to target Win32 and Linux x86. My library resides in a DLL, and I can call it just fi

  • Including JAR files in Eclipse (App Engine) project 2011-11-27

    I have been searching for a solution for this issue for multiple hours today and many hours yesterday so I decided to address it here, although it seems a stupid issue. Situation: I have a Google AppEngine project setup in Eclipse Java EE. It's there

  • how to provide signature in jar files in eclipse-plugins development? 2010-04-09

    Can anybody tell me how to add signature in jar file. I have developed a plugin, but when i am installing it, it is showing some warnings that it is not a signatured jar file. Can anyone give me guidance on how to do that? --------------Solutions----

  • How can I create a self-consistent .jar file with Eclipse? 2010-04-28

    I wrote my Java application in Eclipse. Now I would like to generate a .jar file which can be run on other systems from the command line. Is there a easy way to do it in Eclipse? In particular I am wondering what should I do with the jar files of ext

  • BlackBerry Facebook jar file in eclipse 2011-09-15

    I know this might sound a very basic question but I am having an issue in using Facebook SDK for Blackberry. I have downloaded the latest one 0.8.25. I have imported them in my eclipse and they are present in the referenced libraries. I have a game a

  • publishing the resource files of another project to context path instead of jar file in eclipse 2011-10-05

    I've few common resource files, like base JS, CSS files and HTML files and those files will be used by two maven projects/modules. I've moved these files to a common project & included that as a dependency to both projects. The common project is

  • Java: export to an .jar file in eclipse 2009-01-08

    Im trying to export a program in eclipse to a .jar file. To my project in I have added some pictures and pdf. When im exporting to jar file, it seems that only the main has ben compiled and exported. My will is to export everything to a jar file if i

  • How to export my QtJambi project to .JAR file within Eclipse? 2010-01-08

    i am using Eclipse and i have a QtJambi project which i would like to export in a .JAR file. I have tryed several times it never worked. It worked for me on a Swing project, but with a QtJambi project, I dont know how to do it. Here are the screensho

  • Adding images to a JAR file in Eclipse? 2010-05-06

    I'm trying to make a game in java, but I'm a bit of a newb. The game has images, and when I run the application from eclipse, they all show up fine. But when I export the project as an application, the images don't show up. When I put the application

  • How to run a jar file in Eclipse 2010-12-22

    I tried to run a jar file by going to Run configurations and then creating a new Java App, but Eclipse wants me to give it a main class and reference to the project. Can't I just give Eclipse a jar file? --------------Solutions------------- You could

  • Manage duplicate jar files using ant and ivy 2011-02-13

    HI, I am using ant build script to build my java app and utilizing Ivy to manage its dependency. As my application is dependent/subset of other application(Main App), when running it, I set the classpath to point to lib jars of the Main App. As I tri

  • Making excutable jar file using eclipse 2011-02-28

    My project runs fine from Eclipse. But when I tried to make it into a jar file or executable file it doesn't work. I used the option "Export-Runnable JAR file" The following message appears just after the eclipse finished the exporting process JAR ex

  • How to bind a jar file in eclipse? 2011-04-16

    How can I bind a 3rd party library (.jar file) in my java source? Are there any tutorials for this? --------------Solutions------------- I normally drag-and-drop the jar file in the project (in a suitable folder), and then right click it and select B

  • How to includes all images in jar file using eclipse 2011-06-16

    I made a java application and bundled all classes in a jar file. When I run the project from eclipse, my application is running successfully. But when I try to run my .jar file, I am not getting the icons used by my application. In the code I get my

  • how to open a jar file in Eclipse 2011-08-02

    I downloaded a demo jar file, and would like to open it in eclipse. What I did is import->Existing projects into workspace ->select archive file However, the eclipse returns "No projects are found to import". As command line, I type java -jar p

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.158 (s). 11 q(s)