2

I am trying to install PingFederate but which alerts with Java not found.Java is installed properly please help me to install without issues.

Alert comes on PingFederate Installation:

Java not found.Please make sure the system environment variable JAVA_HOME points to Java version 1.8 or higher.

Commant prompt Java installation check:

PS C:\Users\S_TEST> java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Environment Variables:

JAVA_HOME

C:\Program Files\Java\jdk1.8.0_101

PATH

C:\Program Files\Java\jdk1.8.0_101\bin;%SystemRoot%\system32;%SystemRoot%;
            %SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
joc
  • 1,336
  • 12
  • 31
sunleo
  • 10,589
  • 35
  • 116
  • 196
  • 1
    try the following: `JAVA_HOME c:\PROGRA~1\Java\jdk1.8.0_101` – xenteros Aug 30 '16 at 10:19
  • what does `echo %JAVA_HOME%` on your CMD gives you? – djames Aug 30 '16 at 10:22
  • @djames echo %JAVA_HOME% gives %JAVA_HOME%, but variable is set and I restarted the system once. – sunleo Aug 30 '16 at 10:42
  • if the variable is set, then echoing it would show the value. – djames Aug 30 '16 at 10:52
  • 1
    How are you setting the environment variable? If it is set through command line it will be lost when session closes. Set it as a user variable (recommended) or as system variable in System Properties dialog. – Vasan Aug 30 '16 at 11:02

2 Answers2

0

How are you executing PF? Command-line or as a Service? If you are running via run.bat (command-line), then you'll need to exit your terminal shell after each change to JAVA_HOME. You can also try adding "\bin" to your JAVA_HOME setting per the instructions here --> https://documentation.pingidentity.com/pingfederate/pf82/index.shtml#gettingStartedGuide/task/installingJava.html

Ian
  • 4,227
  • 18
  • 19
-3

I think you might be running 32 bit executable of your software on 64 bit machine having 64 bit jdk installed.I had same issue with android studio and then I executed "studio64.exe" instead of "studio.exe". You might need to look installation directory of your software (which you are installing) for a 64 executable.:))