Menu

Borg with Eclipse

Help
AntDan
2007-04-21
2012-09-03
  • AntDan

    AntDan - 2007-04-21

    Hello everyone !!

    I've got the source code of version 1.5.2. Can you tell me how I can execute Borg directly from Eclipse? I'm not very expert with this IDE.

    Thanks,
    Tony

     
    • Mike Berger

      Mike Berger - 2007-04-21
      1. unzip the src
      2. open eclipse and import existing projects with the borg_src folder as root. Eclipse should show 5 projects there. Import them all.
      3. close the servlet and palm conduits projects. You probably don't need them
      4. set up a run task for a Java Application. The easiest way is to find BORGCalendarUI\src\net\sf\borg\control\Borg.java in the eclipse package explorer, right click, and select Run as Java Application.

      If you get any errors, post them here. I am doing all this on a machine that I use to build BORG. I am not sure what errors might happen on a machine that has never built BORG. There may or may not be something else that you need to configure.

      Mike

       
      • Net Rocker

        Net Rocker - 2009-08-24

        hello, im new to borg application.
        I have followed your steps to run the application.

        i got the following error,

        Exception in thread "main" java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(Unknown Source)
        at net.sf.borg.ui.util.Banner.initComponents(Banner.java:96)
        at net.sf.borg.ui.util.Banner.<init>(Banner.java:53)
        at net.sf.borg.control.Borg.init(Borg.java:342)
        at net.sf.borg.control.Borg.main(Borg.java:111)

         
    • AntDan

      AntDan - 2007-04-26

      resolved!! Thanks

       
    • Mike Berger

      Mike Berger - 2009-08-24

      Take a look here: https://sourceforge.net/forum/message.php?msg_id=5621600. For the latest version, you just need to add 2 JARs and 1 folder to the classpath when running from inside Eclipse. Your error looks like the one you get if you don't include the res folder in the classpath.

      Mike

       
    • AntDan

      AntDan - 2007-04-22

      Thanks for the reply!

      The first error is:

      DB URL is: not-set
      Uncaught error fetching image:
      java.lang.NullPointerException
      at sun.awt.image.URLImageSource.getConnection(Unknown Source)
      at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
      at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
      at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
      at sun.awt.image.ImageFetcher.run(Unknown Source)

      I use MySql.

      Thanks again,
      Tony

       
    • Mike Berger

      Mike Berger - 2007-04-22

      My guess is that there is a problem finding the splash image. Make sure your run configuration classpath contains the res folders like this: http://www.mbcsoft.com/borg/cp.jpg

      When I import the 1.5.2 source into eclipse, this is already set up correctly. I am not sure why it would not work for you.

      Mike

       
MongoDB Logo MongoDB