I have 3 classes in the com\scja\exam\planetas
package. I also have a class with method main
in package com\scja\exam\teste
, responsible to print the name of the planets.
I need to compile this code via the command line, but I'm having trouble.
Here are my attempts and error messages:
Command:
C:\Users\marci_000\Documents\OCA\exercicios>javac -d bin -cp src\com\scja\exam\planetas\*.java;src\com\scja\exam\teste\ImprimePlaneta.java
Error message:
javac: no source files Usage: javac <options> <source files> use -help for a list of possible options
I also tried without the -cp
option, but it gives an error message on the lines where the objects were declared. It says that it did not find: