Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Program cannot read file when running in Eclipse
Program cannot read file when running in Eclipse [message #740150] Tue, 18 October 2011 08:02
HainaSoft  is currently offline HainaSoft Friend
Messages: 18
Registered: October 2011
Junior Member
Hello there,

I have an application that reads data from a XML file inside its Jar file, using the class.getResourceAsStream() method. If I build the application as a Jar bundle, it can read the xml file, however if I run the program from within Eclipse, it cannot.

So I am trying to figure out how to configure the XML file in a way which the application can see it when running within Eclipse, but could not found solution.

Does any body have some idea or suggestion?

Thanks.
Previous Topic:Run settings
Next Topic:What is the progid for Safari & Chrome Browser in Windows XP & Window7
Goto Forum:
  


Current Time: Fri Apr 26 02:44:44 GMT 2024

Powered by FUDForum. Page generated in 0.02574 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top