Build project failing
Answered
After moving our compile target to Java 1.8 I'm getting an error whenever I try and build a project.
Information:Using javac 1.8.0_45 to compile java sources
Information:java: Errors occurred while compiling module 'iqdb'
Information:5/17/16, 1:10 PM - Compilation completed with 1 error and 0 warnings in 2s 718ms
Error:java: invalid source release: 1.8
I've set all the project and modules to use 8, and my preferences java compiler is set to target 1.8 as well. The module builds fine with Maven in 1.8.
If I set the compiler target to 1.7, and project and modules to 1.7 then it will build. This makes me think I've still got a setting somewhere that's pointing to 1.7.
Any idea?
Thanks
Please sign in to leave a comment.
Check all the module (.iml) files for the references to 1.7.
If you can't find a problem, please submit a ticket to support with .idea directory contents and .iml files attached.
Updating .iml files to have only JDK 1.8 references worked for me.
I had performed all updates in File -> Settings and File -> Project Structure ... prior to this but updating .all iml files fixed it.
Thanks!
When I try to build a project, I got the error that "package java.vaadinlib.objdb does not exist" The compilation failed. pls advise what I can do to fix the problem
Hello,
Do you use any build tool (Maven, Gradle)? Is needed library mentioned in module dependencies ("Project Structure | Modules")?
I built my project with Intellij. I firstly imported the project files into IntelliJ. Then, configure the project linking and details in "Project Structure". When I tried to built a project, the error "package java.vaadinlib.objdb does not exist" prompted and the compilation halted. I think I have missed something and I have no idea where to fix it.
Could you please attach screenshot with the error and screenshot from "Project Structure | Modules - Dependencies" tab?