Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > app created by MRJAppBuilder quits immediately?

app created by MRJAppBuilder quits immediately?
Thread Tools
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 28, 2003, 10:07 PM
 
I found a useful java app that I'd like to package into a double clickable bundle, primarily so that I can edit the MRJApp.properties to get it to behave more like a Mac app (menus not in the window, etc.)

But, I don't know very much about Java and can't get MRJAppBuilder to work. My resulting bundle just quits immediately on launch.

Let's walk through it, somebody please point out where I'm going wrong:

1) grab this nice tile editor app:
http://www.stud.ntnu.no/~kenth/tm/Ti...r_015a_bin.zip

2) Run MRJAppBuilder.

3) Choose the tm.jar archive for the main classname. It prompts you for the class containing main(), "TileMolester" is the only option. The classpath is automatically populated and the jar is merged.

4a) In the Merge Files tab, add the three standalone xml files.

4b) Also add the three resource folders.

5) Type in an output bundle name in the first tab and click "Build Application".

Result: build fails. Ok, it is having trouble merging the folders. Try this all over again, skipping step 4b and hope that manually copying the folders inside the built bundle will work.

Result: build succeeds, but it quits immediately after launch. If you double click the jar inside the bundle, it launches properly and complains that it can't find the English resources. Adding the folders doesn't make any difference.

Ok, maybe there's some java property wrong? A missing classpath? (there is only one jar, though...) Basically it looks like the JavaApplicationStub just can't find the tm.jar to launch. No messages in Console, either.

What's wrong?
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 30, 2003, 09:21 PM
 
Ok, solution was to use the new Jar Bundler instead of MRJAppBuilder. It works now.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2