Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Doesn't work' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Doesn't work
Authored by: skier on Sep 03, '03 07:31:48PM

I followed all the steps, it was installed in /Developer/Applications folder but when i run the script it dies saying there is a if syntax error. Any suggestions?

s.



[ Reply to This | # ]
Doesn't work
Authored by: 1stunna on Sep 03, '03 10:08:21PM

i get the same error



[ Reply to This | # ]
Doesn't work
Authored by: ho4th on Sep 03, '03 11:08:10PM

I see two problems in the script shown (but I only know how one of them should be fixed):

1) The following two lines should be one (space separated):

exec
/System/Library/...

2) A little farther down... this line is prematurely truncated... and I have no idea what it ought to look like:

SequencedEventFix.jar:../lib/JarManifestFix.jar:/Syste$



[ Reply to This | # ]
Doesn't work
Authored by: ho4th on Sep 03, '03 11:57:00PM

OK... here's what I did to get it running for me:

1) Made script "executable" by issuing the following command
(in the same directory where script is stored):
chmod +x JB9alt.command


2) Added a new 1st line to the script:
#! /bin/bash


3) combined the two lines "exec" and "/System/Library/..."
into a single line "exec /System/Library/..."


4) changed the following single line:
SequencedEventFix.jar:../lib/JarManifestFix.jar:/Syste$

into two lines:

SequencedEventFix.jar:../lib/JarManifestFix.jar:\
/System/Library/Java/Extensions/MRJToolkit.jar \


5) removed "LEADING spaces" from all lines following the "exec ..." line.


(hope I remembered everything?)

The result is a double-clickable script that launches Jbuilder9.
It can also, of course, be run as a commandline script.



[ Reply to This | # ]
Doesn't work
Authored by: 1stunna on Sep 04, '03 01:05:20PM

thanks, that got mine working



[ Reply to This | # ]
Fails differently
Authored by: ausmike on Sep 04, '03 11:49:12PM

I'm getting a different error message after making the changes to the startup script you suggest. With the bash shebang line I get:

dyld: bash Undefined symbols:
_tgetent
_tgetflag
_tgetnum
_tgetstr
_tgoto
_tputs
Trace/BPT trap


Without it I get about 15 lines of info about the environment before before being returned to the command prompt with this:

PERL5LIB=/sw/lib/perl5:/sw/lib/perl5

if: Expression Syntax.


Any suggestions? Is there something about my bash or perl installations which is causing this?



[ Reply to This | # ]
Thanks but still no luck
Authored by: skier on Sep 05, '03 02:50:04AM

I did eveything you mentioned and now i get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: /System/Library/Java/Extensions/MRJToolkit/jar


any help?



[ Reply to This | # ]
Thanks but still no luck
Authored by: hap on Sep 05, '03 03:18:04PM

Make sure there aren't any spaces after a formating \ command. Make sure the next line does not start with a space either. I had this problem at first and didn't catch it when I was looking over my .command file perhaps this is what is tripping you up.



[ Reply to This | # ]
this works--->
Authored by: halo7 on Oct 29, '03 04:26:39PM
I opened my .command file in bbedit. If you make this in pico and chmod 777 it'll run jbuilder 9. Thanks for all the help guys!!!!!! =) ---

#! /bin/bash
# JB9alt.command
# Credits:
# Original author -- Dave Yost
# Modifications -- Paul Furbacher
# Use at your own risk; make modifications according to
# your installation.

# Optional arguments in the last line of this script:
#
# -info  prints out info equivalent to that found in the About
#        box > Info tab.
#
# -verbose  prints out a verbose record of the OpenTool initializatin
#        and more
#
# -license  starts the License Manager
#
 
echo "Environment"
/usr/bin/env
echo ""

if [ $# -eq 0 ]
  then args="-info"
  else args=$@
fi

echo $args

JBUILDER_HOME=/Developer/Applications/JBuilder9
jdk=1.4.1

useGrowBox=true

cd $JBUILDER_HOME/JBuilder.framework/bin

#jars=`find ../patch ../lib ../lib/ext -name \*.jar | tr '\012' : `
jars=`find ../lib -name \*.jar | tr '\012' : `

exec /System/Library/Frameworks/JavaVM.framework/Versions/$jdk/Commands/java \
-Xdock:name="JBuilder 8_Ent":icon=$JBUILDER_HOME/JBuilder.app/Contents/\
Resources/JBuilder.icns \
-Xmaxf0.2 \
-Xminf0.2 \
-Dapple.laf.useScreenMenuBar=true \
-Dapple.awt.showGrowBox=$useGrowBox \
-Xverify:none \
-Xbootclasspath/p:../lib/lawt.jar:../lib/javac.jar:../lib/TabbedPaneFix.jar:../lib/\
SequencedEventFix.jar:../lib/JarManifestFix.jar:\
/System/Library/Java/Extensions/MRJToolkit.jar \
-Xms32m \
-Xmx256m \
-cp ${jars}:/System/Library/Java \
com.borland.jbuilder.JBuilder $args


[ Reply to This | # ]
this works--->
Authored by: Maxwell309 on Dec 12, '03 05:34:46PM

Thank you so much, your script works fantastic. I am going to give jbuilder a try. I have been using eclipse, but it just feels slow as a dog.



[ Reply to This | # ]