SaxParser can't find dtd file

I've done XML for a while but I've never used DTD files before. Now I'm tryign to parse a XML file
that has the following tag in it:
<!DOCTYPE Obj SYSTEM "s4.dtd">
The parser keeps giving me this exception:
org.xml.sax.SAXParseException: File "s4.dtd" not found.
I have placed the file s4.dtd in the same directory as the xml file. I'm using JBuilder (please don't say that was my first mistake!! (-:) and I've put a copy of the file in my "Working directory" but I still get the same error. I've tried specifying an absolute path in the xml file in different ways like this:
<!DOCTYPE Obj SYSTEM "c:\xml\s4.dtd">
<!DOCTYPE Obj SYSTEM "c:\\xml\\s4.dtd">
<!DOCTYPE Obj SYSTEM "c:/xml/s4.dtd">
but they don't seem to make any sense to it.
Please help!!!!

The DTD needs to be in the same file as the XML file if you are going to specify it that way. You say you did that, so that probably means the parser can't determine what directory the XML file is in. Perhaps you passed the parser a FileReader or something like that? At any rate, the problem with your other attempts at fixing the DTD reference is that it is supposed to be a URL. Try something like this:
<!DOCTYPE Obj SYSTEM "file://c:/xml/s4.dtd">
(You may need file:/// instead of file://, experiment with that too.)

Similar Messages

  • Help:Can not find the file in jar!

    Hello everyone:
    I build a project using Netbeans 5.0 and make a jar file with it...
    The code in the project as follows will throw an exception described that it can not find the file named datasource-config.xml
    String dataFilePath = getClass().getResource(dataFile).getPath();
    //System.out.println("filepath:"+dataFilePath);
    InputStream input = new FileInputStream(dataFilePath);
    when I run the project with the main() function as an entry it works perfectly and output:
    filepath:/C:/projects/java_project/search/build/classes/com/cn/wxjt/lucene/config/datasource-config.xml
    But when I compressed the project with jar and run it , it will show:
    filepath:file:/C:/projects/java_project/search/dist/search.jar!/com/cn/wxjt/lucene/config/datasource-config.xml
    there is a (!) between search.jar and /com/cn/wxjt...
    I dont know why I generate a ! symbol in the file path... Is it cause the exception->
    java.io.FileNotFoundException: file:\C:\projects\java_project\search\dist\search.jar!\com\cn\wxjt\lucene\config\datasource-config.xml
    If you have any idea, plz tell me.
    Thank you and best wishes to you !
    :)

    If the file you want to read is in your jar file, use
    getClass ().getResourceAsStream
    (relative_path_file_name)Hope that help,
    Jackhey jack i want to open the file as new File
    i m using this.getClass().getResource("resource/backend.xml");
    the resource is the directory inside the jar file.
    when i prints the url it shows:
    the jar file is in the WORK directory
    URL : jar:file:/home/neeraj/WORK/show.jar!/resource/backend.xml
    now when i creates new File using the url.getFile() method the file does not exist.
    although the same programs runs well when i uses the InputStream
    so plz tell me cant I create a new File from the above method????
    thanks in advance
    with regards
    neeraj

  • Move all my music to another folder but Itunes can't find the files!

    I have all my music on my desktop in small folders for each artist.
    But now i don't have room anymore, because i have to much music.
    So i want to move it all in to a folder called "Music". But when i do that
    Itunes can't find the files, and i have to search for each file, to find the new location instead of the desktop. How do i move my music more easily? So i don't have to synchronize it all in again, with the right album covers and that..
    Please, need some help here!

    You need to open your preferences file in iTunes and click on advance then select the location of where you put the folder.  http://support.apple.com/kb/HT4527

  • I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    I have problem with Itunes losing where podcasts and some purchased music is located. Don't know how Itunes losing the locations of the files and I can't find the files on my hard drive. What can I do to stop Itunes losing location and restore my files?

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • I cant access firefox, everytime i try i get that windows can't find the file, i tried redownloading it but it still gave me the same message?

    i cant access firefox, everytime i try i get that windows can't find the file, i tried downloading it again but it still gave me the same message. the problem has nothign to do with my internet because it wonks on internet explorer and everythign is fine, my computer just can't access firefox for some reason. i tried uninstallign ti adn then installing it again, but that didnt work, i tried installing a different version and it still didnt work.
    okay the exact message is" Windows cannot find 'C:\Program Files\Mozilla Forefox 4.0 Beta 1\firefox.exe'. make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
    Nothing happens after i install is the "Launch Firefox now" checkbox set, the same message comes up.
    i usually start firefox from the shortcut i have on my desktop but when this happened i thought that the shortcut is the problem, but i went to the Mozilla firefox folder and tried it from there, but it didnt work. i also tried downloading different versions of firefox but that didnt work either.

    can you tell me the solution to "windows cant find firefox" error. thanks.

  • Had to uninstall Firefox, now I can't reinstall. Get error message "Can not find archive file." Please help!

    I believe I had some kind of virus attack. I got everything cleaned up. (I HOPE) In the process of cleaning the virus, I unintalled Firefox because it wouldn't open. Kept getting the error message that Firefox was already open and I had to close out of the sessions or restart the computer. After restarting the computer several times and not being able to find any open sessions in task manager, I uninstalled. When trying to reinstall, I get the error message "can not find archive file." I've tried downloading Firefox from cnet as well as the Mozilla site to no avail. Please help. I'm getting tired of using Chrome already!

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Firefox can't find the file at (a location is specified) when either "Navigate previous" (and next) buttons are pressed in an HTML5 skin (but OK in IE/Chrome).

    I create HTML5 help projects from a package called MadCap Flare. It uses what they call an HTML5 'skin' that sets the style/layout of the page and also includes 'Navigate previous' and 'Navigate next' buttons. When viewing the help and pressing these navigate buttons in IE8 or Chrome 32 there is no problem, but in Firefox 27 I get the following: (typical error for pressing a button on any page)
    "File not found"
    "Firefox can't find the file at /C:/SVN/FlareEnglishOnLineHelp/Output/HTML5_Help_Modeller_Reference/4attrib/idh_jointinterface_element_meshes.htm?TocPath=Modeller Reference Manual|Chapter 5 : Model Attributes|Meshing|_____2."
    " Check the file name for capitalisation or other typing errors."
    " Check to see if the file was moved, renamed or deleted."
    - Because the files and buttons work in other browsers I'm wondering just what is going on here with Firefox>>>>

    I should correct that last entry and state that the | charactacters are generated automatically in the Toc-Path for each 'book' name in the online help, and are not something manually created, whereas the : characters have come from the TOC book topic names (which were manually entered names and are what we would ideally require). But, because 'previous' and 'next' topics within nested TOC books without colon (:) characters CAN be browsed successfully when just | characters are present in the Toc-Path, the limitation would appear to be solely due to the : characters.

  • My home page is google and it works but when I open a new tab it displays an error message :Firefox can't find the file at chrome://quick_start/content/index.ht

    I've made sure a dozen times that my home page is set correctly, and when I hit the home button next to the search bar it works and takes me right to google BUT whenever i open a new tab i get the error that my page cannot load and the web url that it keeps trying to remember is in the error message:
    Firefox can't find the file at chrome://quick_start/content/index.html.
    of course the last dot is not the url anymore but the end of the sentence for the error message, but i don't ever use chrome ever on my laptop only my cell so what is going on????? help fix god please!!!!!!

    Do you have the FastStart extension?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My computer is saying it can't find the file 'iTunes64.msi' when I try to update or redownload iTunes how do I fix this? I've tried just about everything I can think of. I am using a dell laptop running windows 7 and have tried changing the file loca

    My computer is saying it can't find the file 'iTunes64.msi' when I try to update or redownload iTunes how do I fix this? I've tried just about everything I can think of. I am using a dell laptop running windows 7 and have tried changing the file location to run the update in all of my iTunes files as well as when I've tried reinstalling it.

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • I just got a new MacBook Pro, and I tried to bring across my files from my last mac using time machine. After it was done copying I can't find my files anywhere but the space (about 130gb) has been used on my hard drive. Help please!!

    I just got a new MacBook Pro, and I tried to bring across my files from my last mac using time machine. After it was done copying I can't find my files anywhere but the space (about 130gb) has been used on my hard drive. Does anyone know how I can get to them? I did change my user name from 'user' while it was copying, could this have something to do with it?

    You don't want to do that by copying.
    Your best bet, by far, is to use Setup Assistant.  If your Mac is running Snow Leopard, see Using Setup Assistant on Snow Leopard or Leopard.
    If it came with Lion, it's a bit different: Using Setup Assistant on Lion

  • HT1923 I can't uninstall or update iTunes. I get an error message that it can't find the file itunes64.msi.

    I can't uninstall or update iTunes. I get an error message that it can't find the file itunes64.msi. where is it suppose to be?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • When I click "about this mac" to check on my storage, I get a number of different sections music, movies, etc. but also I get a section called backups, where can I find the files in this section?

    When I click "about this mac" to check on my storage, I get a number of different sections music, movies, etc. but also I get a section called backups, where can I find the files in this section?

    Welcome to Apple Support Communities
    All the storage in "Backups" is taken up by local snapshots, which are made automatically in all MacBooks, MacBooks Pro and MacBooks Air with OS X Lion or newer and Time Machine turned on.
    See > http://pondini.org/TM/30.html I recommend you to leave them there, because they will be removed automatically. However, if you want, you can disable or remove them manually if you want, even if there's no reason to do this. Have a look at the link above for more information

  • Using migration assistant I moved files from a PC to my mac.  I can't find the files I moved to the mac.  Where can I find them?

    using migration assistant I moved some file from a PC to my IMAC.  Now I can't find the files on the Mac.  where are they? How do I access them?

    How many users on your Mac? if more than one look in the others.

  • Can't find admin files on former startup disk - now 2nd drive on MacPro

    Help, My G5 tower died and I bought a MacPro tower. I put the drive from the G5 in the MacPro as a second drive and it runs fine but I can't find any files I created under the root user. I used Root for about six months while my system was dying a slow death due to some motherboard failure. I kept losing access to the user accounts but not root so I just worked in that. I know the root password and all but I have no idea how to even find the files. I can ironically now access all of the user files but everything done under "root/admin" is invisible.
    Is there a way to simply access files like iWeb sites, etc on the old G5 drive? Is there a way to install OSX on the backup and re-access the G5 files?
    Thanks!

    Do you mean you are looking for the root user's home folder?
    You can find that under /var/root on your old G5 disk. From Finder, select Go menu > Go to Folder..., and enter /Volumes/G5diskname/var/root.
    You need root permission to get into that directory though, so if you want to use Finder you will have to be logged in as root. Or, a safer way, is to just remain logged in to your regular user account, right-click the G5 disk, Get Info, and select "Ignore ownership on this volume" under the ownershop & permissions section. Then you should have full access to everything on the drive without having to log in as root.

  • WLAN driver fails to install on G580 Windows 7 x64 with error "BCM4313: Can not find setup file"

    Summary:
    I have installed Windows 7 Ultimate x64 on my G580.  Everything is working fine except the WLAN driver fails to install with the error "BCM4313: Can not find setup file".
    Details:
    I bought lenovo G580 with Windows 8.  Since my parents are not comfortable with the learning curve of Win 8, I successfully downgraded to Windows 7 Ultimate x64.  Everything is working fine but my WLAN card is not recognized because of lack of driver.
    The lenovo parts look-up page says I have broadcom WLAN card - CBT BCM4313 MOW HMC WLAN
    I looked at lenovo driver downloads site and tried following driver files for Windows 7 and both of them failed to install with the following error.  I tried installing other WLAN drivers also but they won't even install as required hardward is not there.
    Error -  "BCM4313: Can not find setup file"
    Drivers Tried:
    - http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS028105
    - http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS028208
    Any help about how to get past this error will be appreciated.  The previous Widnows verison (Windows 8) is still on my hard-drive as windows.old folder.  Let me know if I can copy a specific file from there.
    Thank you.
    BJS
    Solved!
    Go to Solution.

    Download this driver bcm4313
    Start setup and extract the files.After that go to star menu/control panel/system/device manager.There you probably find out that network adapter driver is missing.Choose it and click with right mb for drop menu to show up.Select properties then Driver/Update Drivers...Select to load driver from computer hard drive and choose the path where extract files is.Default path is main partion C: and search for directory named Driver.
    And yes...you get "Can not find setup file" error but dont worry.Files needed to instal driver are extract fine.

Maybe you are looking for

  • Index not being used in Oracle 11g

    Hi, I executed an SQL in Oracle 9i based on a Materialized View with an index. Execution plan shows it used Index and did Range scan. But the same query if I executed in Oracle 11g, it did full table scan and ignored the index. Finally, I used /*+Ind

  • 6/19/2014 - Beta - Flash Player 14.0.0.136

    The latest Flash Player 14 beta builds are now available.  Beta builds can be downloaded from labs.adobe.com. New Features for Flash Player 14: Preview: PPAPI Debugger for Mac OS X and Windows An early preview of the PPAPI content debugger is availab

  • Pdf attachment problems on osx lion

    Hello i was wondering if apple has fixed the pdf attachment problem seen on other iOS' such as 7.1.  I get the same error (blank pdf file, white screen), however, it doesn't happen all the time.  any explanations and comments would be greatly appreci

  • Does my app need to work on 3.5" display?

    So I have developed an application for the iPhone however before I release it/attempt to publish it, I would like to know whether it is a requirement that I also make 3.5" display support.Currently in the simulator the 3.5" display cuts the bottom of

  • Mail crashes when typing an email address

    Hi, I just bought a MacBookPro thinking it would be the end of my troubles with Mail. But I was wrong. I really just turned it on for the first time. The 1st and ONLY thing I did till now was installing Adobe programs, backing up my Safari bookmark l