Heiz Posted September 13, 2021 Share Posted September 13, 2021 In my git status I get a big error message complaining about several external libraries, but all imports are being done correctly, and locally the script runs normal. Does anyone have any idea what I can do to fix this? [javac] Compiling 6 source files to bin/compile2/heiz/HeyzShopper [javac] warning: [options] bootstrap class path not set in conjunction with -source 8 [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:37: error: cannot find symbol [javac] Map itemsSellPrice = new HashMap(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:38: error: cannot find symbol [javac] Map itemsBoughtPrice = new HashMap(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:103: error: cannot find symbol [javac] Item[] items = getInventory().getItems(); [javac] ^ [javac] symbol: class Item [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:105: error: cannot find symbol [javac] for(Item item : items){ [javac] ^ [javac] symbol: class Item [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:551: error: cannot find symbol [javac] List packs = inventory.filter(item -> item.getName().contains("pack") ); [javac] ^ [javac] symbol: class Item [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:823: error: cannot find symbol [javac] if(!Arrays.asList(oneCost).contains(selectedItem)) [javac] ^ [javac] symbol: variable Arrays [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:884: error: cannot find symbol [javac] URL url = new URL("https://secure.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id); [javac] ^ [javac] symbol: class URL [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:884: error: cannot find symbol [javac] URL url = new URL("https://secure.runescape.com/m=itemdb_oldschool/api/catalogue/detail.json?item=" + id); [javac] ^ [javac] symbol: class URL [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:885: error: cannot find symbol [javac] HttpURLConnection httpURLConnection=(HttpURLConnection)url.openConnection(); [javac] ^ [javac] symbol: class HttpURLConnection [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:885: error: cannot find symbol [javac] HttpURLConnection httpURLConnection=(HttpURLConnection)url.openConnection(); [javac] ^ [javac] symbol: class HttpURLConnection [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:893: error: cannot find symbol [javac] InputStreamReader inputStreamReader=new InputStreamReader(httpURLConnection.getInputStream()); [javac] ^ [javac] symbol: class InputStreamReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:893: error: cannot find symbol [javac] InputStreamReader inputStreamReader=new InputStreamReader(httpURLConnection.getInputStream()); [javac] ^ [javac] symbol: class InputStreamReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:894: error: cannot find symbol [javac] BufferedReader bufferedReader=new BufferedReader(inputStreamReader); [javac] ^ [javac] symbol: class BufferedReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:894: error: cannot find symbol [javac] BufferedReader bufferedReader=new BufferedReader(inputStreamReader); [javac] ^ [javac] symbol: class BufferedReader [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:935: error: cannot find symbol [javac] Map dictionary = new HashMap<>(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:947: error: cannot find symbol [javac] Map dictionary = new HashMap<>(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] master/heiz/HeyzShopper/src/HeyzShopper.java:983: error: cannot find symbol [javac] Map dictionary = new HashMap<>(); [javac] ^ [javac] symbol: class HashMap [javac] location: class HeyzShopper [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 17 errors [javac] 1 warning ERROR: BUILD FAILED Quote Link to comment Share on other sites More sharing options...
skillerkidos1 Posted September 13, 2021 Share Posted September 13, 2021 (edited) Check that all the files that it says are missing are actually pushed or updated onto git Edited September 13, 2021 by skillerkidos1 2 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted September 14, 2021 Share Posted September 14, 2021 Check if the packages are pushed in the same way as the local folder structure. Are you using the dependecies folder? 1 Quote Link to comment Share on other sites More sharing options...
Heiz Posted September 14, 2021 Author Share Posted September 14, 2021 (edited) That works! Thanks Edited September 21, 2021 by Heiz Quote Link to comment Share on other sites More sharing options...