We Recommend

Smarty PHP Template Programming And Applications Smarty PHP Template Programming And Applications
Smarty is a templating engine for PHP. Designers who are used to working with HTML files can work with Smarty templates, which are HTML files with simple tags while programmers work with the underlying PHP code. The Smarty engine brings the code and templates together. The result of all this is that designers can concentrate on designing, programmers can concentrate on programming, and they don't need to get in each others way so much.


Posted By

dbug13 on 06/12/07


Tagged

textmate Bash ruby jruby


Versions (?)


jruby SWT MacOSX Launcher


Published in: Other 


  1. #!/bin/bash
  2. #
  3. # This command is used to launch jruby SWT apps on MacOSX
  4. # The key to run SWT apps on MacOSX you must pass Java two arguments
  5. # arguments:
  6. # -J -XstartOnFirstThread
  7. # -J -Djava.library.path=/path/to/swt.jar/directory/
  8. #
  9. # the -J option passes options directly to the java command
  10.  
  11. # Set SWT_PATH to the directory that contains your swt.jar file
  12. # For instance my swt.jar file is located at /Users/jamie/lib/swt/swt.jar
  13. # So the SWT_PATH var will be:
  14. # SWT_PATH=/Users/jamie/lib/swt
  15.  
  16. SWT_PATH="/path/to/swt.jar/directory"
  17. exec jruby -J -Djava.library.path=$SWT_PATH -J -XstartOnFirstThread $@
  18.  

Report this snippet 

You need to login to post a comment.