Results 1 to 4 of 4
  1. #1
    Dogwood is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default Java App (.jar file) Runs on PC but Won't Run on a Mac

    Hi. I'm learning that cross-platform compatibility of jar files is great in theory but not 100% in reality. We have a java app that downloads from a website (not run through the browser) and runs fine on my PC but doesn't work on a Mac (10.6.8). The latest java is installed on both machines. Is there a list of the most common errors, or differences between the two, or a way to troubleshoot the process? The purpose of the app is to do "silent printing." Thanks.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Java App (.jar file) Runs on PC but Won't Run on a Mac

    1. Is this an Applet you have programmed, or just one you're trying to use?
    2. It doesn't really tell us anything when you say "doesn't work." Are there any errors shown in the Java console?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Dogwood is offline Member
    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Default Re: Java App (.jar file) Runs on PC but Won't Run on a Mac

    1. It's an applet created/written by my developer. I'm the website owner.
    2. What happens is that the image doesn't print, so the center of the page is blank, but the text--the header and footer--do print. The two files are supposed to be written to one object, and as I say it does work on Windows. For the image part we have a high quality PDF renderer. Regarding Java console--is there a way to run that not in the browser? I may not be computer literate enough, but that doesn't appear to show anything. When I do a test run (through a test page set up on the site) the console only seems to be engaged until I download the file to my desktop. From there when I run it, that seems to be outside the purview of the console. It doesn't "comment" from that point on. The other issue is that the text, the header and footer which do print, are shifted upward so that header is right near the edge of the page and the footer is up too high. In Windows both margins are the same size, i.e. the text is vertically centered.

    Edit: It's up to me to detect errors on Mac in Java console. My WD uses a PC and it works fine for him.
    Last edited by Dogwood; 11-12-2012 at 08:47 AM.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default Re: Java App (.jar file) Runs on PC but Won't Run on a Mac

    Quote Originally Posted by Dogwood View Post
    1. It's an applet created/written by my developer.
    So, it should be the responsibility of that developer to solve any problems. If he's puzzled, he could create an account here and ask for help.

    There isn't really very much help we could offer to someone who isn't aware of/familiar with the programming of the Applet.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Netbeans runs better than compiled file
    By bodyady in forum Advanced Java
    Replies: 1
    Last Post: 10-23-2012, 11:24 AM
  2. Java that runs like a .bat?
    By Dark in forum New To Java
    Replies: 7
    Last Post: 04-16-2011, 06:42 PM
  3. Jar file wont run but runs in netbeans
    By ArmenBaba in forum NetBeans
    Replies: 14
    Last Post: 08-24-2010, 06:04 PM
  4. Replies: 0
    Last Post: 10-04-2009, 03:47 PM
  5. Opening file, runs in NetBeans but CommandPrompt
    By fauzilhaqqi in forum NetBeans
    Replies: 2
    Last Post: 12-15-2008, 04:48 AM

Tags for this Thread

Posting Permissions

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