Before compiling an example, you must ensure that the editlivexml.jar file is on the classpath so that the EditLive! for XML classes can be found. The editlivejava.jareditlivexml.jar file is located in INSTALL_HOME/redistributables/editlivexml directory, where INSTALL_HOME is the location where the EditLive! for XML SDK has been installed to. The method for doing this will vary depending on your operating system and development environment. If you are using the command-line tools provided with the Java SDK, you can add the option -classpath /path/to/editlivexml.jar where path/to/editlivexml.jar is the path to the editlivexml.jar file.
For example to compile the BasicELX.java file if the files BasicELX.java and editlivexml.jar are both inside the /bin directory of your Java SDK:
javac -classpath .;editlivexml.jar BasicELX.javaThis will product the file BasicELX.class.
All the required .class files compiled for an example then need to packages in a .jar file. For example, to package the BasicELX.class file into a jar called BasicELX.jar, if the files BasicELJ.class and editlivejava.jar are both inside the /bin directory of your Java SDK:
jar cvf BasicELX.jar BasicELX.classCreated jar files now need to be signed. To sign a jar file you will need to use the jarsigner command of Java. For detailed information on using the jarsigner command of Java see the Sun Microsystems website.
For example, for a private key file yourkey.p12, of a keystore type pkcs12, with a store password of yourpassword, a key password of yourpassword and the alias for the private key keyuser, the following command would sign the BasicELX.jar file
jarsigner -keystore "yourket.p12" -storetype "pkcs12" -storepass
"yourpassword" -keypass "yourpassword" BasicELX.jar "keyuser"Please consult the documentation included with your development environment or the Java SDK for more information.
Copyright 2001-2005 Ephox Corporation. All Rights Reserved.