running JBuilder on unsupported linux platforms

2004-09-26 10:10:57 PM
I'm running linux on a powerbook/powermac (linux/ppc). This platform is
not supported by the JBuilder installer (no binaries for this platform).
You can install JBuilder fine on it by running the install.bin script
sh install.bin LAX_VM /path/to/java
However, after installation you have no jbuilder script/program you can
use to start jbuilder. I've written a simple Python script which starts
JBuilder. Feel free to modify or use it yourself.
p.s. The crimson.jar is a custom jar which contains the org.apache.*
packages from the rt.jar from the Windows JDK. The IBM JDK 1.4.2 for
linux/ppc doesn't contain these packages.
#! /usr/bin/env python
import os, glob, sys
javahome = os.environ.get('JAVA_HOME')
if not javahome or not os.path.isdir(javahome):
print "JAVA_HOME is not set; without it we can't start JBuilder"
jbhome = '/home/jeroen/Java/JBuilder2005'
if not os.path.isdir(jbhome):
print jbhome + " does not exist"
os.chdir(jbhome + '/bin')
jars = glob.glob('../lib/*.jar')
jars += glob.glob('../lib/bes/*.jar')
jars += glob.glob('../lib/servers/*.jar')
jars += glob.glob('../lib/ext/*.jar')
jars += glob.glob('../patch/*.jar')
jarcp = ''
for file in jars:
if file == '../lib/sanctuary.jar':
jarcp += file + ':'
jarcp += javahome + '/lib/tools.jar:'
jarcp += '../thirdparty/jakarta-tomcat-5.0.27/common/lib/servlet-api.jar'
bootcp = '../lib/crimson.jar:../lib/javac.jar:../lib/lawt.jar:../lib/XPTreeUIFix.jar:../lib/TabbedPaneFix.jar:../lib/SequencedEventFix.jar:../PopupFixes.jar'
args = ''
for arg in sys.argv[1:]:
args += arg + ' '
os.system(javahome + '/bin/java -Xbootclasspath/p:' + bootcp + ' -Xms32m -Xmx256m -cp ' + jarcp + ' com.borland.jbuilder.JBuilder ' + args)