Quick Cacio-Web howto
December 12, 2012 14 Comments
Today we released Caciocavallo 1.3. The release announcement can be found here.
However, what is the more important news is that after the release, I fixed Cacio-Web to work with the latest Cacio build and enabled it in the default build so it doesn’t fall to the wayside again. On popular request I would like to summarize how to get Cacio-Web running. Note that this currently only works on Linux (patches to enable this on other platforms are welcome!)
First of all, check out the source code (the cacio-web changes are not yet released):
hg clone http://hg.openjdk.java.net/caciocavallo/ng/ caciocavallo
Then build it (you need Maven!):
cd caciocavallo mvn clean install
And finally you should be able to run with with something like this:
java -Dcacio.web.port=9091 -cp cacio-web/target/cacio-web-1.4-SNAPSHOT-jar-with-dependencies.jar:/home/rkennke/src/test/SwingSet2.jar net.java.openjdk.cacio.server.CacioServer
The -Dcacio.web.port
parameter specifies on which port should Cacio-Web listen. Notice that the classpath needs to include your application (SwingSet2.jar in this case).
Then point your browser to a URL like this:
http://localhost:9091/SessionInitializer?cls=SwingSet2
Where the parameter cls
specifies the (fully qualified) name of the main class of the application to start.
Please let me know if you run into any problems.