7 Replies Latest reply: Nov 3, 2011 12:19 PM by 888525 RSS

    package org.jdesktop.jdic.browser does not exists

    888525
      I am geting error
      'package org.jdesktop.jdic.browser does not exists' after moving to JDK 1.6_27 from 1.5_06
      Which jar file do i have to add for this error to go away?
      Can anyone helpme with the file name and path to download from?

      Thanks
        • 1. Re: package org.jdesktop.jdic.browser does not exists
          gimbal2
          Since Java 6 the Desktop API was added, which is basically the JDIC API. Here is the javadoc:

          http://download.oracle.com/javase/6/docs/api/java/awt/Desktop.html

          I would use that in stead of JDIC now that you moved to Java 6.

          Note that JDIC is not a standard library in Java 5 so to make your application compile using it you should already have the external JDIC jar somewhere and put it on the classpath. That is the most confusing part of your question!
          • 2. Re: package org.jdesktop.jdic.browser does not exists
            888525
            Thanks for the reply.I will refer the doc and try implementing
            • 3. Re: package org.jdesktop.jdic.browser does not exists
              888525
              Thanks for the reply.I have moved to java 6 now and I dont want to use JDIC as no documentaion or download is available .
              Is there any alternative for jdic web browser in Java 6.
              Earlier in Java 5 I was using the below code to embedd the browser in the jpanel

              org.jdesktop.jdic.Webbrowser webbrowser=new WebBrowser
              webBrowser.seturl(pdfUrl)
              Jpanel testPanel=new jPanel();
              jpanel.add(webBrowser,BorderLayout.CENTER)
              here pdfURl is the url of a pdf file which I want to open in browser which is embed in jpanel.

              How can I do the same thing without the webbrowser.
              I read the java.awt.desktop browse method but it opens in a new window ,how can I embedd it in the jpanel?

              Please help.
              • 4. Re: package org.jdesktop.jdic.browser does not exists
                888525
                Any help please.With the desktop api ,the file opens in a browser.I want the file to be inside a jpanel.
                desktop api has no method available to browse or open a file in a jpanel i.e I cannot add the desktop to a jpanel.
                • 5. Re: package org.jdesktop.jdic.browser does not exists
                  gimbal2
                  I would consider other options if I were you. Not only have you been fruitlessly bumping this thread for over a month now, but I did a search for jdic downloads as well and and it is really nowhere to be found. I'm afraid this is one of the casualties of the Sun to Oracle transition.
                  • 6. Re: package org.jdesktop.jdic.browser does not exists
                    888525
                    Thanks for the reply.I have been looking for other options also available but I dont find any options that would replace the
                    webbrowser of jdic in Java 1.6.
                    If you have any suggestions for other options please share.
                    One alternative i found was java.awt.desktop api but thta doesnt help me to add my pdf or file in a panel.It would just browse the url in a default browser.

                    Thanks,
                    • 7. Re: package org.jdesktop.jdic.browser does not exists
                      888525
                      I searched and found there are options available as
                      jpedal,
                      pdfrenderer
                      icepdf

                      I am confused in deciding which one to choose to work with Java 1.6.My requirement is only to display the already generated pdf files
                      in a swing jpanel.
                      Please can anyone help me in deciding which one to choose.I want to use a free library and dont want to pay.

                      please help.

                      Thanks,