Configuration

Preferences

Preferences are in the %CLIPJ%/conf/preferences.properties file. Here are its options.

# The maximum number of clipboard items to maintain in history. Once
# the maximum size is reached, new clipboard items will be added to 
# the top and last one at the bottom will be dropped.
MaxHistorySize=10

Double-click

ClipJ has special functionality. When you double-click on the ClipJ icon in the Windows taskbar, ClipJ will copy the value you put in the %CLIPJ%/data/clipj-double-click.xml file onto the clipboard. The XML file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!--
 When you double-click the application's system tray icon, the contents
 of this file are read and automatically put onto the clipboard.
-->
<DoubleClick>
    <Item>Double-click the system tray icon to put me on the clipboard</Item>
</DoubleClick>

ClipJ comes with a file named %CLIPJ%/data/clipj-double-click-template.xml. You need to COPY this file and save it as %CLIPJ%/data/clipj-double-click.xml. Put the value you want copied to the clipboard in this file only.

When you double-click on the ClipJ icon in the Windows taskbar, ClipJ will do the following:

  1. Detect %CLIPJ%/data/clipj-double-click.xml exists
  2. Read the file contents
  3. Encrypt the file contents
  4. Write the encrypted file contents to %CLIPJ%/data/clipj-double-click.bin
  5. Delete %CLIPJ%/data/clipj-double-click.xml

The %CLIPJ%/data/clipj-double-click.xml is automatically deleted for security reasons. You will need to create a new one every time you want to change what ClipJ copies to the clipboard on double-click.

Java JVM

ClipJ requires Java 1.8+ and it comes with its own JVM in the %CLIPJ%/jre/ directory. If you want to use a different JVM, edit the %CLIPJ%/bin/start-clipj.cmd file and put in the location of your javaw.exe.

Set JAVA_BIN=%PD%\jre\bin\javaw.exe
Echo JAVA BIN
Echo ---------
Echo "%JAVA_BIN%"
Echo.

Configuration complete! Next is running the application.