Tried to run the MyNewJava.java file in Module 1 as applet. I am on OSX 10.10.5 and have Java SE 8 [1.80.0_60] as my default JRE. Any Idea whats going on?
Asked
Active
Viewed 40 times
0
-
5I suspect you're not *actually* running in the JRE you think you are... – Jon Skeet Oct 30 '15 at 14:48
-
1How did you try to run this `MyNewJava.java` file from this `Module 1`? From the command line or via in IDE? – OneCricketeer Oct 30 '15 at 14:53
-
This means your code is running with an older JRE than what you've compiled the code with. It's not running on JRE 8, despite that being your default JRE. – Jesper Oct 30 '15 at 15:23
-
thanks, I think you are right, it is an older JRE. – Stafa Kholy Oct 30 '15 at 15:44
1 Answers
0
The MyNewJava.java
file was compiled in a later version of Java than the Applet's runtime environment or JRE.

johnnieb
- 3,982
- 4
- 29
- 32
-
Right click on JRE System Library and select Properties. In the menu select Alternate JRE and select Java SE 8 [1.8.0_60] and press OK. fixed the issue. – Stafa Kholy Oct 30 '15 at 15:45