meydrew / otroslogviewer

Automatically exported from code.google.com/p/otroslogviewer
0 stars 0 forks source link

olv.bat doesn't run program if %JAVA_HOME% is set to a JDK #290

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Have %JAVA_HOME% be a JDK (mine was set to "C:\PROGRA~2\Java\JDK17~2.0_0")
2. Try to run ovl.bat

What is the expected output? What do you see instead?
Expected: Program opens
Actual: Splash screen appears, then disappears and program does not open

What version of the product are you using? On what operating system?
1.1.0, Windows 7

Please provide any additional information below.
Workaround: I modified the batch script to this:

rem if exist "%JAVA_HOME%\bin\javaw.exe" (
  set LOCAL_JAVA="C:\Program Files (x86)\Java\jre6\bin\javaw.exe"
rem ) else (
rem   set LOCAL_JAVA=javaw.exe
rem )

Using a jre instead of the jdk seemed to have worked, but I have not tested 
this further. 

Original issue reported on code.google.com by lhsim...@gmail.com on 15 Jan 2014 at 8:52

GoogleCodeExporter commented 9 years ago
Unable to reproduce.

I set my JAVA_HOME to a JDK home directory on Windows 7 and the out-of-the-box 
1.1.0 OLV uses that JDK just fine.

Problem may well be a problem with the user's path to their JDK since they 
report the problem with a Java 1.7 JDK but their workaround employs a 
different, 1.6, JDK.

Original comment by blaine.s...@admc.com on 16 Jan 2014 at 6:10

GoogleCodeExporter commented 9 years ago
It is quite possible something is wrong with my path, so feel free to close 
this if it's not reproducible. 

(Also, I changed it to a jre not a jdk if that matters)

Original comment by lhsim...@gmail.com on 16 Jan 2014 at 6:39

GoogleCodeExporter commented 9 years ago
I believe that this problem was reported as "Issue 294: Can't start OLV when is 
extracted into path with spaces".

Original comment by otros.sy...@gmail.com on 9 Mar 2014 at 6:36