Requirements
To use JSC you need the following:
- Java
Runtime Environment (JRE) version 6.
JRE can be downloaded here.
- Eclipse
version 3.4
Eclipse can be downloaded here.
- If you want to control SuperCollider with JSC you will need a working JSCLangModule library.
JSCLang can be downloaded here.
Note:
Eclipse 3.4 needs a lot of system resources (~210mb ram on my machine).
If you have an older computer you might want to disable some Eclipse
plugins before using JSC or you might want to disable plugins that you
are not needing. Not all Eclipse plugins are necessary for JSC but I do
not yet have a list of the exact minimum requirements. I'm pretty sure
you will need at least these plugins:
- org.eclipse.swt
- org.eclipse.ui
- org.eclipse.core
- org.eclipse.ant.core
- org.eclipse.compare
- org.eclipse.debug.core
- org.eclipse.debug.ui
- org.eclipse.equinox
- org.eclipse.help
- org.eclipse.jface
- org.eclipse.ltk
- org.eclipse.osgi
- org.eclipse.sdk
- org.eclipse.search
- org.eclipse.team.core
- org.eclipse.team.ui
- org.eclipse.text
- org.eclipse.update
- com.ibm.icu
- javax.servlet
- org.apache.commons.logging
- org.apache.lucene
- org.apache.lucene.analysis
- org.mortbay.jetty
Installation on Windows XP
- Download
JSC. The downloaded archive file (e.g.
'jsc_0.1.2_alpha.zip') is called 'jsc' in the following instructions.
- Copy the contents of the folder 'jsc/eclipse' into
your eclipse directory.
- Copy the folder 'jsc/SuperCollider3' into a
folder of your choice.
- Copy the dll files in 'jsc/lib' into your
'windows/system32' directory if they aren't already installed. You can
also copy them into the working directories of the applications that
use these files. In the case of JSC you would need to make sure they
are in the Eclipse directory and in the SuperCollider3 directory (for
scsynth.exe).
- If you have a working JSCLangModule library to use
with
JSCLang (JSCLangModule.dll) copy it into the directory of
the plugin 'jsc.jsclang.library'.
Installation on Linux
Note:
If you want to use the JSCLangModule library (libJSCLangModule.so) with
JSC there is a pre compiled binary included in the JSCLang for SuperCollider
release. This library got compiled on Ubuntu Hardy. If you are very
lucky you can use this library, otherwise you will have to compile the
JSCLangModule yourself (see the instructions in the README file
included in the release).
Ubuntu Hardy
- Download JSC. The downloaded archive file (e.g. 'jsc_0.1.0_alpha.zip') is called 'jsc' in the following instructions.
- Install the following packages from the standard ubuntu repository
- sun-java6
- jdk- libfftw3-3
- Install eclipse 3.4 in /opt/eclipse
- Copy the contents of the folder 'jsc/eclipse' into your eclipse directory.
- Copy the folder 'jsc/SuperCollider3' into a folder of your choice.
- If you have a working JSCLangModule library to use with JSCLang (libJSCLangModule.so) follow these steps:
- Copy libJSCLangModule.so into the directory 'eclipse/plugins/jsc.jsclang.library_x.x.x'
- Create the file '.sclang.sc' in your home directory and add the following lines to the file:
SwingOSC.program = "SwingOSC/build/SwingOSC.jar";
g=SwingOSC.default;
// change these lines to open windows outside of Eclipse
SwingGUI.defaultWindow = JSCEclipseWindow;
//SwingGUI.defaultWindow = JSCWindow;
// make window for server and tell JscEclipse that the library has been compiled
g.waitForBoot({ s.makeWindow(); JscEclipse.sendCompilationFinished();});
- Create the script file '/usr/bin/eclipse' and add the following lines to it (change these lines so they fit your setup):
#Text
#!/bin/bash
export MOZILLA_FIVE_HOME="/usr/lib/firefox/"
export ECLIPSE_HOME="/opt/eclipse"
export LC_NUMERIC=C
/opt/eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.03/bin/java
- Start Eclipse using the created startup script
Debian Etch
- Download JSC. The downloaded archive file (e.g. 'jsc_0.1.0_alpha.zip') is called 'jsc' in the following instructions.
- Install the following package from the standard repository
- Install the sun jdk by following these instructions :
http://javasoapbox.blogspot.com/2008/03/java-jdk-on-debian.html
- Install eclipse 3.4 in /opt/eclipse
- Copy the contents of the folder 'jsc/eclipse' into your eclipse directory.
- Copy the folder 'jsc/SuperCollider3' into a folder of your choice.
- If you have a working JSCLangModule library to use with JSCLang (libJSCLangModule.so) follow these steps:
- Copy libJSCLangModule.so into the directory 'eclipse/plugins/jsc.jsclang.library_x.x.x'
- Create the file '.sclang.sc' in your home directory and add the following lines to the file:
SwingOSC.program = "SwingOSC/build/SwingOSC.jar";
g=SwingOSC.default;
// change these lines to open windows outside of Eclipse
SwingGUI.defaultWindow = JSCEclipseWindow;
//SwingGUI.defaultWindow = JSCWindow;
// make window for server and tell JscEclipse that the library has been compiled
g.waitForBoot({ s.makeWindow(); JscEclipse.sendCompilationFinished();});
- Create the script file '/usr/bin/eclipse' and add the following lines to it (change these lines so they fit your setup):
#Text
#!/bin/bash
export MOZILLA_FIVE_HOME="/usr/lib/firefox/"
export ECLIPSE_HOME="/opt/eclipse"
export LC_NUMERIC=C
/opt/eclipse/eclipse -vm /usr/lib/jvm/java-6-sun-1.6.0.03/bin/java
- Start Eclipse using the created startup script
Upgrading from previous JSC versions
If you upgrade you should first delete the old plugin files and directories
from your eclipse/plugins directory. After installation start Eclipse
with 'eclipse -clean'.
|