Why is JDK required for running Karaf?

2012-07-31 Thread Christoph Gritschenberger
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?

2012-07-31 Thread Guillaume Nodet
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?

2012-07-31 Thread Hervé BARRAULT
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?

2012-07-31 Thread Andreas Pieber
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
herve.barra...@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
 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?

2012-07-31 Thread Andreas Pieber
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 anpie...@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
 herve.barra...@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
 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?

2012-07-31 Thread Andreas Pieber
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
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








Re: Why is JDK required for running Karaf?

2012-07-31 Thread Andreas Pieber
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 anpie...@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
 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








Re: Why is JDK required for running Karaf?

2012-07-31 Thread Guillaume Nodet
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?

2012-07-31 Thread Andreas Pieber
@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 gno...@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
 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?

2012-07-31 Thread Dan Tran
any one recall why Karaf requires JDK at the first place?

Thanks

-Dan

On Tue, Jul 31, 2012 at 6:11 AM, Andreas Pieber anpie...@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 gno...@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
 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