# Thread: Error Running Source in Eclipse IDE [FIXED]

1. Hello, I have been messing around with this for the past hour, and I can't help to feel, I'm missing something very small.

If someone could try to help me solve this, it would be greatly appreciated thank you.

I used this thread to help get through a part of the problem to begin with. [Only registered and activated users can see links. ]

Spoiler for ERROR:

Code:
C:\Users\wills\Documents\Runescape\PS\Auguish\Anguish-Server/Data/
java.io.FileNotFoundException: .\data\cfg\item_prices.txt (The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.util.Scanner.<init>(Unknown Source)
at ethos.world.ItemHandler.<init>(ItemHandler.java:57)
at ethos.Server.<clinit>(Server.java:137)

Spoiler for METHODS ETC.:

Code:
public void loadItemPrices(String filename) {
try (Scanner s = new Scanner(new File("./data/cfg/" + filename))) {
while (s.hasNextLine()) {
String[] line = s.nextLine().split(" ");
ItemList temp = getItemList(Integer.parseInt(line[0]));
if (temp != null)
temp.ShopValue = Integer.parseInt(line[1]);
}
} catch (IOException e) {
e.printStackTrace();
}
}
Code:
public ItemHandler() {
ItemList = new ItemList[Config.ITEM_LIMIT];
for (int i = 0; i < Config.ITEM_LIMIT; i++) {
ItemList[i] = null;
}
}
Code:
public static ItemHandler itemHandler = new ItemHandler();

EDIT: Fixed, thanks to Shadowpker & Kevy.

2. it looks like its telling you it cant find item_prices.txt I would check data/ cfg and see if u have item_prices.txt in there

3. ## Thankful user:

4. Originally Posted by KushKings
it looks like its telling you it cant find item_prices.txt I would check data/ cfg and see if u have item_prices.txt in there
I do, I really did try to figure this out for myself for a good hour or so, I’m wondering if it has something to do with how I’m going about finding the path. I’m not sure.

5. Originally Posted by Grown
I do, I really did try to figure this out for myself for a good hour or so, I’m wondering if it has something to do with how I’m going about finding the path. I’m not sure.

Please post a picture of directory listing you have item_config.cfg in.

6. ## Thankful user:

7. Originally Posted by Kevy
Please post a picture of directory listing you have item_config.cfg in.

8. What happens if you replace
Code:
try (Scanner s = new Scanner(new File("./data/cfg/" + filename))) {
with this
Code:
try (Scanner s = new Scanner(new File("C:/Users/wills/Documents/Runescape/PS/Auguish/Anguish-Server/data/cfg/" + filename))) {
Looking at the first line of your error data has the d capitalized and its missing the cfg folder and you got this going on \\\\\\ //
Also you have named a folder Auguish then directly after named it Anguish not much consistency here
Code:
C:\Users\wills\Documents\Runescape\PS\Auguish\Anguish-Server/Data/
item_config.cfg: file not found.

9. ## Thankful user:

10. Do you have teamviewer? I can get this going for you free of charge

11. ## Thankful user:

Do you have teamviewer? I can get this going for you free of charge
Yes, I do.

I'll PM my information.

Originally Posted by ggtip2
What happens if you replace
Code:
try (Scanner s = new Scanner(new File("./data/cfg/" + filename))) {
with this
Code:
try (Scanner s = new Scanner(new File("C:/Users/wills/Documents/Runescape/PS/Auguish/Anguish-Server/data/cfg/" + filename))) {
Looking at the first line of your error data has the d capitalized and its missing the cfg folder and you got this going on \\\\\\ //
Also you have named a folder Auguish then directly after named it Anguish not much consistency here
Code:
C:\Users\wills\Documents\Runescape\PS\Auguish\Anguish-Server/Data/
item_config.cfg: file not found.
Replacing it with the line doesn't change the error.

Thank you for your help though.

13. Hit me up on Discord I will fix it for you over teamviewer if someone else doesn't help you before

Originally Posted by Grown
Yes, I do.

I'll PM my information.

Replacing it with the line doesn't change the error.

Thank you for your help though.

14. ## Thankful users:

15. Originally Posted by Kevy
Hit me up on Discord I will fix it for you over teamviewer if someone else doesn't help you before
Thank you.

I PM'd my discord username to you.

Page 1 of 2 12 Last