Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Mirah/SWTSetup
< Mirah
Revision as of 23:30, 26 March 2011 by Unnamed Poltroon (Talk) (New page: To install Mirah and configure it to run with the SWT libraries: *download the latest standalone zip install of Mirah from [http://www.mirah.org http://www.mirah.org]<br> *extract it, s...)
To install Mirah and configure it to run with the SWT libraries:
- download the latest standalone zip install of Mirah from http://www.mirah.org
- extract it, say to ~/mirah
- download the 'SWT Binary and Source' zip for the latest release, and for your platform, from http://download.eclipse.org/eclipse/downloads
- copy the swt.jar to Mirah's lib directory, e.g. ~/mirah/lib
- edit the mirah shell script as follows:
- after the line with:
MIRAH_CP="$MIRAH_HOME"/lib/mirah-complete.jar
add:
SWT_CP="$MIRAH_HOME"/lib/swt.jar
- if on MacOS, define and SWT_OPTS var and add it to the end of JAVA_OPTS, as follows:
SWT_OPTS="-XstartOnFirstThread"
JAVA_OPTS="$JAVA_OPTS $JAVA_MEM $JAVA_MEM_MIN $JAVA_STACK $SWT_OPTS"
- make the same edits to the mirahc shell script
- if on Windows, adapt the above edits to the appropriate command shell syntax in the .bat files
- add Mirah's bin directory to your path, e.g.:
export PATH=$PATH:~/mirah/bin - you should now be able to compile and run the snippets
e.g. mirah Snippet1.mirah