Java 6 Desktop open

I want to be able to open files with the default application from java. The Desktop class works for this when using:
1. local filepaths
2. network drives
3. UNC pathnames
but does not when the UNC pathnames have spaces in them!
Does anyone know how to solve this problem?

Hi,
I also have the same problem, but with my JNI and C++ expertise, I was able to isolate the problem.
My platform:
- Microsoft Windows XP, Family Edition (French), Version 2002, Service Pack 3
- JRE 1.6.0_21
In the source of the JDK6 (Src/windows/classes/sun/awt/windows/WDesktopPeer.java), the Desktop.open(file) calls the native method
ShellExecute(*uri.toString()*, "open")
For example, if you try to open "c:\helloworld.pdf",
uri.toString() = "*file:/c:/helloworld.pdf*"if I call ShellExecute("C:\\helloworld.pdf", "open"), it works
but if I call ShellExecute(" file:/c:/helloworld.pdf", "open"), it doesn't work on my platform.
In both case, the ShellExecuteW or ShellExecuteA function of the Windows API return the integer 42 (> 32), saying that the functions succeeded. If the file object is not correct, the function should return a value <= 32.
=> The bug is not due to Java implementation, but to a bug in the Windows API.
Other remark:
I also tried the "ShellExec_RunDLL" entry point of the Shell32.dll library using RunDll32 utility. Both commands below are running correctly:
rundll32 SHELL32.DLL,ShellExec_RunDLL "C:\hello.pdf"
rundll32 SHELL32.DLL,ShellExec_RunDLL "file:/C:/hello.pdf"My conclusion:
1) A workaround could be implemented in the JRE: use the file path without the "file:/" protocol prefix.
2) This bug seems to be present only one some version of Windows XP (to confirm).
Rodolphe.

