Results 1 to 2 of 2
  1. #1
    jv_martin is offline Member
    Join Date
    Nov 2009
    Rep Power

    Default different external libraries for different OS and CVS


    I have a project that uses swt (jar). I build it both on MacOSX and Windows.

    The external library is different for the two machines, so the Java Build Path is different for each. Still I want to keep one common code base, which I control using CVS.

    For the two different version of the file .classpath I could use branches in CVS, but I would prefer to prevent it.

    Is there a way that the .classpath file can be made to support both library entries and ignore the one missing (and unneeded) on the other OS?


  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    Why cannot create the jar file with both external jar files. But may be in that case you need to select the correct jar file programatically within your code .

Similar Threads

  1. Not Copying Libraries!?!
    By Atriamax in forum NetBeans
    Replies: 0
    Last Post: 10-13-2009, 08:56 AM
  2. How to load new libraries
    By Manfizy in forum NetBeans
    Replies: 2
    Last Post: 02-11-2009, 07:55 AM
  3. Reading Libraries.
    By leiferouis in forum New To Java
    Replies: 4
    Last Post: 02-07-2009, 09:34 PM
  4. Accessing libraries in Eclipse
    By JL4 in forum New To Java
    Replies: 0
    Last Post: 12-26-2008, 04:11 PM
  5. digital sign libraries
    By Shuru in forum Advanced Java
    Replies: 4
    Last Post: 11-07-2008, 09:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts