I am a .Net developer, but for my current project I need to create Java code. I have used some Java encodings in the past (I even learned OOP with Java), but I'm new to Eclipse, which I have to use.
I need to create several Java console applications that have common functionality. I want to combine this common functionality into one library (JAR file) and use this file from command line programs. When I change the library, all dependent console applications also need to be rebuilt.
In Visual Studio (.Net), I will create a new solution and add one Class Library project and several Console Application projects and make them dependent on the class library. I am having trouble recreating the same installation using Eclipse / Java. I think the Java equivalent of the .Net Class library is a JAR file. However, I still have not figured out how to create a JAR file project in Eclipse (I can export the project to a JAR, but this is a manual step, I like it automatically) and reference this JAR project from several “normal” Java projects.
I hope I have clearly explained. Can anyone shed some light?
source
share