Similar Messages

  • Desktop.open() Problem

    I recently put together an application that relied heavily on the Desktop.open( ) method and several other methods from the Desktop class. However, all of a sudden the Desktop.open() does not work. I believe I read some where that this was due to the ShellExecute function or dll or something like that.
    However, since my app is targetted at the Windows platform I resorted to using windows Explorer to launch the system default applications for files using a the code below
    public static void openFile(File file) {
      try {
        Runtime runtime = Runtime.getRuntime();
        runtime.exec( "explorer.exe \"" + file.getAbsolutePath() + "\"" );
      } catch(IOException) {
        ioe.printStackTrace();
        JOptionPane.showMessageDialog(null, "Could Not Open File Location: " + file.getAbsolutePath());
    }The code works as expected, but my problem is that I am loosing cross-platform functionality.
    Can any point my to solution to this Desktop.open( ) problem, or probably add the my list platform dependent launch procedures so at least the code works on Windows,Linux and Mac.
    ICE

    Thanks Andrew,
    I've do a more simple example of the problem. I create two files on "\\fiuu\proyectosShared", one called "test.txt" and the other one called "te st.txt". I execute your exact source for the who paths whith these results:
    File f = new File("//fiuu/proyectosShared/test.txt");
    System.out.println(f + "  exists: " + f.exists());
    dt.open(f);
    RESULT:
    \\fiuu\proyectosShared\test.txt  exists: true
    (notepads opens the file)The second test does'nt work:
    File f = new File("//fiuu/proyectosShared/te st.txt");
    System.out.println(f + "  exists: " + f.exists());
    dt.open(f);
    RESULT:
    \\fiuu\proyectosShared\te st.txt  exists: true
    Exception in thread "main" java.io.IOException: Failed to open file:////fiuu/proyectosShared/te%20st.txt. Error message: El sistema no puede hallar la ruta especificada.
         at sun.awt.windows.WDesktopPeer.ShellExecute(WDesktopPeer.java:59)
         at sun.awt.windows.WDesktopPeer.open(WDesktopPeer.java:36)
         at java.awt.Desktop.open(Desktop.java:254)
         at DesktopTest.main(DesktopTest.java:14)
    (translation of error message: System can't find specified path)I've also done some tests with Desktop.browse(file.toURI), and some others with no success.
    Something curious: try to execute Runtime.getRuntime().exec("explorer " + f.getAbsolutePath) for a file that has thow white spaces on his name....
    File f = new File("//fiuu/proyectosShared/te  st.txt");//with two white spaces
    System.out.println(f + "  exists: " + f.exists());
    Runtime.getRuntime().exec("explorer " + f.getAbsolutePath());
    \\fiuu\proyectosShared\te  st.txt  exists: trueSystem says:
    Explorador de Windows
    La ruta '\\fiuu\proyectosShared\te st.txt' no existe o no es un directorio.
    Aceptar  
    (spanish version of File not found alert message)Note that in alert message one white space of filename is lost!
    Thanks again
    Edited by: pakomail on Nov 24, 2008 6:12 AM

  • Desktop.open() problems

    I realise that this post might be quite similar to one posted yesterday, but I thought that the problem was sufficiently different to warrant a new thread.
    I'm trying to use the Desktop.open(file) method to open a file with the default application - so far I have gotten this to work successfully with Word files - however when I try to load a pdf file I get an error
    Failed to open file:/C:/Users/alex/Desktop/cup.pdf. Error message: No application is associated with the specified file for this operation.This seems strange since pdf file's are associated with Adobe Acrobat Reader on my computer. How does Java know which application to associate with the file type? I assume it's some native method, but if I call 'start c:/.../file.pdf' from the command line it opens the file with Acrobat Reader - So I'm stumped
    Any help would be greatly appreciated.
    Thanks

    I've just written a little test app to isolate the Desktop.open() call from our system :
    import java.awt.Desktop;
    import java.io.File;
    public class Test {
      public static void main(String[] arg) throws Exception {
        File file = new File(arg[0]);
        Desktop desktop = Desktop.getDesktop();
        desktop.open(file);
    }Running this as
    java Test C:\Users\alex\Desktop\cup.pdfGives me the error
    Exception in thread "main" java.io.IOException: Failed to open file:/C:/Users/alex/Desktop/cup.pdf.
    Error message: No application is associated with the specified file for this operation.
            at sun.awt.windows.WDesktopPeer.ShellExecute(Unknown Source)
            at sun.awt.windows.WDesktopPeer.open(Unknown Source)
            at java.awt.Desktop.open(Unknown Source)
            at Test.main(Test.java:10)

  • Desktop.open() method doesn't work,

    Hi,
    I'm developing file explorer with JDK6.
    But when I try to open file with native asscociation programs with java.awt.Desktop class, I found that's not work at all.
    there is no response, exception and error. it just 'silent.'
    I checked each line of code. File is exist, Desktop support Open action.
    OS association with file is correct. I couldn't find any problem.
    so I tested tutorial code 'DesktopDemo'. it worked well Browse() but not Open(). open() method isn't work. (It also silent)
    How can I open file with native association?

    Please don't post to threads which are long dead, and don't hijack another poster's thread. When you have a question, start your own thread. Feel free to post a link to a related thread.
    Discussions may be kept on the forum. This is not a place to advertise your blog.
    I'm locking this thread now.
    db
    StijnDeWitt wrote:
    This seems to be a long-running problem related to Desktop.open in combination with Windows and some Account/Profile settings on Windows which are as of yet undetermined.
    Unfortunately the moderators of this forum have the tendency to close/lock old topics so we cannot add new information to a long running problem anymore after a while. They forgot to close this one so luckily I can still add some info here.
    I would like to invite anyone wanting to read details on and discuss this issue to do so on my blog. The comments on that post will never be closed or locked.
    java.awt.Desktop open() fails silently without exception
    (blog link removed)
    >
    You may also want to have a look at these related (but unfortunately locked) forum posts:
    [Desktop.open fails without exception, nothing happens (Locked)|http://forums.sun.com/thread.jspa?threadID=5338022]
    [Desktop.getInstance().open(file) does nothing (nothing happens) (Locked)|http://forums.sun.com/thread.jspa?threadID=5413798]

  • Desktop.open() fails when file contains German umlauts

    Hello,
    I want to open a file using the Desktop-API:
    // check whether opening a file is supported or not
    if (!desk.isSupported(Desktop.Action.OPEN)) {
      // display error message box
      JOptionPane.showMessageDialog(getFrame(),getResourceMap().getString("errLinkUnsopportedMsg"),
             getResourceMap().getString("errLinkUnsopportedTitle"),JOptionPane.ERROR_MESSAGE);
      return;
    desk.open(linkfile);I'm catching all possible exceptions here:
                 catch (IOException e)
                catch (IllegalArgumentException e)
                catch (SecurityException e)
                catch (UnsupportedOperationException e)
                catch (URISyntaxException e)But when I want to open a file that contains German umlauts, my application throws following exception:
    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException:
    Non-Java exception raised, not handled!
    (Original problem: *** -[NSCFArray initWithObjects:count:]:
    attempt to insert nil object at objects[0])
    at apple.awt.CDesktopPeer._lsOpen(Native Method)
    at apple.awt.CDesktopPeer.lsOpen(CDesktopPeer.java:53)
    at apple.awt.CDesktopPeer.open(CDesktopPeer.java:33)
    at java.awt.Desktop.open(Desktop.java:254)
    at zettelkasten.ZettelkastenView.eventHyperlinkActivated(ZettelkastenView.java:9609)
    at zettelkasten.ZettelkastenView.access$6000(ZettelkastenView.java:119)
    at zettelkasten.ZettelkastenView$14.hyperlinkUpdate(ZettelkastenView.java:7014)The file does definitely exist. I chose it with a filechooser, and I debugged the source step-by-step. Before calling the desktop.open() command, I check whether the file exists or not (File.Exists()).
    When I open any file without umlauts, everything is fine. Only files with umlauts in their filename seem to make trouble.
    My OS is:
    Mac OS X 10.5.5, running the latest Java 6, using NetBeans 6.5
    Is there any solution, or at least a workaround?
    Thanks in advance!
    Daniel
    Edited by: DnlLdck on Jan 29, 2009 6:23 AM

    Same thing happened to me, but I was trying to browse an URI which contains non-English characters. Haven't try it on Windows yet. Maybe it does not support non-English characters on Mac.

  • Open URL in default Browser java.awt.Desktop was working...

    I downloaded Net Beans 6.5 with JavaFX 1 and now java.awt.Desktop isn't even an option for the imports, is there an alternative method to open URLs from my application?

    No, you aren't wrong.
    It's, and I mean this with all due respect, idiotic.
    I found some code on the net that does the same thing:
    http://www.centerkey.com/java/browser/
    Just one class, very simple.
    But I really would like java.awt.Desktop to work, I want the system tray integration stuff.
    Questions about getting Java 1.6 compatibility (the reason why the import doesn't work) go unanswered. It seems there is some hard coded -target 1.5 in some part of the javafx compiler. I can't figure out how to change it.

  • Opening existing apps using java.awt.Desktop

    I want to display my html file using existing applications such as IE. How I can do this?
    My java version is 1.6 so the java.awt.Desktop is good for my reason?

            try {
                Desktop.getDesktop().open(new File("test.html"));
            } catch (IOException ex) {
                ex.printStackTrace();
            }

  • Calling Desktop.open() on avi/mp3/wmv/etc (media) files.

    Hello all,
    I am using the Desktop class to open files on the desktop in my signed applet. This is working perfectly for ppt, pps, doc, xls, txt, jpg, pdf files. However, for some reason I am unable to launch any media-type files using this method. I get errors such as "java.io.IOException: Failed to open file:/C:/Users/Bryan/Desktop/4542-sun/Butterfly.wmv. Error message: No application is associated with the specified file for this operation."
    However, there are indeed applications associated with these file types... namely Windows Media Player. Double-Clicking the file directly launches it in WMP as it should. I have been searching around high and low, and can't find much. Note the fact that it is trying to open a URI, starting with file:/. Originally it was just opening the location directly, but I tried using a URI instead to no avail.
    This has happened on 3 separate computers now.
    I have done a work around using Runtime.getRuntime().exec(). However, some of the filenames I am working with can possibly have asian and other UTF-8 characters. That causes a whole new issue, described in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4947220. I have no idea how to begin using JNI to directly call ShellExecute or if that is even possible from a signed applet standpoint.
    Does anyone have any idea how to fix the issue with Desktop.open() and media files?
    Thanks

    Ok I have searched and searched and found no reliable solution for either of the previous issues. Since this applet is run on a closed intranet, with no fear of malicious intent, I have gone for a different route.
    try {
         desktop.open(new File(fileToOpen.toURI()));
    } catch (Exception e) {
         window.call("launchFile", new Object[] { file.toString() });
    }When the call to Desktop.open() fails, I catch the exception and call a javascript function launchFile(), defined below.
    function launchFile(filename) {
            var o = new ActiveXObject("WScript.Shell");
            o.run(filename);
    }Of course, this limits us to IE ... but it is a necessary evil until Sun fixes the bugs in Desktop.open() and Runtime.exec().
    Hope this helps someone. Again, I still welcome other options.

  • OS X and Desktop.open()

    I use the following code to open an image with the default image viewer on Mac OS X.
    Runtime.getRuntime().exec(new String[]{"/usr/bin/open", data.directory + File.separatorChar + data.name});
    It works fine in development but as soon as I run it in a signed web start application, it only works if "Preview" (the default image app) is already open. No exceptions are thrown when it doesn't work.
    Interestingly, I have a "Show In Finder" option that uses a variation of the same command:
    Runtime.getRuntime().exec(new String[]{"/usr/bin/open", "-R", data.directory + File.separatorChar + data.name});
    It works every time regardless of whether I'm running in web start or not.
    I also tried using Desktop.open() and it behaves exactly the same way. This is on Mac OS X mountain lion with JDK 1.7u13.

    Back up all data.
    Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Java won't open in ie

    embedded microchip. using digi web browser appliance. using ie to contact ip address, gets to loading java script and
    get following:
    Java Plug-in 1.6.0_10-rc
    Using JRE version 1.6.0_10-rc Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\at220
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.tituslabs.monroe.applet.MonroeApplet.class not found.
    java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection
    failed:http://208.105.203.180/FS/WEB/com/tituslabs/monroe/applet/MonroeApplet/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    FOLLOWING ERROR FROM IE
    Java Plug-in 1.6.0_10-rc
    Using JRE version 1.6.0_10-rc Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\at220
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class com.tituslabs.monroe.applet.MonroeApplet.class not found.
    java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
    Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection
    failed:http://208.105.203.180/FS/WEB/com/tituslabs/monroe/applet/MonroeApplet/class.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException:
    com.tituslabs.monroe.applet.MonroeApplet.class
    Does this on two different computers. On other computers it works OK.
    Any idea how to approach problem besides learning Java programming.
    (Our programmer is not able to resolve problem.)

    The problem isn't on your end. It's the attempt to access the class "http://208.105.203.180/FS/WEB/com/tituslabs/monroe/applet/MonroeApplet/class.class". It looks to me like that URL is screwed up - it should be looking for the "MonroeApplet.class" file, not the "class.class" file. I recommend contacting Titus Labs support.
    ~

  • Java.io.IOException: open HTTP connection failed

    I got this error message when trying to load applets in a web page, with J2SDK_Forte:
    ==================================
    load: class myClass.class not found.
    java.lang.ClassNotFoundException: myClass.class
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:151)
         at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:189)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:112)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:478)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
         at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1621)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
         at sun.applet.AppletPanel.run(AppletPanel.java:290)
         at java.lang.Thread.run(Thread.java:536)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:224)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:40)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:141)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:138)
         ... 10 more
    ==================================
    The applet is in the same directory as the ASP. It is a NT 4 (SP6) server. The applets loaded and ran fine with jdk1.3. Do I need to do something different in my ASP, or IIS setup to allow java applet HTTP connection in JDK1.4?
    Thanks!

    I have the exact same problem but have yet to find a solution.
    It works fine in 1.3 but fails occasionally in 1.4. If I refresh the browser several times it eventually
    loads.
    Scott

  • Java Won't Open .Jars

    Every aspect of java works except opening .jars I've tried uninstalling and reinstalling it to no avail. I am running Windows 7 32 Bit. The manifest is right and the .jar is associated with java. When I double click on the .jar Javaw runs but it doesn't open the .jar application

    You need to provide more details. "Doesn't work" contains no information.
    What exactly happens when you double click the jar?
    Are .jar files associated with Java? There's a setting somewhere that tells Windows that .doc is to be opened by Word, .jar is to be opened by Java, etc.
    Have you confirmed that the jar has a proper MANIFEST with an appropriate Main-Class entry (or whatever that entry is--I forget)?
    If you created the jar from your own classes, have you confirmed that the application runs properly with the bare class files on the command line?

  • Failed to load applet ( Caused by: java.io.IOException: open HTTP connect )

    Sometimes this error occurs :
    load: class applet.OMcsAppletMeetMeConf...
    java.lang.ClassNotFoundException: applet.OMcsAppletMeetMeConf
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://192.168.73.101/mcs/applet/applet/OMcsAppletMeetMeConf.class
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 7 more
    Exception: java.lang.ClassNotFoundException: applet.OMcsAppletMeetMeConf This error occurs sometimes while applet load. In most cases program work normally
    I can not know the cause.
    plz.. help me..
    system info
    - java version : 1.6.0_17
    - browser : ie 8 (but this error also occurs to ie 7, ie 6)
    - html source is :
    <applet id="mm_app" alt="" codebase="/mcs/applet" code="applet.OMcsAppletMeetMeConf"
    width="800px" height="400px" archive="signedApplet.jar">
    </applet>

    namgung0718 wrote:
    Sometimes this error occurs :
    load: class applet.OMcsAppletMeetMeConf...
    java.lang.ClassNotFoundException: applet.OMcsAppletMeetMeConf
    Caused by: java.io.IOException: open HTTP connection failed:http://192.168.73.101/mcs/applet/applet/OMcsAppletMeetMeConf.class
    - html source is :
    <applet id="mm_app" alt="" codebase="/mcs/applet" code="applet.OMcsAppletMeetMeConf"
    width="800px" height="400px" archive="signedApplet.jar">
    </applet> As an aside. Since 'px' is the only valid unit for width and height, they should not be included in the applet element.
    ..This error occurs sometimes while applet load. In most cases program work normally
    I can not know the cause.That applet element combined with the address would imply the JRE was (first) looking for the applet at..
    [http://192.168.73.101/mcs/applet/signedApplet.jar]
    When I try that link in FF, I get the message..
    Network Timeout
    The server at 192.168.73.101 is taking too long to respond.
    plz.. help me..Please take the effort to spell all 6 letters of the word 'please'.

  • Java.io.IOExcetion :open HTTP Connection Failed

    Hi Everybody,
    I'm getting the java.io.IOExcetion :open HTTP Connection Failed error when I'm trying run a html page with an embedded Applet in it.
    We are having a proxy server and all our network traffic have to be done through proxy.
    But in Browser we give exemption to local host.
    When I run the html file outside JDeveloper keeping it in the same directory in which the Applets class file is : I'm getting the Applet running.
    But If I run the html page From JDeveloper , I'm getting the above said error.
    My JRE is configured to use Browser settings and the browser is set to use the proxy.
    Why are applets not able to connnect to the sever?
    How to make Jdeveloper connect to proxy?
    Thanking you for the answer?
    Samba

    Oh ! I thought i could change in my pc control panel settings for rectify the error (java.io.IOException: open HTTP connection failed.)..
    Ok now my name is displayed in forum..
    Which trigger i have to call when a form is loaded? (Instead of When-New-Form-Instance ).
    I am running samples which i downloaded from your website only.(A java input dialog box)
    Input Dialog box is not displayed?
    and also java.io.IOException: open HTTP connection failed error is displayed...

  • [Forms6i - PJC/BeanArea] java.io.IOException: open HTTP connection failed.

    Hi,
    I'm using a pjc on my forms but on runtime i received an error: open HTTP connection failed.
    The output of my java console is :
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = D:\documents and settings\OFV7600
    Proxy Configuration: Automatic Proxy Configuration
    JAR cache enabled
    Location: D:\documents and settings\OFV7600\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://do040001334/forms60java/f60all.jar from JAR cache
    Loading http://do040001334/hsd65-java/hst65.jar from JAR cache
    Loading http://do040001334/forms60java/classes12.jar.sig from JAR cache
    Loading http://do040001334/forms60java/cadtest.jar.sig from JAR cache
    Loading http://do040001334/forms60java/browser_jpkg.jar.sig from JAR cache
    Loading http://do040001334/forms60java/TutoFichier.jar.sig from JAR cache
    Loading http://do040001334/forms60java/stip.jar.sig from JAR cache
    Loading http://do040001334/forms60java/pkg_scroll.jar.sig from JAR cache
    Loading http://do040001334/forms60java/client.jar.sig from JAR cache
    Loading http://do040001334/forms60java/pkg_geosoft.jar.sig from JAR cache
    Loading http://do040001334/forms60java/cadtest20060320.jar.sig from JAR cache
    connectMode=Socket
    serverHost=DO040001334
    serverPort=9000
    Forms Applet version is : 60824
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Where is my problem ?
    How to resolve my problem ?
    Thanks

    thanks,
    I had do the classpath
    Now, I have another problem
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = D:\documents and settings\OFV7600
    Proxy Configuration: Automatic Proxy Configuration
    JAR cache enabled
    Location: D:\documents and settings\OFV7600\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://do040001334/forms60java/f60all.jar from JAR cache
    Loading http://do040001334/hsd65-java/hst65.jar from JAR cache
    Loading http://do040001334/forms60java/classes12.jar.sig from JAR cache
    Loading http://do040001334/forms60java/cadtest.jar.sig from JAR cache
    Loading http://do040001334/forms60java/browser_jpkg.jar.sig from JAR cache
    Loading http://do040001334/forms60java/TutoFichier.jar.sig from JAR cache
    Loading http://do040001334/forms60java/stip.jar.sig from JAR cache
    Loading http://do040001334/forms60java/pkg_scroll.jar.sig from JAR cache
    Loading http://do040001334/forms60java/client.jar.sig from JAR cache
    Loading http://do040001334/forms60java/pkg_geosoft.jar.sig from JAR cache
    Loading http://do040001334/forms60java/cadtest20060320.jar.sig from JAR cache
    connectMode=Socket
    serverHost=DO040001334
    serverPort=9000
    Forms Applet version is : 60824
    _____START CADViewerWrapper() constructor_____
    Running CADViewer 8.0.6d
    Exception =java.security.AccessControlException: access denied (java.io.FilePermission viewer.cfg read)
    java.security.AccessControlException: access denied (java.io.FilePermission viewer.cfg read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.io.File.isDirectory(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
         at com.cadviewer.be.a(Unknown Source)
         at com.cadviewer.be.do(Unknown Source)
         at com.cadviewer.e0.m(Unknown Source)
         at com.cadviewer.e0.a(Unknown Source)
         at com.cadviewer.ViewerAWT.<init>(Unknown Source)
         at cadtest20060320.CADViewerWrapper2.<init>(CADViewerWrapper2.java:78)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    url=file:/d:/acad_B/es/cat/STIP/Extract/410009.dwf
    url=file:/d:/acad_B/es/cat/STIP/Extract/410009.dwf
    Netscape security model is no longer supported.
    Please migrate to the Java 2 security model instead.
    Netscape security model is no longer supported.
    Please migrate to the Java 2 security model instead.
    protocol=file,fileURL.getHost()=,fileURL.getPort()=-1,fileURL.getFile()=/d:/acad_B/es/cat/STIP/Extract/410009.dwf
    FileToArray url=file:/d:/acad_B/es/cat/STIP/Extract/410009.dwf
    longName=dummy.dwf
    java.lang.NullPointerException
         at java.awt.Container.addImpl(Unknown Source)
         at java.awt.Container.add(Unknown Source)
         at cadtest20060320.CADViewerWrapper2.<init>(CADViewerWrapper2.java:84)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at oracle.forms.handler.UICommon.instantiate(Unknown Source)
         at oracle.forms.handler.UICommon.onCreate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
         at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    __START CadWrapper public void init
    __END CadWrapper public void init
    What about

Maybe you are looking for

  • How to restore or attach database

    Hi all, I had installed oracle 9.i on PC01 computer, then I created database is KT01 at C:\oracle\oracledata\KT01 path. Unfortunately, PC01 has died, but I didn't backup KT01 database. so I must install oracle 9.i on PC02 computer, and copy KT01 fold

  • Playstation 3 not connecting to PSN

    I've just moved from BT standard to Sky Fibre and since the move I cannot get my PS3 to connect to the playstation network. The main reason for upgrading was for better gaming!Anyone with any ideas?I've tried setting a static IP, changing channels an

  • Camera fail after update!

    after last device update the front facing camera is not working or being recognized

  • HT4914 Costs associated with iCloud

    I understand that I may purchase additional clod space if the 5 GB is not enough. I also understand that there is a subscription fee associated with the itunes match service. My question is If I am paying the subscription fee for the itunes match ser

  • MacBook Pro speaker scratchy and warbley sounding

    My MacBook Pro speaker has gotten all scratchy and warbley sounding. Have they "blown"? Is this covered in my 1-yr warranty? How is it likely to be resolved?