I create a json File and i wanna launch the Software on my Server but probably I get this error
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONObject
at me.discord.JSON.<init>(JSON.java:27)
at me.discord.Main.main(Main.java:35)
Caused by: java.lang.ClassNotFoundException: org.json.JSONObject
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 2 more
I dont know how i get a File at Linux on Windows its worked
String decodedPath = "/root/";
String content;
File db = new File(decodedPath + "/Database.json");
JSONObject json;
public JSON(){
try{
content = new String(Files.readAllBytes(Paths.get(db.toURI())), "UTF-8");
}catch (Exception e) {
}
onLoad();
Main.jsonMan = this;
json = new JSONObject(content);
}