Issue
Getting exception while executing written code. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
I have written below code and that is showing error
Java Version- 1.8
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
Solution
Major minor version error happen when you have JRE in Java build path instead of JDK. You have to follow below steps.
- Right click on project in the eclipse and go to
properties
. - Click on
Java-Build
path. - Go to library section.
- If
JRE/JDK
section is absent in Library section then click on Add Library otherwise select JRE and click edit. - Install JRE -> Add -> Select JDK installed path and Finish.
- Select the
JDK checkBox
inInstalled JRE
and clickok
. - Select JDK in JRE System Library.
Hope this will solve your problem.
Answered By - Pradeep hebbar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.