facebook

User libraries and project organisation

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #287842 Reply

    isemmel
    Member

    I am new to java to usual excuses etc.

    In C#, say, I would create library projects and put my common code in them, and reference them from other projects.

    How do you do the same in eclipse ?

    The only methods I have come up with seem rather clunky. From a java project I can export .jars to a folder somewhere. Then I can create a user library and add the jars.

    This is fine for one project, but from another project, can I just get a reference to the previously created library ?

    Is there a way of automating the jar creation and export and updating the library ?

    Thanks

    #287857

    Loyal Water
    Member

    With Eclipse, you can go to Windows > Preferences > Java > Build Path > User Libraries and create a user library with your jars and this can be added to all your projects.

    Are you looking for something else?

    #287882

    isemmel
    Member

    Yes, thanks. I think I was looking for something a bit more automatic.

    Can you set it up to automatically create the jars ?

    #287887

    Loyal Water
    Member

    Can you please give me some more information on what exactly you want to automate.

    #287897

    isemmel
    Member

    Well, I have a project (or projects) which I use to create user libraries.

    The only way I know is to right-click the package and select export and then create a jar file(or files).

    WhatI would like is to build the project which automatically creates jars (from previously defined parameters) and export them to a place which is used by a user library (if you get what I mean)

    eg in C# I would define a library which consists of certain modules and then another project would reference that library. When I build this project, everything is pulled together

    #287908

    Loyal Water
    Member

    Can you go through the following doc :-
    http://www.myeclipseide.com/documentation/quickstarts/webprojects/#dependent_projects

    Im not sure but I guess your looking for the part that explains dependent projects. Let me know if you were looking for something else.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: User libraries and project organisation

You must be logged in to post in the forum log in