将swarm-2.2-java解压缩后,放在C盘上。然后,右键单击打开我的电脑---高级---环境变量---新建,设置环境变量SWARMHOUME和PATH。在用户变量或者环境变量中,设置路径均可。
变量名:SWARMHOME
路径:C:\Swarm-2.2-java
变量名:PATH
路径:C:\Swarm-2.2-java\bin
跟其他操作系统一样
Installation of Swarm for Java
Installation of Swarm for Java consists of installing the relevant package for your system. For Windows this involves unpacking the distribution archive. For MacOS this is accomplished by installing the larger distribution package. For Linux, this is accomplished by installing the RPM specifically for Java in conjunction to the main RPM package of Swarm. See details on the website(s) linked by the Swarm web page for each.
Once installed, usage requires three environment variables to be set. First, CLASSPATH must include the files swarm.jar and kawa.jar. Typically these will be found in the share/swarm. Follow the path delimiter conventions for your system and prepend the appropriate installation before that subpath. Secondly, on Windows, it will be necessary to have the javaswarm.dll file in the PATH. (Other DLLs will be found in the Swarm binary directory such as the DLL for Tcl and Tk. The installation of these CLASSPATH and PATH directories are up to you, but they will share the same base path. You will need to set this path by setting SWARMHOME. On Windows, this path should be a Windows style absolute pathname like c:/Swarm-2.2-java. On Linux, it will typically have the value of /usr. On Mac, it will be /usr/local.