jruby SWT MacOSX启动程序

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jruby SWT MacOSX启动程序相关的知识,希望对你有一定的参考价值。

  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 [email protected]
  18.  

以上是关于jruby SWT MacOSX启动程序的主要内容,如果未能解决你的问题,请参考以下文章

Jruby on rails 是如何加载jar包的

如何在一个单独的线程完成之前禁用 SWT selectionListener

Mac OSX(Eclipse Helios)上的 SWT 无效线程访问

jruby tomcat bundler aws——“解决需求”堆栈太深

org.eclipse.e4.core.di.InjectionException:org.eclipse.swt.SWTException: Widget is disposed

kettle在linux启动spoon.sh报错