Return to Snippet

Revision: 3177
at June 12, 2007 23:11 by dbug13


Initial Code
#!/bin/bash
#
# This command is used to launch jruby SWT apps on MacOSX
# The key to run SWT apps on MacOSX you must pass Java two arguments
# arguments:
#	-J -XstartOnFirstThread 
#	-J -Djava.library.path=/path/to/swt.jar/directory/
# 
# 	the -J option passes options directly to the java command

# Set SWT_PATH to the directory that contains your swt.jar file
# For instance my swt.jar file is located at /Users/jamie/lib/swt/swt.jar
# So the SWT_PATH var will be:
# SWT_PATH=/Users/jamie/lib/swt

SWT_PATH="/path/to/swt.jar/directory"
exec jruby -J -Djava.library.path=$SWT_PATH -J -XstartOnFirstThread $@

Initial URL


Initial Description


Initial Title
jruby SWT MacOSX Launcher

Initial Tags
textmate, Bash, ruby

Initial Language
Other