Mike Angelastro

Greenhorn
+ Follow
since Dec 04, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mike Angelastro

Hello Paul and Ernest!

With the help of both of you, I was able to figure it out. I had installed an Oracle demo on my machine and it had references to Java in the path. I moved them to the end of the path, after which my simple little app worked fine.

Thanks a bunch,

Mike
19 years ago
Hi,

I'm just getting started with Java. I'm trying to run a "Hello" program. The code is:

class Hello {
public static void main(String[] args) {
System.out.println("Hello World!") ;
}
}

It compiles OK but when I run it with "java Hello", I get the following error-

Exception in thread "main" java.lang.UnsupportedClassVersionError: Hello <Unsupported major.minor version 49.0> at java.lang.ClassLoader.defineClass0<Native Method>
etc .....

Did I miss something in my java setup?

Thanks,

Mike
19 years ago