0
I am trying to run my program on the terminal, as it matters another class I am using the command:
javac -cp ./IO.jar MeuPrograma.java
The program compiles the .class. However when running with:
java -cp ./IO.jar MeuPrograma
me is returned in the terminal the following error:
Error: Unable to locate or load the main class Myscript Caused by: java.lang.Classnotfoundexception: Myscript
How can I run my program on the terminal using this other class?
NOTE: the class q I use in the program is in the same directory as . java and . class
What is the full name of the class
MeuPrograma
?– Marcos Zolnowski
Guia_02 when I compile/execute I use the name of the class that in the program this: public class Guia_02{}
– water