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


Click here to return to the 'install JBuilder from windows.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
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 | # ]