[Only registered and activated users can see links. ]
I'm dealing with this issue, I tried putting it in my src file and my Root file aswell and it still won't read it. I went through every line of code and I cannot figure out why its not reading my items.txt file in Eclipse IDE. Saying the 'path is not specified'. I'm not sure how I would configure a path to this.
@[Only registered and activated users can see links. ] Check out the link in my post above yours. It helped me solve this same issue. You may have to mess with the path in order to find the files. I ended up going through and changing nearly every directory path in the server in order for it to be able to locate the files correctly. I'm not entirely sure why, but it did end up working for me. I changed the path separator variable (String sep = System.getProperty("path.separator") to just "//" and had it print out all the paths. Just made more sense in my mind than using semicolons since I'm on windows. Feel free to PM if you have any questions or hit me up on discord CVersi#3284. I have the server running correctly, but since I'm brand new to this I don't really know how to incorporate the cache files correctly to allow the client to run and I'm a bit stuck. That said, I definitely will keep working at it. Seems like the code has the cache loading from the internet. It makes more sense in my mind to incorporate it in the client and only have it load a new cache when there's an update but I'm not entirely sure in how all this is supposed to go. I know I'll figure it out though. I uploaded all of the cache files to my google drive and linking from there since I don't want to change too much of the code before I have it running. Good luck, and I look forward to hearing from you!
EDIT 1: Just viewed your profile and saw you commented on the post I linked to. What OS are you using? Respond to this or PM me here or on discord and I'll do what I can. We can figure this out together. I will be more than happy to help if you'll allow me to.
I didn't do as I suggested and list the directory in the config file because I didn't realize how many files I would have to change, but that would be my recommendation for you. Create new variables in config.java:
Code:
public static String SEP = System.getProperty("path.separator");
public static String FILE_DIRECTORY = System.getProperty("user.dir");
Use these to point to your directory, and add the path manually where you need to. For example, in the file you specify, I use this on these lines that import the file:
@[Only registered and activated users can see links. ] Check out the link in my post above yours. It helped me solve this same issue. You may have to mess with the path in order to find the files. I ended up going through and changing nearly every directory path in the server in order for it to be able to locate the files correctly. I'm not entirely sure why, but it did end up working for me. I changed the path separator variable (String sep = System.getProperty("path.separator") to just "//" and had it print out all the paths. Just made more sense in my mind than using semicolons since I'm on windows. Feel free to PM if you have any questions or hit me up on discord CVersi#3284. I have the server running correctly, but since I'm brand new to this I don't really know how to incorporate the cache files correctly to allow the client to run and I'm a bit stuck. That said, I definitely will keep working at it. Seems like the code has the cache loading from the internet. It makes more sense in my mind to incorporate it in the client and only have it load a new cache when there's an update but I'm not entirely sure in how all this is supposed to go. I know I'll figure it out though. I uploaded all of the cache files to my google drive and linking from there since I don't want to change too much of the code before I have it running. Good luck, and I look forward to hearing from you!
EDIT 1: Just viewed your profile and saw you commented on the post I linked to. What OS are you using? Respond to this or PM me here or on discord and I'll do what I can. We can figure this out together. I will be more than happy to help if you'll allow me to.
I didn't do as I suggested and list the directory in the config file because I didn't realize how many files I would have to change, but that would be my recommendation for you. Create new variables in config.java:
Code:
public static String SEP = System.getProperty("path.separator");
public static String FILE_DIRECTORY = System.getProperty("user.dir");
Use these to point to your directory, and add the path manually where you need to. For example, in the file you specify, I use this on these lines that import the file:
right guys i am using this source and got foxtrot highscores, i am trying to hide admins and owners on the highscores but it is not removing them from it, does anyone have any idea how to do this or can help me?
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at ethos.server.data.ServerData.loadServerData(Server Data.java:78)
at ethos.server.data.ServerData.<init>(ServerData.jav a:69)
at ethos.Server.<clinit>(Server.java:132)
How can I fix this?
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at ethos.server.data.ServerData.loadServerData(Server Data.java:78)
at ethos.server.data.ServerData.<init>(ServerData.jav a:69)
at ethos.Server.<clinit>(Server.java:132)
How can I fix this?
in ServerData.java find:
Code:
private PriorityQueue<Field> updateQueue
replace it all with:
Code:
private PriorityQueue<Field> updateQueue =
new PriorityQueue<Field>(5, Collections.reverseOrder());
Hi mate thanks for reply I tried what you told me to do I got new error
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at ethos.server.data.ServerData.loadServerData(Server Data.java:80)
at ethos.server.data.ServerData.<init>(ServerData.jav a:71)
at ethos.Server.<clinit>(Server.java:132)
Hi mate thanks for reply I tried what you told me to do I got new error
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at ethos.server.data.ServerData.loadServerData(Server Data.java:80)
at ethos.server.data.ServerData.<init>(ServerData.jav a:71)
at ethos.Server.<clinit>(Server.java:132)
@[Only registered and activated users can see links. ] Pretty sure that's the same error as before. The issue is that Java cannot find the required file. I had a similar issue. I posted a link on the previous page that has a fix for this, but you'll have to go through to different java files as it throws errors and manually change the path to the required data file, rerun, and fix the next error. Most of them are inside the data folder of the server. It doesn't take long and should boot right up for you when you've completed all the fixes.