Java Plugins and Java Web Start¶
Extending IJC functionality - module install into Java Web Start¶
Here we show how to extend Java Web Start distribution of IJC with a custom module. As a sample module we will use our MyAddField example module.
1. Build the module¶
when the module is successfully built we need the following two files:
2. Unzip IJC java web start distribution¶
The whole folder should look like this:
3. Copy the module’s files to IJC JWS distribution¶
As it is indicated in the previous screenshot, copy the files from the built module into the distribution folder:
- JAR file into
instantjchem/instantjchem/modules/
4. ZIP the instanjchem folder¶
Now everything is in the place and we can zip the IJC folder. You can use any ZIP utility od command line:
Delete or backup the old zip:
Create the new one which includes the module files :
5. Update the Java Web Start files¶
In the last step we have to update CRC32 of a new instantjchem.zip in the info.properties configuration. It is recommended to update file size and creation time but it is not mandatory (just some warnings are displayed). However, if you choose, you can find the creation time on Windows with stat -c %Y and on Unix systems with stat -r
To find out the CRC32, you can use some windows utility such as this one, or command line:
Update the CRC32 in instantjchem.zip:
6. Deploy the IJC distribution¶
Now the distribution is ready to use with the new module
