I'm trying to use Jaxb in order to unamrshal an xml file. for some reason that I don't understand, I cannot refer to any other location then a full path on my specific computer. In the code below, the commented line doesn't work, but only the one above it. the file does exist (in two locations) and the commented line does work on a diffrent class.
JAXBContext jc = JAXBContext.newInstance(Monopoly.class);
Unmarshaller unmarshaller = jc.createUnmarshaller();
//unmarshaller.unmarshal(new File("resources/monopoly_config.xml" ));
unmarshaller.unmarshal(new File( "C:\\Users\\Lior\\Documents\\NetBeansProjects\\Monopoly curr\\MonopolyServer\\src\\BoardInfoResources\\monopoly_config.xml"));