Error in the first run of the project:
Solution:
Right click the item -> Properties-> Java Compiler
Step 3: select the corresponding JDK version and recompile and run the project.
Error in the first run of the project:
Solution:
Right click the item -> Properties-> Java Compiler
Step 3: select the corresponding JDK version and recompile and run the project.
Solution: Right click on the project – build path- configure build path- Add Library
Modify the eclipse.ini , modify the location of the virtual machine, and change all the text similar to the following to “- VM”
C:/Program Files/Java/jdk1.8.0_ 51/bin/ javaw.exe “For – VM
C:/Program Files/Java/jdk1.8.0_ 51/bin