I am working on a small project that reads xml files, extracts and writes relevant data into excel files. There are many different projects in the repository where I need to write this code, mainly using Maven and Spring. I wrote a simple class to read xml file from file system using 'File', 'DocumentBuilderFactory' and 'DocumentBuilder' classes. Added a main() method to execute the code but while executing it is giving following error -
Error:java: invalid target release: ${jdk.version}
Can I execute simple java classes (using p s v m) from withing maven or spring projects?
Just to add, I am using IntelliJ ultimate 2017.2 and under project structure, jdk 1.8 is set. I have another project based on maven (Cucumber + Selenium) that executes perfectly fine in Intellij without any error.
Thanks