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

Installing JBuilder 9 on OS X (revisited) UNIX
With the skillful assistance of the borland.public.jbuilder.macintosh usergroup (Paul Furbacher and Tony Piselli in particular), I did succeed in downloading, installing, and running the free Personal Edition of Borland JBuilder 9 (Linux version) on my Mac (running OS X 10.2.6). This experience may give others confidence.

[robg adds: There's a previous hint on this subject, but it starts with a functional, installed Linux version. This hint uses OS X only ... I have not tested these instructions.]

  1. The download was completely straightforward. I did use gzip and tar commands in the Terminal to decompress and de-archive the jb9_linux.tar.gz file, just to be sure I would not create a MacBinary (with Stuffit Expander) that wouldn't behave properly. This was probably not necessary.

  2. Again in the Terminal, I used the simple command line(s) provided by Tony and Paul in the usergroup posts to install the program from the binary file. It varies from the Borland Linux release notes, which suggest you can choose the Directory where JBuilder will be stored. In fact, you specify the Linux default location and, somehow, the Darwin system places it in a Mac-like location suited to the purpose -- /Developer/Applications/. Note that this directory may not even exist if you haven't installed the Developer Tools that came with your Mac -- do this first if you haven't, but go to the Apple website indicated in the next step to get the December 2002 version if you didn't buy your Mac recently.

    In the Terminal, change directories to the folder in which you find the per_install.bin file. The command lines for installation follow:
    
     % chmod 744 per_install.bin
     % sh per_install.bin LAX_VM /usr/bin/java
    
  3. Before attempting to run the program (and this is the first Java app I believe I have ever run on this machine), I checked the Mac updates site to see if the July 2002 Developer Tools I originally installed on my machine are the latest. They are not, and Apple stresses the need to install two updates (48 MB and 301 MB) to get current at JDK 1.4.1, as noted:
    The Mac OS X Developer Tools are available from the Download Software link. There are two components to download that together give you the full Java 1.4.1 development environment for Mac OS X. The Mac OS X section contains the base Mac OS X Developer Tools. Download and install the most current released version available. There is also a Java–specific update to the base developer tools, the Java 1.4.1 Developer Tools Update, which is available in the Java section. Download and install this as well.
    Here's the site for the free downloads (you do have to go through becoming a "member" to access the software--a small inconvenience at most): http://connect.apple.com/. The update went fine.

  4. I really have no idea if the following is necessary, but I followed some advice posted on macosxhints.com for getting JBuilder7 working on a Mac again after updating the JDK from 1.3.1 to 1.4.1 (the latter is necessary for JBuilder9). I'm not even sure the jdk.config file is being read (it refers to the Mac operating system, and I'd love to know where that came from because I installed a Linux system). For what it's worth, I followed these directions and the program does run:
    1. In your JBuilder7 folder, navigate to JBuilder.framework -> bin/

    2. Open the jdk.config file in a text editor. You may need to do this from the shell with the sudo command depending on how the permissions to JBuilder7 are set.

    3. Add the following line (shown on two lines, enter as one without any spaces):
      javapath /System/Library/Frameworks/JavaVM.framework/
        Versions/1.4.1/Libraries/libjvm_compat.dylib
      
    4. Save the file and launch JBuilder7 by double clicking the icon.
    Obviously, the above has to be read to refer to JBuilder9, not 7.

  5. Last step: running the program. I am going to experiment with Mac's new "JAR Bundler" to create a double-clickable application, but for the moment, I am following Paul F's advice to start JBuilder using the Terminal app. The following is a generic text file named JB9alt.command that accomplishes this. I store it in my home directory, because that's where the Borland registratioon file I was sent in email is housed. This file activates the program at no cost. Strangely, I have not yet been asked to activate the product -- it just runs.
    
    # 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:/Syste$
     -Xms32m \
     -Xmx256m \
     -cp ${jars}:/System/Library/Java \
     com.borland.jbuilder.JBuilder $args
    
    I don't know that much yet about UNIX, but the extension (".command") allows you to simply double-click on the file in the Mac Finder, and the script will execute in the Terminal, and about 40 seconds later, you have JBuilder9 running. Pretty neat.

    It is important that this file be generic text with UNIX linebreaks and "gremlins zapped." Go to the Borland usergroup if you want more advice on this, but use BBEdit Lite for starters, not the Mac's own Text Editor.

    You may wonder why the "alt" is in the filename. Some late-breaking advice indicated that an added JAR library is needed to run the latest JBuilder in the latest Mac environment (a lib/javac.jar is necessary). It is now accessed by the script.

    That's it!
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[16,944 views]  

Installing JBuilder 9 on OS X (revisited) | 25 comments | Create New Account
Click here to return to the 'Installing JBuilder 9 on OS X (revisited)' 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 | # ]
Reason for Syntax Errors!?!
Authored by: neuroball on Sep 03, '03 11:00:27PM
All,

you might want to get rid of the backslashes at the end of each line of the last script. They just exist to make you aware that the whole long script has to be written on one line.

E.g.:
dosomething -somename \
-someothername \
-anothername

really equals dosomething -somename -someothername -anothername

mkay?
/neuroball/

