Quantcast

Bundles built with JDK 7?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Bundles built with JDK 7?

James Gartner
Folks, sorry for the basic question, but if we build a service bundle using jdk 7, can that be installed into Karaf and work?  Is there a feature set to be installed that will support this?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Bundles built with JDK 7?

Achim Nierbeck
This depends on what version of Karaf you use.
Karaf 2.2.x line is compiled with JDK 1.5 compatibility in mind
and the upcoming Karaf 3.0 is compiled with JDK 6 in mind.

I'm pretty sure the upcoming Karaf 3.0 does also run with JDK7
Do you need any specialties of JDK7 for your services, if you need
special JDK packages that are not exported
by the framework you need to alter the jre.properties to contain the
special JDK packages.

regards, Achim

2012/3/28 James Gartner <[hidden email]>:
> Folks, sorry for the basic question, but if we build a service bundle using
> jdk 7, can that be installed into Karaf and work?  Is there a feature set to
> be installed that will support this?
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Bundles-built-with-JDK-7-tp3864379p3864379.html
> Sent from the Karaf - User mailing list archive at Nabble.com.



--

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Bundles built with JDK 7?

James Gartner
Right now I'm using 2.2.5, and basically we want to try to recompile a current 1.6 service bundle using JDK 1.7, and then redeploy -- we are not currently taking advantage of any of the 1.7 changes at all or special packages.
Just not sure how the 1.7 dependencies would be resolved -- do we just need to repoint JAVA_HOME on the Karaf machine to Java 7 JDK (or do we even need to do that at all?)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Bundles built with JDK 7?

Achim Nierbeck
well if you rebuild your service with JDK7 you surely need to
configure Karaf to also use the required JDK/JRE otherwise it won't
start at all.
Though I'm unsure if Karaf 2.2.5 does run with JDK7, afaik only Karaf
3.0.0 was tested with JDK7.
Another possibility is to compile your service with jdk7 and target
run-time set to java 6.

regards, Achim

2012/3/28 James Gartner <[hidden email]>:

> Right now I'm using 2.2.5, and basically we want to try to recompile a
> current 1.6 service bundle using JDK 1.7, and then redeploy -- we are not
> currently taking advantage of any of the 1.7 changes at all or special
> packages.
> Just not sure how the 1.7 dependencies would be resolved -- do we just need
> to repoint JAVA_HOME on the Karaf machine to Java 7 JDK (or do we even need
> to do that at all?)
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Bundles-built-with-JDK-7-tp3864379p3864742.html
> Sent from the Karaf - User mailing list archive at Nabble.com.



--

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
Committer & Project Lead
blog <http://notizblog.nierbeck.de/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Bundles built with JDK 7?

Andreas Pieber
In detail this depends on the details of your setup. Nevertheless, in
general (a) start karaf 2.2.x using jre 7 works; (b) compiling your
bundles using target lvl jre < 7 in the maven compiler plugin and
running it on karaf 2.2.x using jdk 7 works too. That's what I do at
my environments. I've not tested if it works in other combinations
too, but I assume so. Best to simply give it a try and report your
experiences :-)

Kind regards,
Andreas

On Wed, Mar 28, 2012 at 17:18, Achim Nierbeck <[hidden email]> wrote:

> well if you rebuild your service with JDK7 you surely need to
> configure Karaf to also use the required JDK/JRE otherwise it won't
> start at all.
> Though I'm unsure if Karaf 2.2.5 does run with JDK7, afaik only Karaf
> 3.0.0 was tested with JDK7.
> Another possibility is to compile your service with jdk7 and target
> run-time set to java 6.
>
> regards, Achim
>
> 2012/3/28 James Gartner <[hidden email]>:
>> Right now I'm using 2.2.5, and basically we want to try to recompile a
>> current 1.6 service bundle using JDK 1.7, and then redeploy -- we are not
>> currently taking advantage of any of the 1.7 changes at all or special
>> packages.
>> Just not sure how the 1.7 dependencies would be resolved -- do we just need
>> to repoint JAVA_HOME on the Karaf machine to Java 7 JDK (or do we even need
>> to do that at all?)
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.com/Bundles-built-with-JDK-7-tp3864379p3864742.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
> --
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Bundles built with JDK 7?

Raman Gupta
Just one more data point... we are using Karaf 2.2.4 on top of JDK7,
with sources compiled using JDK7 without any problem so far.

Regards,
Raman
Principal
VIVO Systems

On 03/28/2012 03:58 PM, Andreas Pieber wrote:

> In detail this depends on the details of your setup. Nevertheless, in
> general (a) start karaf 2.2.x using jre 7 works; (b) compiling your
> bundles using target lvl jre < 7 in the maven compiler plugin and
> running it on karaf 2.2.x using jdk 7 works too. That's what I do at
> my environments. I've not tested if it works in other combinations
> too, but I assume so. Best to simply give it a try and report your
> experiences :-)
>
> Kind regards,
> Andreas
>
> On Wed, Mar 28, 2012 at 17:18, Achim Nierbeck <[hidden email]> wrote:
>> well if you rebuild your service with JDK7 you surely need to
>> configure Karaf to also use the required JDK/JRE otherwise it won't
>> start at all.
>> Though I'm unsure if Karaf 2.2.5 does run with JDK7, afaik only Karaf
>> 3.0.0 was tested with JDK7.
>> Another possibility is to compile your service with jdk7 and target
>> run-time set to java 6.
>>
>> regards, Achim
>>
>> 2012/3/28 James Gartner <[hidden email]>:
>>> Right now I'm using 2.2.5, and basically we want to try to recompile a
>>> current 1.6 service bundle using JDK 1.7, and then redeploy -- we are not
>>> currently taking advantage of any of the 1.7 changes at all or special
>>> packages.
>>> Just not sure how the 1.7 dependencies would be resolved -- do we just need
>>> to repoint JAVA_HOME on the Karaf machine to Java 7 JDK (or do we even need
>>> to do that at all?)
>>>
>>> --
>>> View this message in context: http://karaf.922171.n3.nabble.com/Bundles-built-with-JDK-7-tp3864379p3864742.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
>>
>> --
>>
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> Committer & Project Lead
>> blog <http://notizblog.nierbeck.de/>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Bundles built with JDK 7?

James Gartner
Thanks folks -- I appreciate the help -- I'll give this a shot.
Loading...