Ticket opened: https://issues.apache.org/jira/browse/FELIX-2324
<https://issues.apache.org/jira/browse/FELIX-2324>-c On Tue, May 4, 2010 at 10:23 AM, Richard S. Hall <[email protected]>wrote: > No, Felix doesn't set this automatically. You must specify it on the > command line or in config.properties... > > However, I guess we could set this by default according to the JRE, sort of > like we do for JRE packages...if you want to open a JIRA issue for this, > I'll look into it. > > -> richard > > > On 5/4/10 10:18, Guillaume Nodet wrote: > >> I don't think Felix Framework sets this property by itself. Equinox seems >> to do so IIRC. >> I actaully hit the same problem and I did add the property in the >> etc/config.properties file, >> so that the next release will have a J2SE-1.5 by default (which allows to >> deploy many >> bundles through OBR). >> >> I think one point to consider is that we have deliberately tried to not >> require Java 1.5 and to >> also allow supporting for example CXF. CXF implements JAX-WS which is not >> shipped with >> JDK 1.6. So what we did is to hide all the JDK 1.6 new features and tend >> to >> deploy bundles >> for those instead of relying on the system bundle. >> >> So unless you re-enable all the hidden packages, Karaf does not really >> provide a clean 1.6 >> environment, so I would avoid setting this property according tot the JVM >> version ... >> >> On Tue, May 4, 2010 at 16:11, Chris Blunck<[email protected]> wrote: >> >> >> >>> Hello, >>> >>> Please forgive this question in advance if it has been well documented or >>> discussed elsewhere. I failed to find references to it when searching >>> for >>> "execution environment felix" and other searches for how this concept >>> works. >>> >>> I'm familiar with execution environments but I don't understand how >>> Felix/Karaf knows what execution environments it supports. More >>> specifically ... >>> >>> Say I start Felix using J2SE 1.6 from Sun. How does the execution >>> environment get set, and how can I verify it in the console? >>> >>> I know that I can -Dorg.osgi.framework.executionenvironment=J2SE-1.5 when >>> I >>> start Karaf but that seems like a hack. It seems like Felix/Karaf should >>> determine the execution environment based on the JVM that it's running >>> within. It probably does but I just don't know where to look for it. >>> >>> I'm basically trying to use Jackson within OBR and a<require> asks for >>> an >>> ee of J2SE-1.5. I'm running an IBM 1.6 JVM so I'd suspect that there >>> would >>> be an ee in my Felix that is compatible with J2SE-1.5. Since I don't >>> know >>> how to print it or look for it I don't know for sure. Maybe the IBM 1.6 >>> JVM >>> supports ee's like "IBM-Java-1.5" (who knows...) >>> >>> Some pointers to how execution environments work would be most welcome. >>> >>> >>> -Chris >>> >>> >>> >> >> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

