Installation of JChemPaint 3.1.0
Additional libraries
Java, already installed.
Procedure
Here is the procedure to install JChemPaint:
- JChemPaint is distributed as a JAR archive, ready to execute. Create a folder under
/home/bioubuntu
to put the archive in and move this folder to/opt/bio/sources
.
<code bash> % mkdir jchempaint-3.1.2 % mv jchempaint-3.1.2.jar jchempaint-3.1.2 % sudo mv jchempaint-3.1.2 /opt/bio/sources
</code>
- This folder should belong to
root
and its permissions set to755
.
% sudo chown -R root:root /opt/bio/sources/jchempaint-3.1.2 % sudo chmod 755 /opt/bio/sources/jchempaint-3.1.2
- Once you are in
/opt/bio/sources/jchempaint
, create a small startup script to failitate the job:
% sudo nano runJChemPaint
- Put this code in it:
#!/bin/bash export JCP_HOME=/opt/bio/sources/jchempaint-3.1.2 java -Xmx512m -jar $JCP_HOME/jchempaint-3.1.2.jar
- You need to make this script executable and available to all:
% sudo chmod ugo+x runJChemPaint % sudo ln -s /opt/bio/sources/jchempaint-3.1.2/runJChemPaint /usr/local/bin/runJChemPaint
- To add JChemPaint to the Impilo application menu, you need to edit the Xfce4 configuration file:
- More to come…
- To use JChemPaint from the command line:
% runJChemPaint