Tuesday, January 31, 2006

SJAS on Mac OS X - Google Search doesn't really help that much if you want to run SJAS 8 on OS X. For now aside from compiling Glassfish (which requires JDK 1.5), you are stuck with downloading netbeans4 with the SJAS 8 bundle from netbeans.org.

Anyway, I don't have JDK 1.5 on the iBook yet. And since netbeans doesn't have a VI plugin or keybinding, and to save disk space I don't want both netbeans and SJAS installed.

The solution is to install netbeans4 with the SJAS bundle, copy the SunAppServer8.1 directory to a new location and modify the appserver startup scripts to point to a new SJAS directory (in my case /usr/local/SunAppServer8.1). After some tweaking, found out you only have to modify the following files to point the the new SJAS directory of your choosing:

/usr/local/SunAppServer8.1/config/asenv.conf
/usr/local/SunAppServer8.1/bin/asadmin
/usr/local/SunAppServer8.1/domains/domain1/bin/startserv
/usr/local/SunAppServer8.1/domains/domain1/bin/stopserv

After which you can now delete the Netbeans4 app installed on your Applications dir.

It still boggles the mind why Netbeans doesn't include VI keybindings.

No comments: