Reputation: 321
Our installer build (using install4j 5.1.15) has started generating warnings (about 1500 per media file) which I think might be related to the fact that we have upgraded our project to Java 8. Is there a way to solve this? Should we be concerned about this message? Can it cause any problems? I found this post but it doesn't explain if it can cause problem, or if there's a way to resolve the issue (e.g.: upgrading to a newer version of install4j)
[INFO] [warning] major version should be between 45 and 51 for JDK <= 1.7
Upvotes: 3
Views: 999
Reputation: 48105
install4j 5 cannot read Java class file with -target 1.8. install4j checks your code for usages of the install4j API so that the shrinked runtime file includes all required classes. The warning messages mean that install4j cannot perform this task. You can switch off runtime shrinking to avoid this problem on the "General Settings->Media File Options" step.
Also, this problem goes away when using install4j 6.
Upvotes: 3