yatatsu / AutoBundle

AutoBundle generates boilerplate code for field binding with android.os.Bundle
Apache License 2.0
135 stars 13 forks source link

ClassNotFoundException at runtime when using JDK7 #10

Closed konomae closed 8 years ago

konomae commented 8 years ago

If building my app with JDK7, no compilation errors but the app crashes at runtime.

java.lang.ClassNotFoundException: Didn't find class "com.example.App"

When I switch to JDK8, the app runs correctly.

/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home

to

/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home

Is it possible that this project supports JDK7? Or just should I upgrade JDK8?

Similar info: https://github.com/requery/requery/issues/76

yatatsu commented 8 years ago

@konomae, yes, the processor in this library only works in JDK8.

At this time, it works in JDK7 because there are no use of new API such as Stream. But I'm not going to support JDK7 without sufficient reason.

I recommend you to upgrade JDK8. If you have to use JDK7, you can fork it!

konomae commented 8 years ago

Thanks!

Currently, there is no reason to use JDK7 for my project. So, I will upgrade to JDK8.