The Perforce plugin for Eclipse may give the error "Error occurred during the SSL handshake: invalid SSL session" when you try to edit a file.
Some JVM distributions that are shipped internationally come with
limited cryptography capabilities for national security purposes. The
256 bit cryptography that Perforce uses may not be in the JVM that your
Eclipse installation is running on. Therefore you need to install the
Java Cryptography Extension (JCE) for the Perforce plugin to work.
- Determine which eclipse.ini file you should use (from joomla.org):
- If you downloaded Eclipse IDE manually from internet the "eclipse.ini" file is just inside the unpacked folder
- Open Eclipse as you normally do.
- Click Help -> About Eclipse SDK
- Click Installation Details
- Go to the Configuration tab
- Find "
eclipse.home.location=file:
<PATH>". <PATH> is where eclipse is installed. - If you installed Eclipse via terminal or software center the location of the file is "/etc/eclipse.ini"
- In some Linux versions the file can be found at "/usr/share/eclipse/eclipse.ini". Do not use this file if you found a config file at "/etc/eclipse.ini".
- Determine the current version of the JVM that eclipse will use to run the Perforce plugin, not to be confused with $JAVA_HOME and Window/Preferences/Java/Installed JREs.
- Open the eclipse.ini file directly inside Eclipse's installation folder.
- Check for
-vm
and below, see the path to the Java VM installation on which Eclipse is running and determine the version from the path. - If there is no
-vm
line, eclipse is running on the default version of Java for your machine. - Open a terminal window and type "export"
- Look for
JAVA_HOME = ...
in the output, and determine the version the version from the path. - If you are running Java version 6, update to the latest version of Java.
- Download Java 7 or later, and extract.
- Make sure you update eclipse.ini if the
-vm
is specified there. - Also update the
JAVA_HOME
environment variable if found in output of "export
" command. Look in ~/.profile and ~/.bash_rc files. Prefer to specify it in ~/.profile file. - Alternatively, install JCE for Java 6 (google it).
- Now that you have Java 7, download and install JCE for Java 7.
- View the README to determine where to put the files.
This helped a lot. Thanks !!!
ReplyDeleteOther similar solutions have also been posted, but I was able to pinpoint my error using this.
Thanks a lot. Helped me as well.
ReplyDeleteThanks man! Exact solution :)
ReplyDeleteThanks Mate. You are super cool. Hats off . Saved my day !!!
ReplyDeleteThanks for the help.
ReplyDelete