Women in Technology

Hear us Roar



Article:
  Running Java Applications on Mac OS X
Subject:   MRJAppBuilder replaced by Jar Bundler
Date:   2003-07-22 04:12:35
From:   anonymous2
Hi Java Buddies!


I am trying to run this code using Jar Bundler, the application that replaced MRJAppBuilder with the July 2003 Dev tools.
I just can't get the current directory defined in the classpath as in this article.
The application starts but can not find the class junit.samples.AllTests. I ran this example using the original MRJAppBuilder and everything worked fine, but with Jar bundler I can't get it to work - can anyone help ?


Max

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • MRJAppBuilder replaced by Jar Bundler
    2004-08-13 12:05:15  DJH [View]

    I found the problem, and the solution.

    The problem is that Jar Bundler ignores any manual edits you make to the Classpath entries on the "Classpath and Files" tab.

    The solution: once Jar Bundler has generated your app bundle, open the app folder and edit Contents->Info.plist. Find the ClassPath XML and manually edit it to look like this:

    <key>ClassPath</key>
    <string>$JAVAROOT/junit.jar:.</string>

    Save the Info.plist and re-launch your app. Should run just fine this time.

    BTW, I also put junit.samples.AllTests as an argument to main rather than as a "parameter" property.

    DJH
  • MRJAppBuilder replaced by Jar Bundler
    2003-09-09 17:02:20  anonymous2 [View]

    same for me !!
    • MRJAppBuilder replaced by Jar Bundler
      2004-08-12 19:44:11  DJH [View]

      Exactly the same here. I'm still stuck.