You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Doug <it...@gmail.com> on 2016/04/29 23:17:04 UTC

Default execution environment update

I ran into an issue today where I wasn't able to deploy bundles that required
java 1.8. I added "J2SE-1.8,JavaSE-1.8" to
"org.osgi.framework.executionenvironment" in config.properties to fix the
issue.

I was thinking it might be good to include that by default with an
installation of karaf.

Thanks again for contributing to an excellent product!



--
View this message in context: http://karaf.922171.n3.nabble.com/Default-execution-environment-update-tp4046442.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Default execution environment update

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Christian,

Karaf 3.x works with both Java 7 and 8.

Karaf 4.x is Java 8 only.

In your case, the exec environment doesn't matter. Check the eecap-1.8 
property in etc/config.properties.

Regards
JB

On 06/13/2016 11:39 AM, Chris N. wrote:
> Hello,
>
> I have the same problem: I'm using Karaf 3.0.6 and an external bundle which
> requires Java 1.8 ( Require-Capability:
> osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" ) so I have added
> "J2SE-1.8,JavaSE-1.8" to the configuration variable
> "org.osgi.framework.executionenvironment" but I wonder why the Karaf
> config.properties has not been updated with a more recent version of Java
> than 1.7?
> Is Karaf validated with Java 1.8 or more?
>
> Another question: what's the difference between the variables
> "org.osgi.framework.system.capabilities" and
> "org.osgi.framework.executionenvironment"?
>
> Thanks a lot.
>
> Christian
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Default-execution-environment-update-tp4046442p4046842.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Default execution environment update

Posted by "Chris N." <ch...@eaton.com>.
Hello,

I have the same problem: I'm using Karaf 3.0.6 and an external bundle which
requires Java 1.8 ( Require-Capability:
osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" ) so I have added
"J2SE-1.8,JavaSE-1.8" to the configuration variable
"org.osgi.framework.executionenvironment" but I wonder why the Karaf
config.properties has not been updated with a more recent version of Java
than 1.7?
Is Karaf validated with Java 1.8 or more?

Another question: what's the difference between the variables
"org.osgi.framework.system.capabilities" and
"org.osgi.framework.executionenvironment"?

Thanks a lot.

Christian



--
View this message in context: http://karaf.922171.n3.nabble.com/Default-execution-environment-update-tp4046442p4046842.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Default execution environment update

Posted by Doug <it...@gmail.com>.
Karaf 4.0.5



--
View this message in context: http://karaf.922171.n3.nabble.com/Default-execution-environment-update-tp4046442p4046490.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Default execution environment update

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

What's the Karaf version ?

Regards
JB

On 04/29/2016 11:17 PM, Doug wrote:
> I ran into an issue today where I wasn't able to deploy bundles that required
> java 1.8. I added "J2SE-1.8,JavaSE-1.8" to
> "org.osgi.framework.executionenvironment" in config.properties to fix the
> issue.
>
> I was thinking it might be good to include that by default with an
> installation of karaf.
>
> Thanks again for contributing to an excellent product!
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Default-execution-environment-update-tp4046442.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Default execution environment update

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

What's the Karaf version ?

Regards
JB

On 04/29/2016 11:17 PM, Doug wrote:
> I ran into an issue today where I wasn't able to deploy bundles that required
> java 1.8. I added "J2SE-1.8,JavaSE-1.8" to
> "org.osgi.framework.executionenvironment" in config.properties to fix the
> issue.
>
> I was thinking it might be good to include that by default with an
> installation of karaf.
>
> Thanks again for contributing to an excellent product!
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Default-execution-environment-update-tp4046442.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com