[ Reply to This | # ]
another error
Authored by: hap on Sep 04, '03 02:40:36AM

It fails when I run it with the following error

Exception in thread "main" java.lang.NoClassDefFoundError: Resources/JBuilder/icns

this can be explained by the fact that this directory does not exist any ideas on how to fix this.



[ Reply to This | # ]
another error
Authored by: aquaman on Sep 04, '03 11:48:37AM

On the exec line when you are actually calling Java, don't put a space after "JBuilder.app/Contents/\". Or just put that whole section on a single line (the backslashes as the end of a line just tell the shell to continue to the next line).



[ Reply to This | # ]
another error
Authored by: hap on Sep 04, '03 04:28:29PM

Thanks I miised that. it's launching finer now.



[ Reply to This | # ]
another error
Authored by: Sandero on Sep 04, '03 09:06:53PM
hi =) so, my situation is:

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

and the error that i have after duble click:

% /Users/UserName/JB9alt.command; exit
Environment
PWD=/Users/UserName
VENDOR=apple
PERL5LIB=/sw/lib/perl5
TERM_PROGRAM=Apple_Terminal
MANPATH=/sw/share/man:/sw/man:/usr/local/share/man:/usr/local/man:/usr/share/man:/usr/X11R6/man
USER=username
MACHTYPE=powerpc
TERMCAP=???
LANG=it_IT
HOST=UserName.local.
INFOPATH=/sw/share/info:/sw/info:/usr/local/share/info:/usr/local/lib/info:/usr/local/info:/usr/share/info
LOGNAME=UserName
SHLVL=2
GROUP=staff
SHELL=/bin/tcsh
HOSTTYPE=macintosh
OSTYPE=darwin
HOME=/Users/UserName
TERM=vt100
TERM_PROGRAM_VERSION=81
PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
__CF_USER_TEXT_ENCODING=0x1F5:0:4

_=/usr/bin/env

-info
Exception in thread "main" java.lang.NoClassDefFoundError:
logout
[Process completed]

what's wrong? i see that in the log file of installation i have this error:

Install File: /usr/local/bin/jbuilder
Status: ERROR

i've install Jb9 more times but this errors persists.. is possible that this error are associated at the problem in start?
thanks for your help and i hope that my information are clear and complete..
Sandero

[ Reply to This | # ]
another error
Authored by: hap on Sep 05, '03 03:22:37PM

This looks similar to my error. Make sure to follow aquaman's advice and make sure you don't have any rouge spaces gumming up the works. Make sure you check both after the / and on the begining of the next line.



[ Reply to This | # ]
another error
Authored by: Sandero on Sep 06, '03 06:55:15AM

Great! it's running now =)
thanks a lot! The problem was situated in a space situated after the / in an end line! (i've read this from another your message in another post!)
Thank you very much for your help!
bye!

--
Sandero



[ Reply to This | # ]
Installed but can't compile anything
Authored by: funk on Sep 04, '03 02:56:08PM

When I try to compile a java file, JBuilder crashes. On the console I see the message "Bus error". Anyone else seen/fixed this?

thanks



[ Reply to This | # ]
Installed but can't compile anything
Authored by: kirsten on Feb 03, '04 09:51:50AM

I can't compile either but that's because JBuilder can't find my classes...

"WelcomeApp.java": Fatal Error: Unable to locate package java.lang in classpath or bootclasspath
"WelcomeFrame.java": Fatal Error: Unable to locate package java.lang in classpath or bootclasspath

I've added my 1.4.2 JVM to the JVM list in JBuilder but that doesn't help. I've even tried using the 1.3.1 JVM but the problem persist. Any ideas will be very appriciated!



[ Reply to This | # ]
Installing JBuilder 9 on OS X (revisited)
Authored by: NeuralNet03 on Dec 12, '03 11:02:23PM

Try this: I've deleted two troublesome flags from that script.

[code]
# JB9altnew.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" \
-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:/Syste$ -Xmx256m \
-cp ${jars}:/System/Library/Java \
com.borland.jbuilder.JBuilder $args


[/code]

Hope that helps someone.



[ Reply to This | # ]
Installing JBuilder 9 on OS X (revisited)
Authored by: viscaria on Jan 13, '04 05:13:20PM

This hint didn't work for me at all for JBuilder Foundatiion X. However the faq at the url below worked.

http://www.minniger.com/CA-SF/dave/jbuilder-mac.html



[ Reply to This | # ]
Installing JBuilder 9 on OS X (revisited)
Authored by: benothma on Mar 24, '04 01:46:10PM

j'aimerai avoir le fichier d'installation de JBuilder 9 sur MacOSX



[ Reply to This | # ]
Installing JBuilder 9 on OS X (revisited)
Authored by: walchang on Feb 04, '04 12:38:42AM

Hi, this hint was working initially until i accidentally updated java to 1.4.2 via software update. I tried changing the jdk to jdk =1.4.2 to reflect the change, and it runs, but jbuilder gives a fatal error:

fatal error: unable to locate packacge java.lang in classpath or bootclasspath

i also tried updating the jdk from tools->configure jdks in the application, but the error still occurs. Any help? i would really appreciate it,

Thanks



[ Reply to This | # ]
Installing JBuilder 9 on OS X (revisited)
Authored by: masskinner on Feb 10, '04 10:38:33PM

Solution here: http://blog.germuska.com/



[ Reply to This | # ]
Installing JBuilder 9 on OS X (revisited)
Authored by: viscaria on Feb 11, '04 12:38:34AM

A OS X native installer of JBuilder X is now availble for download on Borland's site.



[ Reply to This | # ]