Hi,
I've been able to compile and run Java code just fine, until I implemented JSON. I downloaded
json-20180813.jar
, and can't get it to be recognised.
My file structure is as follows;
/var/www/html/game/server/ :
build (dir)
run
ClientConnection.java
Main.java
Server.java
Utils.java
/var/www/html/game/server/build/ :
json-20180813.jar
ClientConnection.class
Main.class
Server.class
Utils.class
---
Inside run:
javac -d build Main.java Server.java ClientConnection.java Utils.java -cp /var/www/html/game/server/build/json-20180813.jar
cd build
java Main
Do you have any idea why this is happening?
What I have tried:
Moving the -cp arg back and forth between java and javac, messing with the path