Try sudo update-alternatives --config java
from the command line to set the version of the JRE you want to use. This should fix it.
More Related Contents:
- In a Java 7 multicatch block what is the type of the caught exception?
- Close resource quietly using try-with-resources
- I am new in using ArrayLists. Array Out of Bounds, Array seems to be empty, but have been adding Strings to it already
- When to choose checked and unchecked exceptions
- How can I read a text file in Android?
- What is an OutOfMemoryError and how do I debug and fix it
- Handling exceptions from Java ExecutorService tasks
- UnsupportedOperationException when trying to remove from the list returned by Array.asList
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- How to read and understand the java stack trace? [duplicate]
- How to fix java.net.SocketException: Broken pipe?
- In Java, when should I create a checked exception, and when should it be a runtime exception? [duplicate]
- How can I write custom Exceptions?
- How do you assert that a certain exception is thrown in JUnit tests?
- How to enable TLS 1.2 in Java 7
- Handling Java crypto exceptions
- JDBC driver throws “ResultSet Closed” exception on empty ResultSet
- Maximum size of a method in Java 7 and 8
- How to parse number string containing commas into an integer in java?
- What is difference between Errors and Exceptions? [duplicate]
- org.hibernate.MappingException: Unknown entity: annotations.Users
- How can I throw a general exception in Java?
- javax.crypto.BadPaddingException
- How can I detect when an Exception’s been thrown globally in Java?
- String index out of bounds exception java
- Why does TreeSet throw a ClassCastException?
- Catching an exception that is nested into another exception
- Java InputMismatchException
- Should methods that throw RuntimeException indicate it in method signature?
- Unable to run JUnit test with PowerMockRunner