/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/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 $@
Comments
