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
Hello,

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?

Thanks
Magnus
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: 13
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:Annotation Processors in Neon (4.6.0) and Maven
Next Topic:Hide running Threads while debugging vs suspended threads
Goto Forum:
  


Current Time: Mon Nov 20 21:21:51 GMT 2017

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

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