Compiler Error - 'Error: Could not find or load main class com.sun.tools.javac.Main'

前端 未结 7 2060
眼角桃花
眼角桃花 2020-12-16 16:03

I just started learning Java and I installed JDK on my computer, but now I am trying the SIMPLIST of Java and its not compiling. I installed JDK on C:/Java/jdk7/

相关标签:
7条回答
  • 2020-12-16 17:08

    I have many versions of JDK on my laptop, today I encountered this problem: After I switched to JDK1.7 to my JAVA_HOME, I typed javac in the cmd and got that error. At last, I uninstalled JDK1.7 and reinstalled it, and the issue had gone.

    0 讨论(0)
提交回复
热议问题