Hi, Eric.

Adding JAVA_HOME to PATH does not work. Java is still launched from system32 folder.

I believe that it is more predictive and preferred behavior to launch JRE from user defined location (JAVA_HOME), rather than windows' system folder.
Do you think it is worth reporting as a bug?

Thanks.


Aleksey.


20.09.2012 16:45, Eric Charles пишет:
The run.bat and wrapper.conf are generated, so we can't change them.

But if those scripts don't use JAVA_HOME, then enforcing the location
via PATH should do the job.

Thx, Eric

On 20/09/2012 06:09, Aleksey Medvedev wrote:
Hi, Eric.
The problem is not not that James cannot find JRE, the problem is that I
cannot tell James the directory where JRE is located.

It becomes significant when several different versions of JRE are
installed (1.5, 1.6, 1.7). Considering the fact that James 3.0 works
only with version 1.6 (in my system at least) and windows\system32
folder contains only one version of JRE (the latest, I think), it is
rather bad.

JAVA_HOME variable is ignored both in run.bat (but not in run.sh) and
wrapper.conf. The fix is easy: change
      if "%JAVACMD%"=="" set JAVACMD=java
to
      if "%JAVACMD%"=="" set JAVACMD=%JAVA_HOME%\bin\java
in run.bat and
      wrapper.java.command=java
to
      wrapper.java.command=%JAVA_HOME%/bin/java
in wrapper.conf, but I think this should be out-of-box behavior.


Thanks.


Aleksey.


19.09.2012 15:37, Eric Charles пишет:
Try PATH=%JAVA_HOME%/bin;%PATH% before launching James (not sure of the
syntax on windows)

Thx, Eric

On 19/09/2012 12:26, Aleksey Medvedev wrote:
Hi all!

I'm testing James on Windows XP machine. I've installed JRE 1.6u35 in
c:\Java\jre6 and set JAVA_HOME to "c:\Java\jre6\". But wrapper launches
Java from system32 dir of Windows instead:

STATUS | wrapper  | 2012/09/19 14:51:22 | Launching a JVM...
DEBUG  | wrapper  | 2012/09/19 14:51:22 | command:
"C:\WINDOWS\system32\java.exe" -XX:+HeapDumpOnOutOfMemoryError ...

and later

INFO   | jvm 1    | 2012/09/19 14:51:22 | Java Executable:
C:\WINDOWS\system32\java.exe
INFO   | jvm 1    | 2012/09/19 14:51:22 | Windows version: 5.1.2600
INFO   | jvm 1    | 2012/09/19 14:51:22 | Java Version   : 1.6.0_35-b10
Java HotSpot(TM) Client VM
INFO   | jvm 1    | 2012/09/19 14:51:22 | Java VM Vendor : Sun
Microsystems Inc.


James version is 3.0-beta4.

Why wrapper ignores JAVA_HOME? Is this normal in Windows?


Thanks.


Aleksey.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to