Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7602487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:25:27+00:00 2026-05-30T23:25:27+00:00

I have a Netbeans Java Project under Subversion (svn). This is shared with another

  • 0

I have a Netbeans Java Project under Subversion (svn). This is shared with another guy working on the project.

The project requires an external library that we have as a jar file. Now, when either of us makes a change and commits it, the project’s library dependencies fail as we have different paths for the library ( as we are working on different machines the location of the jar file is different ).

This means that every time I update my repository, I have to resolve library dependencies.

Is there a way I can prevent this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:25:28+00:00Added an answer on May 30, 2026 at 11:25 pm

    1st way: You can use NetBeans Library support.

    Go to Tools->Libraries, and new Library with your jar. Name it the same way on both machines and include to your NB project as Library rather then direct path to jar.

    2nd way: use relative path.

    Agree on having jar located at ../lib/foo.jar and use this path in NB project

    3rd way: use property file.

    Add file named, for example, build.properties but don’t commit it to svn. So both of you will have different local version of that file.

    Content should be something like next:

    myproject.library.foojar=C:/foopath/foo.jar
    

    In your build.xml include this file:

       <property file="../build.properties"/>
    

    In your nbproject/project.properties find a reference to the jar — it will look like:

    file.reference.foo.jar=C:/foopath/foo.jar
    

    change it to

    file.reference.foo.jar=${myproject.library.foojar}
    

    Also you may want to add build.properties into ignore list for svn to avoid commiting it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added some external libraries to my java project (in netbeans). Is it
Java Newbie here. I have a JFrame that I added to my netbeans project,
I have a Java project in Netbeans and I want to use some classes
I have a large CVS Repository in a Netbeans Java Project. I used to
I've inherited a java project that appears to have been developed using the NetBeans
I have a java web application project with Spring framework in netbeans and I'm
I have a Netbeans Platform modular project, not a regular Java project. I want
We have a Java EE 5 project developed using Netbeans 6.7.1 with Glassfish v2.1.
I have a netbeans java console project which uses Spring 3.0 ( which is
I have a Java Project in NetBeans 7.0. I want to add some image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.