Well, The problem is in getResourceAsStream. When I change the path from xsd/schema.xsd to ../schema.xsd it works when I compile it Ctrl+F11, but it doesnt work when I use Ant, is it possible because...
Type: Posts; User: beruska
Well, The problem is in getResourceAsStream. When I change the path from xsd/schema.xsd to ../schema.xsd it works when I compile it Ctrl+F11, but it doesnt work when I use Ant, is it possible because...
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setNamespaceAware(true);
factory.setAttribute(SCHEMA_LANGUAGE_ATTRIBUTE,...
Yup I know, so when I unpack my jar i have the folder xsd/schema.xsd, thus the schema is inside my of my jar. I use ant for others things, so I cant just export it :((. I woud like to, but..
the exception is that the stream I get from getResourceAsStream is null, (it has to be an xml scheme/xsd/), thats why I cant parse the xml then.... The manifest is ok, The main-class is ok, I've set...
Hello,
I have an applications, and it runs correct inside Eclipse (I use build.xml to compile, generate jar, run) and everything seems ok. But when I want to run my generated jar from cmd, i have...