You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Christoph Gritschenberger <ch...@gmail.com> on 2012/07/31 12:15:16 UTC

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


Re: Why is JDK required for running Karaf?

Posted by Andreas Pieber <an...@gmail.com>.
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 <an...@gmail.com> 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
> <ch...@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.gritschenberger@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?

Posted by Andreas Pieber <an...@gmail.com>.
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
<ch...@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.gritschenberger@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?

Posted by Christoph Gritschenberger <ch...@gmail.com>.
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 <an...@gmail.com> 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 <gn...@gmail.com> 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
>>> <ch...@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.gritschenberger@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?

Posted by Dan Tran <da...@gmail.com>.
any one recall why Karaf requires JDK at the first place?

Thanks

-Dan

On Tue, Jul 31, 2012 at 6:11 AM, Andreas Pieber <an...@gmail.com> 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 <gn...@gmail.com> 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
>> <ch...@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.gritschenberger@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?

Posted by Andreas Pieber <an...@gmail.com>.
@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 <gn...@gmail.com> 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
> <ch...@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.gritschenberger@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?

Posted by Guillaume Nodet <gn...@gmail.com>.
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.gritschenberger@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.gritschenberger@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?

Posted by Christoph Gritschenberger <ch...@gmail.com>.
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.gritschenberger@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?

Posted by Guillaume Nodet <gn...@gmail.com>.
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.gritschenberger@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?

Posted by Andreas Pieber <an...@gmail.com>.
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 <an...@gmail.com> 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
> <he...@gmail.com> 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
>> <ch...@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?

Posted by Andreas Pieber <an...@gmail.com>.
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
<he...@gmail.com> 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
> <ch...@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?

Posted by Hervé BARRAULT <he...@gmail.com>.
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.gritschenberger@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
>
>