I am studying (cramming) for the AP Computer Science test. One of the requirements is the need to familiarize oneself with a program called "GridWorld." In my studies, I have been running and compiling my code using the terminal, instead of an IDE. In one directory, there is a program called BugRunner.java that must be compiled. The classes are in a .jar file called gridworld.jar. Gridworld.jar is in a separate directory. How do I configure the javac compiler to use the classes? I use a Mac with a bash shell. I tried typing
javac -cp .:/Users/raidenworley/programming/java/apcomp/GridWorldCode/projects/firstProject/gridworld.jar BugRunner.java
into the terminal, but I then receive the following:
BugRunner.java:17: package info.gridworld.actor does not exist
import info.gridworld.actor.ActorWorld;
^
BugRunner.java:18: package info.gridworld.actor does not exist
import info.gridworld.actor.Bug;
^
BugRunner.java:19: package info.gridworld.actor does not exist
import info.gridworld.actor.Rock;
^
BugRunner.java:33: cannot find symbol
symbol : class ActorWorld
location: class BugRunner
ActorWorld world = new ActorWorld();
^
BugRunner.java:33: cannot find symbol
symbol : class ActorWorld
location: class BugRunner
ActorWorld world = new ActorWorld();
^
BugRunner.java:34: cannot find symbol
symbol : class Bug
location: class BugRunner
world.add(new Bug());
^
BugRunner.java:35: cannot find symbol
symbol : class Rock
location: class BugRunner
world.add(new Rock());
^
7 errors