[SOLVED]opening local files with surf browser

When I try to open local html files with surf from suckless-tools with the full path, I get the error message 'URL cannot be shown'. How do I tell surf that it's local file and not a url?
Last edited by _feda_ (2011-12-16 00:23:34)

What happens if you specify a local file path: Ctrl-g and
file:///path/to/your/file.html

Similar Messages

  • Can't open local files with v11.0.06 ("not supported or damaged")

    Hello there!
    We got some recent issues with the new Adobe Reader XI v11.0.06.
    Some files (currently two) can't be opened with the new version - although they can be opened with older versions (i.e. 9.4.3 and 10.1.0).
    Following error message appears:
    "Adobe Reader could not open 'asdf.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)." - (i hope that's it, i'm using the german version)
    (Win7 Professional SP1 64-bit)
    Thanks!

    I have searched a lot and just found other problems like NONE of the .pdf's working or failed permissions to open one - but not one entry like this where just some special .pdf's can't be opened.
    (i hope i can collapse that text, else it's getting quite long)
    `ê  %PDF-1.4
    %âãÏÓ
    1 0 obj
      <<
        /Author()/Title()/Subject()/Producer()/Keywords()/CreationDate()/ModDate()/Creator(Sub Systems, Inc.)
      >>
    endobj
    Thanks for your answer!
    Message was edited by: Pat Willener - long data stream truncated.

  • Signed applet to open local file problem with IE6 / Firefox

    Hello
    I have a signed applet to open a local file, with this code :
    try{
       URL destination=null;
       File f=new File(adresse);
       destination=f.toURL();
       AppletContext ac=applet.getAppletContext();
       ac.showDocument(destination,"_blank");
    catch (MalformedURLException e)
       System.out.println(e.toString());
    ...It works perfectly with Netscape 7.01 and IE 5.5, but not with IE6.0 or Firefox 1.0...
    (using SUN JVM 1.4.2_04), and there is no trace/error message
    With a http link, it works for all browsers...
    try{
       URL destination=new URL("http://my.site/mypage.htm");
       AppletContext ac=applet.getAppletContext();
       ac.showDocument(destination,"_blank");
    catch (MalformedURLException e)
       System.out.println(e.toString());
    ...Any idea ??
    Thanks

    Hello again
    There's something I don't undestand...
    java applet code
    import java.applet.*;
    import java.net.*;
    public class test extends Applet {
         public void init() {
              try {          
                   String path = "file:/C:/Temp/";
                   URL destination = new URL(new URL(path) ,"test.jpg");
                   System.out.println("URL is now: " + destination.getPath() );          
                   AppletContext ac = this.getAppletContext();
                   ac.showDocument(destination, "_blank");
              } catch (Exception e) {
                   e.printStackTrace();
    html code
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <applet CODE = "test.class" ARCHIVE = "sTest.jar" width=350 height=200></applet>
    </body>
    </html>
    Signature
    javac -classpath ".;D:\Program Files\Java\j2re1.4.2_04\lib\plugin.jar" test.java
    keytool -genkey -keystore mag -keyalg rsa -alias harm -validity 3600 -keypass password -storepass password
    jar cf0 test.jar *.class
    jarsigner -keystore mag -storepass password -keypass password -signedjar sTest.jar test.jar harm With a debug the signature looks good in the logs (translation by google, not sure of the correct words...)
    The checking of the certificate using the certificates CA root failed
    Piled up method
    Unstacked method
    Selected user: 0
    The user granted the rights of access to the code for this session only
    Addition of the certificate in the storage section of the certificates of session JPI
    Certificate added in the storage section of the certificates of session JPI
    Recording of the certificates in the storage section of the certificates of session JPI
    Certificates recorded in the storage section of the certificates of session JPI
    URL is now: /C:/Temp/test.jpg
    Javascript: Activated UniversalBrowserRead
    Javascript: Activated UniversalJavaPermission
    What are the 2 last line ?? (appears only in firefox, not in IE55...don't have another browser yet 'cause my graphic card and motherboard are out of order :-(
    Why in firefox, in the javascript console, there is a "message" (again translation by google...) but everything is alright in the java console ??
    Error of safety: the contents located at http://www.distantserver.com/Demo/test/test.html cannot charge of data or establish a bond towards file:///C:/Temp/test.jpg.
    Thanks in advance (and sorry if I only don't understand something from your link because of my english level...)

  • Error in opening a file with name in chinese characters with Runtime.exec

    The issue at hand is when I try to open a file with file name containing chinese characters in a localized environment in Windows through the following java code:
    Runtime.exec("rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}");
    the following error is thrown by windows.
    Cannot open file "C:\??.txt".
    with the exception
    java.io.IOException: CreateProcess: [Ljava.lang.String;@f5da06 error=2
            at java.lang.Win32Process.create(Native Method)
            at java.lang.Win32Process.<init>(Win32Process.java:66)
            at java.lang.Runtime.execInternal(Native Method)
            at java.lang.Runtime.exec(Runtime.java:566)
            at java.lang.Runtime.exec(Runtime.java:428)
            at java.lang.Runtime.exec(Runtime.java:364)
            at java.lang.Runtime.exec(Runtime.java:326)
            at Launcher.main(Launcher.java:26)
    When I try to use the same command (shown below) from the Windows Run command, the file opens sucessfully
    rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}
    Please suggest.
    Thanks in advance

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • I am unable to open files on amything!!! a box pops up that asks me what do i want to open the file with..every time!! I want files to open when i click on them!! This happens with emails, websites, everything

    I try to open attachments in emails and they will not open! A box comes up asking 'what do I want to open the file with', and it wants me to select from a list of options like - Firefox, IE, Word, Yahoo Browser. When I make a selection (usually Firefox) a new tab opens with a blank page! This always happens on attachments, links, websites......everything!

    These files were lost two years ago.
    That's not consistent with what you wrote in your first message. I can't help you unless I know what's going on. Either you do, or do not, have backups of all the data you want to keep. If you do not, then the first thing you need to do is back up those files. It makes zero sense to do anything else. In order to back up, you'll need either of two things: another Mac, in working order, with a FireWire port and enough space on its internal drive to hold your files; or an external drive, also with enough space.
    On the other hand, if you do have backups, or if you simply don't care about any of the data, then the solution to your problem may be quite simple. All you have to do is boot from your installation disc (your profile says you're running Mac OS 10.5), erase your internal drive, reinstall the Mac OS, then restore your data from backup. You will need to be selective in restoring software, because incompatible software may be what caused the issue.
    But it's also possible that you have a hardware failure, in which case you can't get your computer working again until it's repaired.

  • How to open a file with a link ?

    I am using servlets to design an application.
    The application supports uploading and downloading of .DOC and .RTF files.
    My problem is that I am opening an uploaded file via a link.
    OPen File
    The above is also working fine and opens the file in the IE browser.
    But my problem is that I want to open the file with MS-Word...as is done on many resume-building websites.
    1) How am I supposed to do that ?
    2) Can I specify ContentType="application/msword" in a link ?
    Please Help !!

    I did the foll. w.r.t a docbase.
    A docbase stores documents and assigns an unique id to each one. The foll. is a code snippet that opens a document's contents in a browser.
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    Connection conn = null;
    Statement stm;
    ServletOutputStream sos = null;
    ResultSet res;
    // .... get id of document u want to open
    query = "select id from .. where object_name = ' xx' .."
    res= stm.executeQuery(query);
    Blob blob = res.getBlob("_content"); // this will get content of document identified by id
    int blobLen = (int)blob.length();
    //the foll. is the part u need..
    if (blobLen > 0) {
    InputStream contents = blob.getBinaryStream();
    response.setContentType("application/msword"); // MS Word
    byte[] buf = new byte[blobLen];
    int length = -1;
           while ((length = contents.read(buf)) != -1){
              sos = response.getOutputStream();
              sos.write(buf,0,blobLen);
    sos.flush();
    System.out.println("Doc Received");
    contents.close();
      res.close();
      conn.close();
    }

  • I need to open a file with an associated programm.

    I need to open a file with an associated programm.
    I'm looking for two solutions:
    1. for Linux/Solaris/Unix/...
    2. for Windows 95/98/Nt/2000
    For Windows I have done this with command line
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + uSavePath);
    but it doesn't work on windows2000. We need an universal solution.
    For linux
    Process p = Runtime.getRuntime().exec("netscape openURL " + uSavePath);
    But may be anybody know better solution?

    You are right. For unix better solution is that my program to care about all association itself. As I undestend now it's a common solution for unix applications.
    But for windows it will be ugly enough. I've found another way for windows
    Win2000/NT: "cmd /C start filename /B"
    other Wins: start filename
    for linux I've stopped at doing this via Netscape.
    May be in future I'll make my property file.
    start filename - on Win95(may be 98/ME) returns -1 if file not assotiated with a programm, and doesn't shows openWith dialog. It solved using something like "rundll32 shell32, OpenWith filename"
    It's all for those how will solve this problem in future.

  • Cannot open pdf files with Firefox's built-in pdf viewer

    This just started (I think) with Firefox 37.01. This is on Win7-X64. I cannot open pdf files with the Firefox built-in pdf viewer. If I click on the file or try to open it from within Firefox, it brings up a "opening filename.pdf" message. If I select the "Open with" radio button as 'Firefox (default),' it just keeps looping on this process; it never opens. In Tools => Options => Applications, Portable Document Format (PDF) is indicated as 'Preview in Firefox.' I've never had any other PDF viewer installed on this computer. I've tried disabling all plug-ins and extensions, but it still doesn't work. I searched for solutions but haven't found any for this specific issue.
    Thanks for the help.

    Hello,
    Have you tried, to start Firefox in safemode you can do so by following these steps
    '''If Firefox is open,''' you can restart in Firefox Safe Mode from the Help menu:
    * Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    '''If Firefox is not running,''' you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".
    ;[[Image:SafeMode-Fx35]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, theme, or hardware acceleration. Please follow the steps in the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Unable to open PDF files with Adobe Reader, Mac trying to open files with Quicktime instead, but not succeeding. HELP!

    Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!

    Hi BDAqua,
    Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
    Problem solved, many thanks for a quick response.
    Barry69

  • How do I get firefox to open pdf files with Adobe reader instead of google?

    Firefox is unsucessfully using google to open pdf files.  How do I get firefox to open pdf files with Adobe reader?
    Message was edited by: veeryTalonted

    "Google" is a search engine (website) and NOT (repeat: NOT) a PDF viewer. It can't and won't open PDFs in any real or imaginable way.
    Firefox added their own proprietary PDF viewer with version 20 - they're on 21 now. I'll be the first to admit "it sucks". You CAN'T fill in PDF forms with it, and you can't email them from the page like with Opera, Safari or Chrome (which use the reader plug-in still).
    Unfortunately, the ONLY option you have now that they've added it and killed the ability for the Reader plug-in to work with Firefox, is Tools>Options>Applications - select Portable Document Format(PDF) and choose "Use Adobe Reader (Default)". What that will do is FORCE Firefox to download the PDF instead of opening it in their terrible PDF viewer in the browser window.
    Or... use one of the other browsers I mentioned. They're all free.

  • Inquiry about opening any file with internet explorer

    Dear all,
    i am opening any file with internet explorer on the client machine.but i want to open it as READ-ONLY. so is there any parameter i should add to the command.
    the command i am using is :
    client_host('"\Program Files\Internet Explorer\iexplore.exe " "'||v_file_name||'"'; );
    Thanks in advance

    Hi,
    I don't think there is a way to open a file as read only using Client_Host. But i can give you another suggestion. Change the permission of the file to readonly (may be using chmod command) before opening the file in the browser.
    client_host('chmod -w '||v_file_name);Regards,
    Arun

  • Error WUC-14 after open a File with CLIENT_TEXT_IO.FOPEN (Oracle 10g)

    Hi,
    the error WUC-14 occurs during open a file with forms10g.
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    Afterwards the error message it ist possible to write into the file and close it correctyl (without am error message - also the Information is correkt).
    During debugging the error occurs in the function GETPROPERTY (Webutil).
    the error occurs only sometimes.
    Can anybody help me to solve the problem ?
    best regards,
    Alexandra Schermann

    Hi Alexandra,
    You can catch the exception in Exceptions part and close the file. Something like,
    DECLARE
    F_VersandZahlen CLIENT_TEXT_IO.FILE_TYPE;
    BEGIN
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    <do your processing>
    EXCEPTION
      WHEN OTHERS THEN
       CLIENT_TEXT_IO.FCLOSE(F_VersandZahlen);
    END;-Arun

  • File open menu will not open local files using open command but the same files will open if I double click them (permissions seem fine)

    Under File menu Open File will not open local files even those downloaded to the desktop by Firefox 5.
    If I double click on HTML file it does open
    Reinstalled. Same behaviour. Default Browser set correctly.
    Permissions set correctly. Odd behaviour.

    Are you sure it hasn't imported?
    Check for the track names (trackname only, not Album or Artist)) and see if they have a blank Artist and Album, because WAV files have no MetaData, so are kind of stupid as far as knowing anything about the Artist, Album & track id.
    You can't search by 'Untitled' either as there is literally, no name at all, but iTunes does pick up the actual physical track name in Finder and uses that. As an example, if you renamed your Aerosmith WAV file from say 'Toys In The Attic' to 'Love Song' it would import the track as 'Love Song' as that's all it can go by.
    There are a few iTunes AppleScripts that let you import from a file of WAV music, by looking at the enclosing Album in the enclosing Artist as that's how most PC progs create the WAV file structure.
    Mike

  • Opening a file in a browser

    Hi,
    My requirement is to open a file on a browser from NWDS. The file url shown on the browser should not be beginning with http. It should show the absolute filepath. (On selecting a file from C: drive, the file should open in a browser showing its absolute path (C:\file.txt.).
    Thanks,
    Amrita

    Hi Amrita
    please go through thid forums link
    how to open a PDF file using NWDS or VC
    it will help you lot
    Regards
    Ruturaj

  • How to open local file link in IE ?

    I know, this question is not APEX-related per se, but I was not able to google the fix to this problem.
    In my application, users can open a file open dialog and retrieve a complete file path that is later stored in the DB. Of course, Firefox's javascript does not allow this, but Adam Fisk's applet (https://bugzilla.mozilla.org/show_bug.cgi?id=405630#c40) does the job.
    The file path links to file:///..... . In Firefox, I have managed to open these links with NoScript settings (white list for our intranet trusted addresses and "allow local links" for trusted sites).
    Also, there is a LocalLink plugin (http://kb.mozillazine.org/Links_to_local_pages_don%27t_work) that allows to open local file links from context menu.
    However, on Internet Explorer nothing happens and LocalLink and NoScript are only for FF.
    Has anyone here managed to open local and intranet file links in IE?
    Igor

    You may find this article useful: http://balusc.blogspot.com/2007/07/fileservlet.html

Maybe you are looking for

  • Can't Send Email from Iphone Using Pop Account

    I have check our host names, ports, user name, passwords etc (all the account mail settings are OK) for incoming and outgoing servers. I can receive email fine but can't send them back out through the outgoing server. I am using the identical setting

  • Need button so be pre-selected

    I need to know how to make my a button pre-selected. When the user comes to the screen, I'd like it to show up just like it does in the rollover state. Is there a way to do this? I already tried using the my_btn.selected property, but that does't do

  • Mountain Lion and external monitor

    Hi, Im running my MBP with a external EIZO monitor with 1600 x 1200. Before I upgraded to ML this worked just fine. But when i upgraded to ML my external monitor wont show the resulution properly. "1600x1200" is selected but the screen is still squee

  • Connecting hardware(c​onnected to myDAQ) to my labview program

    Hi, I have a labview program that will send an email (Gmail) when you click the " Button " in the program but  i need to modify it so that when i press a switch button at my hardware(connected to myDAQ)  the email will be sent ; meaning to replace th

  • Data transfer between SAP and SRM

    Hi all, I'm new with SRM and like from a help. Working with SAP 4.7 and now with SRM 5.0, I need make the two systems if communicate. I need send from SAP to SRM the master data, Material, Customer, Material Group, Cost Center. I need send the shop c