karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Tran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1695) startup fails on Windows with only JRE installed
Date Sun, 09 Sep 2012 19:00:09 GMT

    [ https://issues.apache.org/jira/browse/KARAF-1695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451652#comment-13451652
] 

Dan Tran commented on KARAF-1695:
---------------------------------

since all jre distribution from all platforms have server mode, except windows x62 32 bit.
So it is safe to remove '-server' option from

DEFAULT_JAVA_OPTS="-server $DEFAULT_JAVA_OPTS -Dcom.sun.management.jmxremote"  for both unix
and windows karaf(.bat) scripts

tested with my environment
                
> startup fails on Windows with only JRE installed
> ------------------------------------------------
>
>                 Key: KARAF-1695
>                 URL: https://issues.apache.org/jira/browse/KARAF-1695
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.8, 3.0.0
>         Environment: Windows XP 32bit
> Oracle Java Runtime Environment 7u5
>            Reporter: Christoph Gritschenberger
>
> It fails with the error:
> {code}
> Error: missing `server' JVM at `C:\Program Files\Java\jre7\bin\server\jvm.dll'.
> Please install or use the JRE or JDK that contains these missing components.
> {code}
> Possible workarounds:
> a) Install Oracle JDK
> b) modify the JAVA_OPTS:
> {code}
> set JAVA_OPTS=-Xmx512M
> karaf.bat
> {code}
> The startup-script should contain special handling for JRE on windows and fallback to
"-client" of "-server" is not available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message