Newton: Installation
Prerequsites
Newton requires a Java 5 or 6 Runtime Environment (JRE). The Java 7 pre-release versions are not supported.
Note
If you do not have a Java 5 or 6 JRE on your PATH, you should set the
environment variable JAVA_HOME to point to the desired JRE (or JDK).
Newton is a Java based application, hence it should run on any operating system with a compatible virtual machine installed. We have have currently tested Newton using Sun JVMs (except on Macs) on the following platforms:
- Linux
- Red Hat Enterprise Linux 3, 4
- Open SuSE 10.2
- Fedora Core 4, 5
- Open SuSE 10.2
- Windows
- XP SP2
- Server 2003 SP1
- Mac OS X
- 10.4 Tiger
- 10.5 Leopard
Installing
To install Newton you must download the distribution and extract the package.
Unpack the distribution in a directory of your choice:
cd $HOME unzip newton_bin-1.3.x.zip
This creates the following structure under $HOME/newton-1.3.x:
- bin
- Script to start the Newton container and other utilities.
- etc
- Configuration files.
- lib
- OSGi bundle jar files.
- example
- Example bundles and source code.
- doc
- Documentation.
- sdk
- Software Development Kit.
Testing the container
You should now be able to start the Newton container:
$ cd $HOME $ bin/container + exec java -javaagent:lib/core/components/newton-instrumentation.jar -cp lib/launcher.jar:lib/equinox/ [truncated] Loaded instrumentation sun.instrument.InstrumentationImpl@e0bc08 Launcher:DEBUG: Reading /Users/derek/.container.ini Launcher:DEBUG: Reading /Volumes/Users/derek/eclipse/Newton/build/install/etc/container.ini Launcher:DEBUG: Reading /Volumes/Users/derek/eclipse/Newton/build/install/etc/config.ini Launcher:DEBUG: Reading /Volumes/Users/derek/eclipse/Newton/build/install/etc/config-equinox.ini Launcher:DEBUG: lockfile not present: /Users/derek/Newton/build/install/var/lock Launcher:INFO: org.eclipse.core.runtime.adaptor.EclipseStarter [] Application[newton] Install org.knopflerfish.bundle.log success Application[newton] Install org.knopflerfish.bundle.cm success [output truncated] Executing: installer install etc/instances/presence-service.composite Executing: installer wait etc/instances/presence-service.composite active Boot complete >
Congratulations, you have successfully installed Newton.
To shutdown the container, type:
> shutdown Application[newton] Stop org.cauldron.newton.boot success Application[newton] Stop org.cauldron.newton.init success [output truncated] Application[newton] Uninstall org.cauldron.newton.install.session success Application[newton] Uninstall org.knopflerfish.bundle.consoletty success Application[newton] Stopped $


