I think Andreas covered it pretty well. In "server"-mode the JVM does more optimizations which increase startup-times and memory-footprint, and it's default in the karaf-startup-script. While on Linux the JRE comes with both "server" and "client"-mode, the windows-version of JRE does not include the "server"-mode only the JDK does.
While I think it makes sense to use the server-mode by default, there should be a fallback to client-mode on windows-machines where the Java-installation does not support "server"-mode. I already created an issue for that [1] kind regards, christoph [1] https://issues.apache.org/jira/browse/KARAF-1695 On 31/07/12 19:54, Dan Tran wrote: > any one recall why Karaf requires JDK at the first place? > > Thanks > > -Dan > > On Tue, Jul 31, 2012 at 6:11 AM, Andreas Pieber <[email protected]> wrote: >> @Christoph: can you create a JIRA for the problem that we don't lost >> this problem? >> >> Kind regards, >> Andreas >> >> On Tue, Jul 31, 2012 at 1:57 PM, Guillaume Nodet <[email protected]> wrote: >>> Yes, I think if the default windows JRE does not support server, we should >>> not include this option by default on windows. >>> Unless we can actually find if it's present or not, which would be even >>> better. >>> >>> >>> On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger >>> <[email protected]> wrote: >>>> >>>> Hi, >>>> >>>> With this, I get some syntax-error >>>> >>>> "-Dcom.sun.management.jmxremote""" ist syntaktisch an dieser Stelle >>>> nicht verarbeitbar. >>>> >>>> (Sorry for the german, but that's my only WinXP I got lying around.) >>>> >>>> I tried with skipping the quotes and jmxremote-part, then everything >>>> seemed to work. >>>> >>>> set JAVA_OPTS=-Xmx512M >>>> bin\karaf.bat >>>> >>>> Maybe the karaf.bat-script should detect whether "-server" is supported. >>>> Or is it required for some feature(s)? >>>> >>>> kind regards, >>>> christoph >>>> >>>> >>>> On 31/07/12 12:35, Guillaume Nodet wrote: >>>>> Could you try running without the -server flags maybe ? >>>>> >>>>> set JAVA_OPTS="-Xmx512M -Dcom.sun.management.jmxremote" >>>>> bin\karaf.bat >>>>> >>>>> >>>>> >>>>> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I ran into an Error when I tried to run karaf on a Windows XP with >>>>>> Oracle JRE 7u5 installed. >>>>>> >>>>>> Error: missing `server' JVM at >>>>>> `C:\Programme\Java\jre7\bin\server\jvm.dll'. >>>>>> Please install or use the JRE or JDK that contains these missing >>>>>> components. >>>>>> >>>>>> I then discovered that the karaf-documentation states that a JDK is >>>>>> required to run karaf. I installed JDK 7u5 and everything went fine. >>>>>> But I have some difficulties explaining to certain customers that they >>>>>> need to install a Development Kit to run this thing. >>>>>> >>>>>> So my question is, why exactly is it required to install JDK? Is there >>>>>> no other way? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> kind regards, >>>>>> christoph >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >>> >>> -- >>> ------------------------ >>> Guillaume Nodet >>> ------------------------ >>> Blog: http://gnodet.blogspot.com/ >>> ------------------------ >>> FuseSource, Integration everywhere >>> http://fusesource.com
smime.p7s
Description: S/MIME Cryptographic Signature
