web applications - Finding paths for packaged non-java files at runtime -


so might stupid question but...

i want package specific wsdl file in ejb project within eclipse. best way refer file in code?

i use relative path current directory starts off in /bin directory of jboss installation. seems there should way refer file in relation project file structure.

any ideas?

getclass().getresource(string path) uses relative path locate classpath resource. returns java.net.url. alternatively, can use getresourceasstream(..) obtain inputstream resource.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -