you need to declare your package and make sure your including stuff from that.. stuff in java runs within a virtual machine and requires their own unique paths refered to classpaths which you specify when starting the jvm .. java cli
Question, if I have a package called runtdeale.code in the folder RuntDeale/resources/code, could I do import runtdeale.code.libs.org.json.*; to import the JSON library, which is a package below my original package?
no, i would suggest reading this book deitel.com/java-how-to-program-11-...
you need to declare your package and make sure your including stuff from that.. stuff in java runs within a virtual machine and requires their own unique paths refered to classpaths which you specify when starting the jvm .. java cli
Question, if I have a package called
runtdeale.code
in the folderRuntDeale/resources/code
, could I doimport runtdeale.code.libs.org.json.*;
to import the JSON library, which is a package below my original package?Filesystem: