C++ debugger can't find input file, regardless of location

I have an input file that's turned into an ifstream object. When I run the program without debugging, it's found fine. I've put a copy of the file in every single folder within the project directory, starting at the folder that contains the solution file.
The debugger still can't find it. Help me, please; I feel like I'm going insane.

I have an input file that's turned into an ifstream object. When I run the program without debugging, it's found fine. I've put a copy of the file in every single folder within the project directory, starting at the folder that contains the solution
file. The debugger still can't find it. Help me, please; I feel like I'm going insane.
Hello,
I will help you move this thread to C++ forum to get help to confirm whether this issue is related to
using of ifstream .
You could share the code with us to clarify this issue. If possible, you could share a simple sample which could reproduce this issue.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • 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.

  • Debugger can't find object files

    I am building a static library with the -g compiler option. I build an executable that links in the static library, also using the -g compiler option. When I get into workshop and try to set a breakpoint in one of the .cc files that is contained in the static library, I get an error message that it can not find the object file that corresponds to my .cc file. I am using Sun Workshop 6 update 2.
    Here is the output from where I built my static library:
    #load ERS_GenevaAPIErrorHandlerFunc.o
    (cd .;     \
    /apps/forte-6.0u2p0507/SUNWspro/bin/CC -g -DDEBUG -DRWDEBUG -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -c ERS_GenevaDefaultCsaSaliMgr.cc)
    #load ERS_GenevaDefaultCsaSaliMgr.o
    rm -f libERSO.a
    CC -xar -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -o libERSO.a ERS_GenevaAccount.o ERS_GenevaAcctDormantChangeMgr.o ERS_GenevaBCCMgr.o ERS_GenevaConfigChangeMgr.o ERS_GenevaCustProduct.o ERS_GenevaCustSbscrp.o ERS_GenevaCustProductStatus.o ERS_GenevaCustSbscrpStatus.o ERS_GenevaCustProductEventType.o ERS_GenevaCustomer.o ERS_GenevaEventSource.o ERS_GenevaProductInfo.o ERS_GenevaProductMgr.o ERS_GenevaSaliMapInfo.o ERS_GenevaSaliMapMgr.o ERS_GenevaSvcConfigMgr.o ERS_GenevaTOLMgr.o ERS_GenevaAPIErrorHandlerFunc.o ERS_GenevaDefaultCsaSaliMgr.o
    The source file that I want to set a breakpoint in is ERS_GenevaConfigChangeMgr.cc.
    Here is the output from building the executable:
    rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc
    cxxtestgen.pl -o CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc error-printer time_it p2k_db_connection p2k_trace ERS_GenevaConfigChangeMgrCxxTest.th && \
    if [ -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc ] ; then echo "CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc is finished" ; else echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1; fi \
    || (echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1;)
    (cd .;     \
    /apps/forte-6.0u2p0507/SUNWspro/bin/CC -g -DDEBUG -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -c CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc)
    #load CxxTestRunner_ERS_GCONFIGCHANGEMGR.o
    rm -f cxx_ers_cfgmgr
    CC -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -I/p2k/S18.0/bldrel_debug/inc/cxxtest -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib -xildon -xildoff \
    -o cxx_ers_cfgmgr CxxTestRunner_ERS_GCONFIGCHANGEMGR.o -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib /p2k/S18.0/bldrel_debug/lib/libERSO.a /p2k/S18.0/bldrel_debug/lib/libSPGNV.so /p2k/S18.0/bldrel_debug/lib/libDAGNV.so /p2k/S18.0/bldrel_debug/lib/libGnvPRSvc.so /p2k/S18.0/bldrel_debug/lib/libPRCom.a /p2k/S18.0/bldrel_debug/lib/libCache.a /p2k/S18.0/bldrel_debug/lib/libCACSO.a /p2k/S18.0/bldrel_debug/lib/libCommonO.a /p2k/S18.0/bldrel_debug/lib/libCACSCom.a '-lstubs' '-lCTCom' '-lSRCom' '-lSRPR' '-lSRBL' '-lSRCL' '-lSRCA' '-lSRUS' '-lSRFI' '-lSRP2K' '-lGenPR' '-lGenBL' '-lGenCL' '-lGenCA' '-lGenUS' '-lGenFI' '-lGenP2K' '-lBOM' '-lDAP2K' '-lDANAIM' '-lsrvr' '-lP2K' '-lmwbusSvr' '-lM3srvr' '-lmwda' '-lmwtask' '-lMWCfig' '-lNAIManager' '-lNAIManagerXML' '-lbs' '-lmwbusClt' '-lmwxml' '-lmwBase' '-lmwnet' '-lmwCvgUUID' '-lmwutils' '/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib/rwor8bootstrap.o' '-ldbaccys' '-lrwdbtool' '-lrwora8' '-lrwdbtool' '-lclntsh' '-lsql9' '-lntcp9' '-lntcps9' '-lntns9' '-lclient9' '-lcommon9' '-lgeneric9' '-lvsn9' '-lxml9' '-lcore9' '-lnls9' '-lrwdbtool' '-lrwtool' '-lrwnet' '-ldemangle' '-ldl' '-lsocket' '-lnsl' '-lintl' '-lm' '-lsunmath' '-lc' '-lmp' '-lposix4' /apps/tuxedo-8.0p273/lib/libtux.a /apps/tuxedo-8.0p273/lib/libbuft.a /apps/tuxedo-8.0p273/lib/libfml.a /apps/tuxedo-8.0p273/lib/libfml32.a /apps/tuxedo-8.0p273/lib/libengine.a -ldl -lsocket -lnsl -lintl -lsunmath -lm -lmp -lposix4 && \
    if [ -x cxx_ers_cfgmgr ] ; then echo "cxx_ers_cfgmgr is finished" ; else echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1; fi \
    || (echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1;)
    Can you see where I am going wrong?

    I included the wrong output from building the executable in previous note. Here is the correct build output:
    rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc
    cxxtestgen.pl -o CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc error-printer time_it p2k_db_connection p2k_trace ERS_GenevaConfigChangeMgrCxxTest.th && \
    if [ -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc ] ; then echo "CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc is finished" ; else echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1; fi \
    || (echo "Error in building CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc!"; /bin/rm -f CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc; exit 1;)
    (cd .;     \
    /apps/forte-6.0u2p0507/SUNWspro/bin/CC -g -DDEBUG -DDEBUG -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -c CxxTestRunner_ERS_GCONFIGCHANGEMGR.cc)
    #load CxxTestRunner_ERS_GCONFIGCHANGEMGR.o
    rm -f cxx_ers_cfgmgr
    CC -DORACLE -DSUN5 -DSOLARIS -Dsparc -Dunix -DDEBUG -DPERSISTENCE -D_RWCONFIG_11s -DATLYS -DNO_MWBUS_GUAR -DNO_WLE_ALT -DNO_ATLYS_LICENSE -I. -I. -I/p2k/S18.0/bldrel_debug/inc -I/p2k/S18.0/bldrel_debug/inc/cruds -I/p2k/S18.0/bldrel_debug/inc/boms -I/p2k/S18.0/bldrel_debug/inc/server -I/p2k/S18.0/bldrel_debug/inc/DA -I/p2k/S18.0/bldrel_debug/inc/DAGNV -I/p2k/S18.0/bldrel_debug/inc/SPGNV -I/p2k/S18.0/bldrel_debug/inc/client -I/p2k/S18.0/bldrel_debug/inc/memory -I/p2k/S18.0/bldrel_debug/inc/mw -I/p2k/S18.0/bldrel_debug/inc/dbaccys -I/apps/oit-4.1/c/include -I/apps/tuxedo-8.0p273/include -I/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/inc -I/p2k/S18.0/bldrel_debug/inc/corba -I/apps/forte-6.0u2p0507/SUNWspro/WS6U2/include/CC -I/apps/oracle-9.2.0/xdk/include -DPERSISTENCE -I/p2k/S18.0/bldrel_debug/src/libs/libDAEMMS/include/DA -I/p2k/S18.0/bldrel_debug/inc/cxxtest -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib -xildon -xildoff \
    -o cxx_ers_cfgmgr CxxTestRunner_ERS_GCONFIGCHANGEMGR.o -L/p2k/S18.0/bldrel_debug/lib -L/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib -L/apps/oracle-9.2.0/lib /p2k/S18.0/dev/src/libs/libERSO/rclark/libERSO.a /p2k/S18.0/bldrel_debug/lib/libSPGNV.so /p2k/S18.0/bldrel_debug/lib/libDAGNV.so /p2k/S18.0/bldrel_debug/lib/libGnvPRSvc.so /p2k/S18.0/bldrel_debug/lib/libPRCom.a /p2k/S18.0/bldrel_debug/lib/libCache.a /p2k/S18.0/bldrel_debug/lib/libCACSO.a /p2k/S18.0/bldrel_debug/lib/libCommonO.a /p2k/S18.0/bldrel_debug/lib/libCACSCom.a '-lstubs' '-lCTCom' '-lSRCom' '-lSRPR' '-lSRBL' '-lSRCL' '-lSRCA' '-lSRUS' '-lSRFI' '-lSRP2K' '-lGenPR' '-lGenBL' '-lGenCL' '-lGenCA' '-lGenUS' '-lGenFI' '-lGenP2K' '-lBOM' '-lDAP2K' '-lDANAIM' '-lsrvr' '-lP2K' '-lmwbusSvr' '-lM3srvr' '-lmwda' '-lmwtask' '-lMWCfig' '-lNAIManager' '-lNAIManagerXML' '-lbs' '-lmwbusClt' '-lmwxml' '-lmwBase' '-lmwnet' '-lmwCvgUUID' '-lmwutils' '/p2k/midware/tools/rogue/ed_4/32/rw_buildspace/DEBUG/lib/rwor8bootstrap.o' '-ldbaccys' '-lrwdbtool' '-lrwora8' '-lrwdbtool' '-lclntsh' '-lsql9' '-lntcp9' '-lntcps9' '-lntns9' '-lclient9' '-lcommon9' '-lgeneric9' '-lvsn9' '-lxml9' '-lcore9' '-lnls9' '-lrwdbtool' '-lrwtool' '-lrwnet' '-ldemangle' '-ldl' '-lsocket' '-lnsl' '-lintl' '-lm' '-lsunmath' '-lc' '-lmp' '-lposix4' /apps/tuxedo-8.0p273/lib/libtux.a /apps/tuxedo-8.0p273/lib/libbuft.a /apps/tuxedo-8.0p273/lib/libfml.a /apps/tuxedo-8.0p273/lib/libfml32.a /apps/tuxedo-8.0p273/lib/libengine.a -ldl -lsocket -lnsl -lintl -lsunmath -lm -lmp -lposix4 && \
    if [ -x cxx_ers_cfgmgr ] ; then echo "cxx_ers_cfgmgr is finished" ; else echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1; fi \
    || (echo "Error in building cxx_ers_cfgmgr!"; /bin/rm -f cxx_ers_cfgmgr; exit 1;)
    In answer to your questions, I am building the static library, the executable and debugging all on the same machine. I have not moved any of the files. I actually have success when I use dbx commands in the debug window to set my breakpoint. If I say "stop in ERS_GenevaConfigChangeMgr::find" I can set a breakpoint in the function. Then I say "run", at that point the source code is displayed in my editor window and I can set breakpoints there by putting my cursor on a line and then clicking on the stopsign button.
    What I am having a problem with is if I open the source code file in the editor window and try to set a breakpoint by putting my cursor on a line and clicking on the stopsign button. The error message is "no executable code at line "ERS_GenevaConfigChangeMgr.cc":166. The source code that I want to set the breakpoint on is in a directory that is different from where the executable because it is source code from the static library. I have to navigate to that directory from the file chooser menu. It puzzles me why the behavior is different when I issue dbx commands than when I try to open the file in the editor. If you could steer me towards some documentation that would help me to understand the concepts behind this I would really appreciate it!

  • [SOLVED]Nano can't find some files to edit Locate can't find ...

    Hi! You've maybe heard this thousand times before, but I'm new to Arch Linux and Unix commands, so this is maybe stupid question and bla bla bla... but that's why there's Newbie Corner, right? I'm running Arch with LXDE on quite old and tired HP desktop, if that's important.
    So, I'd like to have terminal right on my desktop, like hard core linux guys do. I googled a bit and found some how-tos. Tried to find file autostart.sh for openbox, didn't find it with command line nether graphical file browser, so I created one with nano to /home/user/.config/openbox folder, that's allright? After that, I'd like to edit rc.xml file. There's no such file (or at least I could't find one), so I tought that the file lxde-rc.xml in same folder is my target - graphical browser shows me that folder, Nano don't. Still on the map? BUT, there's where a problem occured - if I try to open the file for editing with Nano, there's just blank file. Tried several times, so it's not up to some misspelling or anything like that. There's been similar situations before, so is there something wrong with my installation, filesystem or Nano? I tried command 'locate' too, and it didn't work, too. What am I supposed to do?
    And notice that question is about the Nano thing, Lxterminal on desktop isn't so important compared to undestandin my system tools and their behavior.
    Last edited by Jatra (2014-01-15 18:47:31)

    β ™ wrote:Why are you using sudo when editing user files?
    Yes, that's stupid. Maybe that's because I don't exactly know, which files I'm able to edit without sudo. Everything in folder /home?
    Why are you editing anything in openbox directory if you are running LXDE?
    I know that LXDE uses Openbox as a windowmanager, so that's why. Is that files in the Openbox directory are only for pure Openbox-session, and then other Openbox directories for LXDE-Openbox-session?
    Do that all sounds like I should reinstall everything except base packages for Arch and start over with some more education, or is it worth learning to try to configure my current system... Jet there is not too much stuff insalled after the base system, only Lxde, office and Chrome browser.

  • 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

  • Tomcat can't find existing file

    Hello,
    unfortunately i keep getting the following error:
    Servlet /tomcat-docs threw load() exception
    javax.servlet.ServletException: Service not available (propertyFile not loadable:Can't find properties file /usr/share/tomcat4/webapps/tomcat-docs/../webapps/ROOT/conex/WEB-INF/properties/cp.xmlWhat annoys me about it is that the file cp.xml exists in the very directory. Any ideas how something like this can happen?

    The best way to do it is to use the methods of ServletContext.
    ServletContext.getRealPath("WEB-INF/properties/cp.xml")
    This method turns a website relative url into a real file location on the disk. It makes your web app independant of where it is deployed.
    The other useful method is ServletContext.getResourceAsStream("/pathtoresource") which returns an input stream to the resource. This call will succeed even if the application is in a WAR file, where the path returned by getRealPath() may not be as easily accessible.
    ServletContext application = getServletConfig().getServletContext();
    String filename = application.getRealPath("WEB-INF/properties/cp.xml")
    File inFile = new File (filename);Cheers,
    evnafets

  • Can't find the file ?php echo $editFormAction; ? in XAMPP

    I used the insert record function in CS4 on a page I'm working on.  I'm running XAMPP in win XP.
    Whenever I load the page into firefox, fill out the forms with random data, and click the submit button, I get the following error:
    can't find the file at /C:/xampp/htdocs/MySite.com/<?php echo $editFormAction; ?>
    I have been trying to research this a bit myself, and I think the problem may simply be that the editFormAction script is not in the root folder of my site.  But I am not sure where it is, and so, what to change the reference to.
    Or perhaps I'm completely wrong about this???
    Please Help Me!!

    Well, I have to chuckle a bit because the article on how to set up a php testing server that you wrote is the exact one I read to set up my testing server!  It is very well written and probably the most helpful and straight foreward article on setting up dreamweaver with XAMPP on the web.  I followed all of the instructions exactly, so I imagine the problem must be elsewhere?  It's pointing to the C drive because that's where XAMPP is installed.  This is how is it supposed to be setup, correct?  Apache and MySQL are running, or at least it says so on the XAMPP control panel.
    Also, I apologize for not posting this in the right forum.  That was my first post on the adobe boards and I didn't really consider inserting records to a database to be an "application."  So thanks for pointing me in the right direction.
    for those who want to see my code, here it is.  Except for the exact names of the fields, it's exactly what dreamweaver creates when youc click on the "insert record" button in the insert menu.  I don't see any option for pasting the code as "code" like in most code devolpoer forums.  I know some poeple get upset if you paste code without doing it right, so I hope I'm not making anybody mad.
    the following is inserted in the head:
    <?php require_once('Connections/GiftListConnection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ff SET EmailAddress=%s, Relationship=%s WHERE FirstName=%s",
                           GetSQLValueString($_POST['EmailAddress'], "text"),
                           GetSQLValueString($_POST['Relationship'], "text"),
                           GetSQLValueString($_POST['FirstName'], "text"));
      mysql_select_db($database_GiftListConnection, $GiftListConnection);
      $Result1 = mysql_query($updateSQL, $GiftListConnection) or die(mysql_error());
      $updateGoTo = "ManageFF.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
      $insertSQL = sprintf("INSERT INTO ff (FirstName, EmailAddress, Relationship) VALUES (%s, %s, %s)",
                           GetSQLValueString($_POST['FirstName'], "text"),
                           GetSQLValueString($_POST['EmailAddress'], "text"),
                           GetSQLValueString($_POST['Relationship'], "text"));
      mysql_select_db($database_GiftListConnection, $GiftListConnection);
      $Result1 = mysql_query($insertSQL, $GiftListConnection) or die(mysql_error());
      $insertGoTo = "ManageFF.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_GiftListConnection, $GiftListConnection);
    $query_Recordset1 = "SELECT * FROM ff";
    $Recordset1 = mysql_query($query_Recordset1, $GiftListConnection) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    and then this is the actual form code in the body:
    <p class="Bold">&nbsp Add new family member or friend...</p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
      <table align="left">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">FirstName:</td>
          <td><input type="text" name="FirstName" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">EmailAddress:</td>
          <td><input type="text" name="EmailAddress" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Relationship:</td>
          <td><input type="text" name="Relationship" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="add" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form2" />
    </form>
    Thanks for trying to help out this noob, everybody!
    BTW, this is Inkexit posting.  For some reason when I logged in this morning, I was made to pick a new screenname, as inkexit was already in use.  But I knew that though, as I was the one using it, lol.  Kinda bizzarre.  Perhaps the Mods should know about this?

  • 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.

  • 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?

Maybe you are looking for

  • Office Web Apps Server 2013 - No download Volume Licensing Service Center

    I´m looking for a office web apps server 2013 (OWS) download. In the following blog Microsoft is announcing that the OWS is moving from the Download Center to the Volume Licensing Service Center (VLSC). http://blogs.technet.com/b/office_sustained_eng

  • Active Directory not working Windows Server 2003 R2

    Hi, Like the subject said my root problem is either my Active Directory or DSN server. In order to properly explain the situation I will have to make the full Story. I was contacted by a family member to help out a Non profit organisation with there

  • Can i sync iphone pics to time capsule?

    Can I Sync "automatiacally" my iPhone pice to my newest version of the time capsule?

  • How to solve the library deployment reference

    I have a weblogic server setup and application deployed to AdminServer working fine. Now, I'm trying to move one of application from Adminserver to another server(new server, Server-0) on the same machine, same domain. I undeployed it from Adminserve

  • LG vs Samsung LCD in iPad 2

    I bought a white 32gb iPad 2 (WiFi) last Wednesday (5-4-11) which had a terrible light leak problem that showed up at 50% brightness and indoors during daytime.  Checking the serial number of the unit, it was manufactured in week 18. After hearing th