Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Dependent Projects and JAR files
Dependent Projects and JAR files [message #1752280] Fri, 20 January 2017 14:53 Go to next message
Magnus Warker is currently offline Magnus WarkerFriend
Messages: 16
Registered: October 2012
Junior Member

I have a Java library "MyLib" and a Java application "MyApp", which are included in my eclipse workspace.

The library can be compiled into a jar file. This is done manually with an ant script.

The application uses the library. The library's jar file is referenced in the application's classpath. In addition, the library is referenced as a "dependend project". As a result, my application can find all the classes contained in the library.

However, when I make changes to the classes in the library, my application keeps working, even if I don't update the jar file.

So what's the functionality behind the "dependend projects"? And when do I have to recompile the library's jar file?

Re: Dependent Projects and JAR files [message #1760769 is a reply to message #1752280] Tue, 02 May 2017 17:57 Go to previous message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 18
Registered: July 2009
Junior Member
For that to work, you should remove the library from dependent project list and have only the JAR in MyApp's build path. Of course, that will mean you will have to rebuild the JAR every time, either manually or find ways to automate the process.
Previous Topic:switch from "lambda expression" to "method reference"
Next Topic:Building Eclipse JDT From Source
Goto Forum:

Current Time: Thu Sep 20 00:44:56 GMT 2018

Powered by FUDForum. Page generated in 0.01436 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top