Click here to Skip to main content
15,885,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Have installed java 8 on win7 and have set variables this way (java is installed on E):

JAVA_HOME: E:\Program Files\Java\jdk1.8.0_311
Path: E:\Program Files\Java\jdk1.8.0_311\bin

when using cmd to compile a .java to .class file, this error occurs; is there something wrong with the version of java?

What I have tried:

installed java appears in conrol pannel this way:

java 8 update 311
java SE development kit 8 update 311
Posted
Comments
Richard MacCutchan 16-Jan-22 7:16am    
The error is telling you that it cannot find the class file named. In this case it would appear that it is the base of all classes, which suggests the the Java libraries cannot be found. It is impossible to guess why this may be, but perhaps your installation is corrupt.
T1xT 17-Jan-22 7:52am    
Reinstalling fixed the issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900