Java - Error: Could not find or load main class c

+1 Elliot Londt · January 8, 2015
Hi, I am going to learn java, I have watched and followed 'thenewboston's' steps carefully, yet how ever, when I go to cmd, and type: "java c", it just says Error: Could not find or load main class c. And doesn't load the information, that 'tnb' showed in his tutorial vid... 6 years ago... :/

Post a Reply

Replies

Oldest  Newest  Rating
0 Elliot Londt · January 8, 2015
I ran cmd as an Administrator, then typed the same code: java c, it gave me this message:

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

I went to the regedit file "CurrentVersion" and changed it to 1.7, then ran cmd as administrator again, typed java c, but it gave me this:

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.7', but '1.8' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
0 Elliot Londt · January 8, 2015
thanks i think i solved it now
  • 1

Java / Android Development

107,183 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator