Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XML File not found error

843834Jun 30 2005 — edited Jul 11 2005
Hi Guys,

I have an xml file that says something like below:
<?xml version ="1.0">
<!DOCTYPE test SYSTEM "/dtd/tester.dtd">
<test>
<testing>hello world</testing>
<test>

Thr problem is that my dtd folder inside the same place as my test.class file. but I'm calling my test.class from the root directory using java -cp . It keeps failing with error FileNotFoud:/dtd/tester.dtd. As I understood its looking for dtd folder in the root dir. But it cannot find it there so its failing. Any solution to this problem?????

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2005
Added on Jun 30 2005
8 comments
192 views