How can I get my javac to recognize there's a siurce file in the directory with my Batch File?

3 hours ago 1
ARTICLE AD BOX

I have a batch file that isn't working. See file below.

del *.class

javac -cp .; - error no source files, but there is a source file (Main.java) in the same folder with the .bat file.

C:\Ericson\bookClasses - is a folder for multimedia files, I get the error, is not recognized as an internal or external command, operable program or batch file.

C:\Ericson\bookClasses\javazoom.jar - no errors, but I'm not sure if it's working

C:\Ericson\bookClasses\jmf.jar - no errors, but I'm not sure if it's working

Main.java

When I put javac Main.java

import java.awt.*; import javax.swing.JFrame; public class Main{ public static void main(String[] args){ World mars = new World(200,300); Turtle joe = new Turtle(mars); joe.forward(); }//end main }//end class

I get errors on that file of can't find symbol for World (2xs) and Turtle (2xs).

I even tried putting cd C:\Java\Test at the very beginning of the file, even though it was already looking in that directory.

Read Entire Article