next up previous
Next: Java Servlet Container Up: Installation of Prerequisite Software Previous: Protégé Home: The RDF(s)-DB Protégé Plugin Home

Java Development Kit

The servlet container we will use, among other things, parses .jsp files into HTML files which can be displayed on the web. This allows you to interact with the Sesame server via a web browser. Download Java Standard Development Kit (SDK) version 1.4.2. You can find this at http://java.sun.com. Make sure that you set the path for Java SDK.

Test the installation by executing the standard Hello World script. Copy the following into a text editor and save it as HelloWorld.java.

class HelloWorld {
   			public static void main(String args[])
   			{
         			System.out.println("Hello, World");
   			}
            	 }

Go to a command prompt, move into the directory you saved the file in, and type javac HelloWorld.java. This compiles the program. Then type java HelloWorld. If you see Hello, World at the console, you have the the SDK working correctly. If you can't reach this far, you may not have set your PATH environment variable, or you may have installed Java incorrectly. Consult your platform's documentation to correct the problem.