Hi,

Because of some specificities of Java 8 (Bytecode frames), the iPOJO 
manipulator requires an additional parameter: a class path.
You can find an example here: 
https://github.com/apache/felix/blob/trunk/ipojo/runtime/distributions/ten-minutes-tutorial/src/main/solution/spell.english/build.xml
 (line 71).

Generally, you can reuse the same class path as the one used for the 
compilation (and use a reference to it).

Regards,

Clement
On 11 août 2014 at 20:35:12, Michael Hoppe ([email protected]) wrote:

Hi,  

I updated my build process from iPOJO 1.11.2 / Java 7  
to iPOJO 1.12.0 /Java 8.  
I use org.apache.felix.ipojo.ant-1.12.0.jar  
and biz.aQute.bnd-2.2.0.jar/bnd-2.4.0-SNAPSHOT.jar.  

Now 15% of my Java Projects show build errors, see below.  
Some imported interfaces and exception classes that normally would be  
imported by the bundle give ClassNotFoundExceptions.  

I mentioned that there was a similar problem with Java 7 some month ago,  
belonging to some frame finding errors.  

Is this a known problem of version 1.12.0?  

Thank you!  

Michael  



The ANT output:  
Buildfile: P:\git\SlotMachine\softdevel\slotmachine\sm002\SMKernel\build.xml  

init:  
[echo] Bundle: SMKernel  
[delete] Deleting:  
P:\git\SlotMachine\softdevel\slotmachine\sm002\Felix\bundles_all\SMKernel.jar  

bnd:  
[bnd] # addAll 'SMKernel.bnd' with ,  
[bnd] # SMKernel (SMKernel.jar) 63  

tasks.ipojo:  
[ipojo] Input bundle file :  
P:\git\SlotMachine\softdevel\slotmachine\sm002\Felix\bundles_all\SMKernel.jar  
[ipojo] No metadata file found - trying to use only annotations  
[ipojo] Start manipulation  
Apache Felix iPOJO Manipulator - 1.12.0  

BUILD FAILED  
P:\git\SlotMachine\softdevel\slotmachine\sm002\tasks.xml:45:  
java.lang.RuntimeException: java.lang.ClassNotFoundException:  
de.softdevel.sm.id.api.IId  

Total time: 833 milliseconds  

Reply via email to