Results 1 to 6 of 6

Thread: Jdic

  1. #1
    Join Date
    May 2007
    Beans
    45

    Jdic

    Hi,

    I am trying to use this library for loading a web page from within my java application. However I cant seem to get it working. When i try running the app it gives the following exception:

    org.jdesktop.jdic.init.JdicInitException: org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!
    at org.jdesktop.jdic.init.JdicManager.initBrowserNati ve(Unknown Source)
    at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unkn own Source)
    at Browser.jbInit(Browser.java:173)
    at Browser.<init>(Browser.java:69)
    at Browser.main(Browser.java:85)
    Caused by: org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!
    ... 5 more

    I also get the same exception when I try running the demo.

    Am using version 0.9.4 of the library and there doesnt seem to be any function allowing me to set the path.
    Any ideas on what i might be doing wrong?

  2. #2
    Join Date
    May 2007
    Beans
    45

    Re: Jdic

    Also if there might be another way of doing this please point me towards that. Any help would be greatly appreciated!!

  3. #3
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Lightbulb Re: Jdic

    Hint: Often you get usable answers when just putting the error message into quotation marks and using google.

    So in this case you could have googled for:
    Code:
    "org.jdesktop.jdic.init.JdicInitException: Can't locate the native browser path!"
    (make sure to remove all parts that might refer to your own code).

    As a result, you get: http://forums.java.net/jive/thread.j...ssageID=254969 which contains the answer.

  4. #4
    Join Date
    May 2007
    Beans
    45

    Re: Jdic

    Thanks! Tried what the thread said.. Got rid of the exception but its still not working... This time I get:

    *** Jtrace: Executing /home/abasit/Desktop/jdic/mozembed-linux-gtk2
    *** Jtrace: connecting ... 0
    *** Jtrace: java.net.ConnectException: Connection refused
    *** Jtrace: connecting ... 1
    *** Jtrace: connected
    *** Jtrace: Got event: type = 0 instance = 0
    *** Jtrace: send data to socket: 0,0,</html><body></html>
    *** Jtrace: Got event: type = 1 instance = 0
    *** Jtrace: send data to socket: 0,1,46137361</html><body></html>
    *** Jtrace: Exception occured when portListening: Connection reset by peer

    tried googling it as you said but that didnt result in any helpful results...

    ideas?

  5. #5
    Join Date
    May 2007
    Beans
    45

    Re: Jdic

    Right... so it seems that JDIC has a bug, so it does not support firefox. Any ideas on how i could go about doing this some other way. What I want to do is embed a web browser within my appliation, so i can load/display web pages.

  6. #6
    Join Date
    Jan 2006
    Beans
    961

    Re: Jdic

    looks like the browser has simply closed the connection .. nothing wrong with that, just deal with it on your end..

    ..handle the exception(s), and you should be ok AFAICT

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •