I am using eclipse and i get this error:
Exception in thread \"main\" java.lang.Error: Unresolved compilation problem: at Wall.main(Wall.java:6)
Your problem is that becker.jar is just listed in your source folder (it is not source, it is a compiled jar and therefore should be in a lib folder, and then added to the Build Path). Eclipse can't find your import becker.robots.*
because it doesn't know about becker.jar
. Move becker.jar to /lib/becker.jar
, and then Right Click on your Project Folder > Properties > Java Build Path > Libraries Tab > Add Jar > (select your lib/becker.jar)
. That should resolve your compilation error.
A side note - the reason the error shows up as line 6 is because that is where the main method is (this is what actually is being run when you try to run the application), and when attempting to run the main method it identifies the build error that is really on line 1