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

Using Borland's JBuilder on Mac OS X Desktop
Hi Folks,

If you are a little familiar with the new tcsh-shell on Mac OS X, you can have a preview of working with JBuilder [editor's note: JBuilder is a commercial Java development environment from Borland which is due out shortly on Mac OS X natively]

If you have jBuilder and would like to see it running on OS X, read the rest of the article for instructions on getting the Linux version running on your Mac.

Copy a whole Linux installation to any directory (the best way ist to "tar" it). In your HOME-directory create a new folder named ".jbuilder4". Use the following shell-script to start jbuilder (must be located in the "bin"-folder of jbuilder):


#!/bin/sh
# JBuilder startup script for Mac OS X, using Linux-installation of JBuilder4
# ------------------------------------------------------------------------------
# Stephan Clemenz, University of Kaiserslautern, Computer Science
# ------------------------------------------------------------------------------

JBdir=/any_directory/jbuilder4

# Load the config library
. "$JBdir/bin/cfglib.sh"

cd $JBdir/bin

javapath /System/Library/Frameworks/JavaVM.framework/Versions/1.3/Commands/java
vmparam -Xverify:none
vmparam -Xms8m
vmparam -Xmx128m

addbootpath ../lib/lawt.jar
addjars /System/Library/Frameworks/JavaVM.framework/Versions/1.3/Classes
addjars ../lib
addjars ../lib/ext

mainclass com.borland.jbuilder.JBuilder

CMD="$jvm $bootPath -cp $CLASSPATH $vmArgs $mainClass -nosplash $@"

exec $CMD

That's all. On my Mac it works really fine and has all functionality.

Good luck
Stephan

stephan@transonic.de
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[9,985 views]  

Using Borland's JBuilder on Mac OS X | 9 comments | Create New Account
Click here to return to the 'Using Borland's JBuilder on Mac OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
jbuilder on osx
Authored by: itaku on May 15, '01 04:44:10AM

does this mean you need an install made on linux
and if we don't have linux how do we install jb4
thanks



[ Reply to This | # ]
jbuilder on osx
Authored by: zgrose on May 16, '01 05:12:47PM
you don't need the linux distribution of jb4 to get it to work. you can take a windows installation and hack it into os x. however, you need to do a lot of the setup by hand. basically the process is to take all the jar files in the jbuilder setup and wrap them up with MRJAppBuilder. check out http://www.visi.com/~gyles19/fom-serve/cache/110.html for info.

[ Reply to This | # ]
jbuilder on osx
Authored by: itaku on May 18, '01 05:22:17AM

i don't have windows neither
i tryed to make an install of the foundation i downloaded at borland with the :/install.bin LAX_VM `which java'
it worked fine with the 3.5 under the beta
but it doesn't work with the 4 on the final
what must i do



[ Reply to This | # ]
jbuilder on osx
Authored by: zgrose on May 19, '01 03:57:41PM

find a friend with windows or linux. :) if you have an idrive (or similar) account. i can upload the /bin and /lib folder from my windows machine or i can stuff my jbuilder.app and upload it. send me an email since i don't check here very often.



[ Reply to This | # ]
jbuilder on osx
Authored by: itaku on May 22, '01 03:34:25AM

thanks zgrose
but i will wait for jb5
it was annonced yesterday at the WWDC



[ Reply to This | # ]
Thanks!!!!!
Authored by: Anonymous on May 22, '01 04:13:14PM

Thanks for the fantastic tip! I found that I couldn't get jbuilder working on my version of Linux (Red Hat 6.1 running on Virtual PC - apparently jbuilder4 requires version 6.2 minimum), however, all I needed was to copy the installed stuff to OS X and run your script, and it worked!



[ Reply to This | # ]
install JBuilder from windows.
Authored by: zaphod on Oct 28, '01 02:27:48AM

For those of you who can only get a installed setup from windows ( mine is from NT ), copy this little script into jbuilder/bin and lauch it from the shell:

#!/bin/sh
# JBuilder4 startup shell script
# Some parts of this cript have been copied from tomcat.sh ( I am not a that
# a expert at writing scripts ).
# ------------------------------------------------------------------------------
# Laurent Thil
# ------------------------------------------------------------------------------

# Setup the JAVA_HOME environment variable if this one is not already setup
if [ -z "$JAVA_HOME" ] ; then
JAVA=`which java`
if [ -z "$JAVA" ] ; then
echo "Cannot find JAVA. Please set your PATH."
exit 1
fi
JAVA_BINDIR=`dirname $JAVA`
JAVA_HOME=$JAVA_BINDIR/..
fi

# Build the JAVACMD command ( just call ../bin/java )
if [ "$JAVACMD" = "" ] ; then
# it may be defined in env - including flags!!
JAVACMD=$JAVA_HOME/bin/java
fi

oldCP=$CLASSPATH

# add all the jars in jbuilder/lib in the class path
unset CLASSPATH
for i in ./lib/*.jar ; do
if [ "$CLASSPATH" != "" ]; then
CLASSPATH=${CLASSPATH}:$i
else
CLASSPATH=$i
fi
done

# add all the jar in the jbuilder/lib/ext folder to the class path
for i in ./lib/ext/*.jar ; do
if [ "$CLASSPATH" != "" ]; then
CLASSPATH=${CLASSPATH}:$i
else
CLASSPATH=$i
fi
done

# add all the jars in the jbuilder/lib/beans folder to the class path
for i in ./lib/beans/*.jar ; do
if [ "$CLASSPATH" != "" ]; then
CLASSPATH=${CLASSPATH}:$i
else
CLASSPATH=$i
fi
done

if [ "$oldCP" != "" ]; then
CLASSPATH=${CLASSPATH}:${oldCP}
fi


export CLASSPATH

# Finally launch jbuilder from the java environment
$JAVACMD -cp $CLASSPATH -Xms8m -Xmx128m com.borland.jbuilder.JBuilder "$@"


--------------------------------------------------------------------------

This allow you to lauch JBuilder from its normal directory settings, without having to
create a application with MRJApp. Usefull if you are constantely adding new libraries.

/Laurent



[ Reply to This | # ]
install JBuilder from windows.
Authored by: itucakov on Aug 14, '03 02:23:09AM

Thanks for the code Laurent,
just to let you and others know that I had o change the "/1.3/" part of the code to "/1.3.1/" since my
/System/Library/Frameworks/JavaVM.framework/Versions/1.3
directory was empty and I had a new one called:
/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1
Ivan



[ Reply to This | # ]
install JBuilder from windows.
Authored by: Mike agius on Jan 11, '04 01:03:58PM

This is a good site to find.

I tried to install a Windows verion of JB5 but get the error message

"MyTest.java": Error #: 750 : initialization error: com.borland.compiler.symtab.LoadError: neither class nor source found for java.lang.Object

when I try to compile... any ideas?



[ Reply to This | # ]