java - Can't access packages in my project -


We (my project groups and me) try to use different packages within our working directory. As you can see that we are actually playing with those bad robots ...;)

Our main category is Robotwars.java.

Example code from this class:

  import baker. Robot. *; Import javax.swing *; Import java.awt. *; Import WarRobots *; Import listeners *;  

In each of our packages we have written package and package name in SetSpeedListener.java for example:

  package listeners;  

But we strive to get some annoying errors like us trying to compile:

RobotWars.java10: Error: Package WarRobots does not exist Import WarRobots *; ^ Robotwars.Java11: Error: Package listeners import listeners are not present. *; ^

But we wrote package items at the beginning of each class ... So what are we doing wrong?

 . ├── Listeners │ ├── PauseResumeListener.java │ └── SetSpeedListener.java ├── RobotWars.java ├── WarRobots ├── RandomRobot.java └── WarRobot.java  

Our folder structure is one above.

Thx // Jonas for help


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -