Boa tarde, encontro erro nos comandos. Eu coloco exatamente o que o professor pede e mesmo assim, persistem o erro. MEU PROGRAMA PELO TXT
public class Programa {
public static void main(string[] args) {
system.out.println("Ola Mundo!");
}
}
agora no CMD WINDOWS
C:\java-code>type Programa.java
public class Programa {
public static void main(string[] args) {
system.out.println("Ola Mundo!");
}
}
C:\java-code>javac Programa.java
Programa.java:2: error: cannot find symbol
public static void main(string[] args) {
^
symbol: class string
location: class Programa
Programa.java:4: error: package system does not exist
system.out.println("Ola Mundo!");
^
2 errors
C:\java-code>javac Programa.java
Programa.java:2: error: cannot find symbol
public static void main(string[] args) {
^
symbol: class string
location: class Programa
Programa.java:4: error: package system does not exist
system.out.println("Ola Mundo!");
^
2 errors
C:\java-code>javac Programa.java
Programa.java:2: error: cannot find symbol
public static void main(string[] args) {
^
symbol: class string
location: class Programa
Programa.java:4: error: package system does not exist
system.out.println("Ola Mundo!");
^
2 errors
C:\java-code>java Programa
Error: Could not find or load main class Programa
Caused by: java.lang.ClassNotFoundException: Programa