Generic
Generic PKCS #11 with SunPKCS1...

Configure the JAVA_HOME environment variable

1min
you must correctly configure the java home environment variable to locate the installed jdk (java development kit) on your system and to enable java applications and tools this section shows how to set the java home environment variable and update the system path variable on both linux and windows to ensure proper compatibility between java sunpkcs11 and the {{futurex}} pkcs11 module, you must use oracle java and not openjdk oracle java 11, 17, and 21 are currently supported choose one of the following operating systems and perform the instructions determine the installation path of oracle java find the path for the oracle java installation, such as /usr/lib/jvm/ use the following command to list the installed jdks ls /usr/lib/jvm/ for example, if you installed oracle java 11, the path is likely /usr/lib/jvm/jdk 11 oracle x64 edit the profile file open a terminal and use a text editor to edit the /etc/profile file, which the system uses when users log in you might need superuser privileges to edit this file sudo nano /etc/profile add the java home and update path add the following lines to the end of the /etc/profile file, replacing the path with the actual path to your oracle java installation export java home=/usr/lib/jvm/jdk 11 oracle x64 export path=$java home/bin $path apply the changes after saving the file, apply the changes by sourcing the profile file source /etc/profile verify the configuration to ensure that the java home variable is set correctly and the path is updated, you can check their values with the following commands echo $java home echo $path you should see the path you set for java home and ensure $java home/bin is part of the path determine the installation path of oracle java ensure oracle java is installed on your system note the installation path, typically something like c \program files\java\jdk 11 open system properties select the win + pause/break keys to open the system properties window, or right click this pc (or my computer ) and select properties select advanced system settings on the left sidebar open environment variables in the system properties window, select \[ environment variables ] near the bottom of the window create a new system variable in the environment variables window, in the system variables section, select \[ new ] in the new system variable dialog box, enter the following variable name java home variable value the path to your jdk installation (such as c \program files\java\jdk 11 ) update the path variable in the system variables section, find and select the path variable, then seelct \[ edit ] in the edit environment variable dialog, select \[ new ] and add %java home%\bin to the list this enables the system to find the java executables create additional system variables variable name ld library path variable value the path to your fxpkcs11 library (such as c \program files\futurex\fxpkcs11\libfxpkcs11 so ) variable name fxpkcs11 cfg variable value the path to your fxpkcs11 configuration file (such as c \program files\futurex\fxpkcs11\fxpkcs11 cfg ) apply changes select \[ ok ] on each dialog box to apply the changes and exit the dialog boxes verify the configuration open a new command prompt window (select the win + r keys, enter cmd , and press the enter key) enter echo %java home% you should see the path to your jdk installation enter java version to confirm that the system recognizes the java installation