Why is JDK required for running Karaf?
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 smime.p7s Description: S/MIME Cryptographic Signature
Re: Why is JDK required for running Karaf?
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 < christoph.gritschenber...@gmail.com> 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
Re: Why is JDK required for running Karaf?
Hi, the java environment can be defined as "server" or "client" ( http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types ). Using a JRE under linux provide both "server" and "client" option. Using a JRE under windows provides only a "client". (the "server" part is only provided with JDK) When using karaf, the option is set to server so when running under windows, you need the JDK. As users, we noticed that for previous versions. I don't know if current versions need more than this option. Regards Hervé On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger < christoph.gritschenber...@gmail.com> 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 > >
Re: Why is JDK required for running Karaf?
btw, another option to workaround this problem is to provide a "custom" jre; we typically deliver a JDK with our container, BUT for windows we copy over the bin directory from the JDK over the JRE, this is all required to fix that problem. Just to offer an additional option. Kind regards, Andreas On Tue, Jul 31, 2012 at 12:44 PM, Hervé BARRAULT wrote: > Hi, > the java environment can be defined as "server" or "client" > (http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types). > > Using a JRE under linux provide both "server" and "client" option. > Using a JRE under windows provides only a "client". (the "server" part is > only provided with JDK) > > When using karaf, the option is set to server so when running under windows, > you need the JDK. > > As users, we noticed that for previous versions. > > I don't know if current versions need more than this option. > > Regards > Hervé > > > On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger > 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 >> >
Re: Why is JDK required for running Karaf?
argl.. sorry for the mistake; we provide a JRE copy over the bin dir from the JDK :-) so, no it's correct. Kind regards, Andreas On Tue, Jul 31, 2012 at 12:47 PM, Andreas Pieber wrote: > btw, another option to workaround this problem is to provide a > "custom" jre; we typically deliver a JDK with our container, BUT for > windows we copy over the bin directory from the JDK over the JRE, this > is all required to fix that problem. Just to offer an additional > option. > > Kind regards, > Andreas > > On Tue, Jul 31, 2012 at 12:44 PM, Hervé BARRAULT > wrote: >> Hi, >> the java environment can be defined as "server" or "client" >> (http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types). >> >> Using a JRE under linux provide both "server" and "client" option. >> Using a JRE under windows provides only a "client". (the "server" part is >> only provided with JDK) >> >> When using karaf, the option is set to server so when running under windows, >> you need the JDK. >> >> As users, we noticed that for previous versions. >> >> I don't know if current versions need more than this option. >> >> Regards >> Hervé >> >> >> On Tue, Jul 31, 2012 at 12:15 PM, Christoph Gritschenberger >> 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 >>> >>
Re: Why is JDK required for running Karaf?
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 < > christoph.gritschenber...@gmail.com> 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 >> >> > > smime.p7s Description: S/MIME Cryptographic Signature
Re: Why is JDK required for running Karaf?
well, looking at [1] I don't think that there is any difference. Since karaf could run as a server BUT also as a client environment we maybe should a) make it possible to switch between those with a param and b) add a fallback solution for windows WDYT? kind regards, Andreas On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger 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 < >> christoph.gritschenber...@gmail.com> 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 >>> >>> >> >> > >
Re: Why is JDK required for running Karaf?
btw ;-) [1] http://stackoverflow.com/questions/198577/real-differences-between-java-server-and-java-client Kind regards, Andreas On Tue, Jul 31, 2012 at 1:14 PM, Andreas Pieber wrote: > well, looking at [1] I don't think that there is any difference. Since > karaf could run as a server BUT also as a client environment we maybe > should a) make it possible to switch between those with a param and b) > add a fallback solution for windows > > WDYT? > > kind regards, > Andreas > > On Tue, Jul 31, 2012 at 1:02 PM, Christoph Gritschenberger > 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 < >>> christoph.gritschenber...@gmail.com> 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 >>> >>> >> >>
Re: Why is JDK required for running Karaf?
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 < christoph.gritschenber...@gmail.com> 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 < > > christoph.gritschenber...@gmail.com> 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
Re: Why is JDK required for running Karaf?
@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 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 > 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 < >> > christoph.gritschenber...@gmail.com> 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
Re: Why is JDK required for running Karaf?
any one recall why Karaf requires JDK at the first place? Thanks -Dan On Tue, Jul 31, 2012 at 6:11 AM, Andreas Pieber 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 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 >> 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 < >>> > christoph.gritschenber...@gmail.com> 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
Re: Why is JDK required for running Karaf?
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 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 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 >>> 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 < > christoph.gritschenber...@gmail.com> 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