Search:

Type: Posts; User: StevenTNorris

Search: Search took 0.17 seconds.

  1. Replies
    2
    Views
    784

    Open file from JAR

    I have a program that opens a pdf file using AWT's desktop.open(); It works fine when running from Eclipse, but when exported to a jar file,the pdf will not open. Ideas?
  2. Replies
    11
    Views
    1,405

    Re: AWT Desktop Open

    Strange, there's no %20 space replace in Linux? Well, the replace still shouldn't cause an issue so it's still cross-platform at least. :)
  3. Replies
    11
    Views
    1,405

    Re: AWT Desktop Open

    Solved it. I was so used to seeing special character code I didn't notice it at first. The ClassLoader.getSystemResource(path).getFile() was replacing all spaces with %20. I'm assuming this is a URL...
  4. Replies
    11
    Views
    1,405

    Re: AWT Desktop Open

    the filename is coming back null from ClassLoader.getSystemResource. I modified the code to the below to pinpoint the exact null reference.
  5. Replies
    11
    Views
    1,405

    Re: AWT Desktop Open

    Thanks Tjstretch. Now I"m getting a new error on the same line, null pointer reference. I'm not sure where this would be coming from, unless somehow the Desktop is returning null. I haven't used the...
  6. Replies
    11
    Views
    1,405

    Re: AWT Desktop Open

    I'd really like to have a PDF open instead of a text. How would I go about making that work?
  7. Replies
    11
    Views
    1,405

    AWT Desktop Open

    I'm attempting to open a pdf help file on button click. However I get the "File not found" error on button click. None of the JOptionPanes show, leading me to below it isn't even catching the error....
Results 1 to 7 of 7