Please help with MRJAppBuilder

brianleahy

Colonel Panic
Hope someone can help. If this shell script successfully launches a java app:

#!/bin/sh
HOME=/Applications/Consumer
JRE=/usr/bin/java
CLASSPATH="$HOME/jre/lib/rt.jar:$HOME/jre/lib/i18n.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/xerces.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/lucene.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/consumer.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/utils.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/jigsaw.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/gnujsp10.jar"
CLASSPATH="$CLASSPATH:$HOME/classes/tools.jar"
export CLASSPATH

cd $HOME/classes

exec $JRE com.arbortext.cdconsumer.main.Main > /dev/null 2> /dev/null

############

...then I would think that the following steps would create a runnable icon:

Open MRJAppBuilder.
In the merge tab, select all the Jar files listed above under classpath.
In the Application tab, enter com.arbortext.cdconsumer.main.Main as the "Main classname"
Also in the application tab, give the file a name, like myApp.app
Click "Build Application"
Double click myApp.app

But no, this only causes the newly created myApp.app to appear momentarily in the dock, then disappear again, whereas running the shell script works perfectly.

Any suggestions anyone?
 
Back
Top