{{theTime}}

Search This Blog

Total Pageviews

java.lang.VerifyError: Catch type is not a subclass of Throwable in handler

I got this error when I try to run my program in Eclipse.  What is this error?  

java.lang.VerifyError: Catch type is not a subclass of Throwable in handler
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:188)

Explanation:

    This error will be thrown when compiled version of the Java and Runtime Version of the Java is different.

How to Fix:

- Check the Compiler settings in Eclipse
- Check the Runtime Settings in Eclipse
- Fixing the Java version would solve this problem.

No comments:

Java Script GET request Sample Code

fetch(' https://api.public.com/api ')   .then(response => response.json())   .then(data => console.log(data))   .catch(error =...