🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.linux
Article #258

running JBuilder on unsupported linux platforms

#258
From: Jeroen Zwartepoorte
Date: Sun, 26 Sep 2004 14:10
57 lines
2714 bytes
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
manually:

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.

Regards,

Jeroen

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"
    exit

jbhome = '/home/jeroen/Java/JBuilder2005'
if not os.path.isdir(jbhome):
    print jbhome + " does not exist"
    exit

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':
        continue
    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)
Technical Details
Message-ID: <pan.2004.09.26.14.10.53.53898@xs4all.nl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 107590,46d4a0e4bdd2946f,start
X-Google-Attributes: gid107590,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jeroen Zwartepoorte <jeroen@xs4all.nl>
Subject: running JBuilder on unsupported linux platforms
Date: Sun, 26 Sep 2004 16:10:57 +0200
User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)
Message-ID: <pan.2004.09.26.14.10.53.53898@xs4all.nl>
Newsgroups: borland.public.jbuilder.linux
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 213.84.188.155
X-Trace: newsgroups.borland.com 1096208112 213.84.188.155 (26 Sep 2004 07:15:12 -0700)
Lines: 58
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail