Results 1 to 5 of 5
  1. #1
    lipkerson is offline Member
    Join Date
    May 2010
    Location
    Poland-Silesia
    Posts
    17
    Rep Power
    0

    Default Java print service and Applets (IE)

    Hi

    I got a strange problem. I use Java print service to send to printer data that are in byte array.The application is applet-it is not signed so JVM asks every time if I really want to send data to printer.It is ok to me- It's all working fine and the printing methods are excellent.
    There were excellent until i discovered that they perfectly working on windows that is in "administrator mode".
    If the user is common and I use Internet explorer the applet doesn't print at all.
    It's strange becouse in Firefox it's always working fine.

    I thought that it is a java.policy problem so I added

    grant {
    // Permission to print without confirmation questions:
    permission java.lang.RuntimePermission "queuePrintJob";
    };

    but it is a way to avoid problem with asking by JVM if the applet is trustworthy and it's not solving my problem at all.

    THX

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    the applet doesn't print at al
    Do you get any error messages in the browser's Java Console?

    What versions of the browsers and the jre are you using?

  3. #3
    lipkerson is offline Member
    Join Date
    May 2010
    Location
    Poland-Silesia
    Posts
    17
    Rep Power
    0

    Default

    Hi

    There is no errors in web browser's console. I use windows 7 with IE 8.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,305
    Rep Power
    25

    Default

    No ideas about Win7.
    What version of the jre?

    I'm interested because I've had a problem with permission differences between different browsers for years. Mine problem is an applet trying to read files on my disks. It works in older browsers like Mozilla and Netscape but not current ones like FF, IE8 or Chrome.
    I've asked the question on Sun's site and on the JavaRanch site. No luck getting the answer yet.

  5. #5
    lipkerson is offline Member
    Join Date
    May 2010
    Location
    Poland-Silesia
    Posts
    17
    Rep Power
    0

    Default

    I use JRE6U20.

    And for the reading files from disk: i use standart reading methods in signed applet and it works ok. The bytes from file are read correctly and with no exceptions in any browsrer (maybe except Chrom but my problem is maybe in the way writing some stuff in user temp dir).

    What kind of methods do You use to read bytes in files?
    Have You tried to lunch applets from applet viewer i.e. in netbeans the defoult way to see the applet is by lunching it in applet viewer? I write this becouse the problem might be much more trivial then issues with permissions etc.

Similar Threads

  1. Java SE Service
    By appdevman in forum New To Java
    Replies: 2
    Last Post: 06-23-2010, 05:08 PM
  2. Java Applets
    By kevinnrobert in forum Java Applets
    Replies: 1
    Last Post: 04-02-2010, 01:16 PM
  3. Where do applets print to?
    By IamKira in forum Java Applets
    Replies: 0
    Last Post: 01-30-2010, 08:47 AM
  4. how to call service method inside another service
    By kirtichopra2003 in forum Web Frameworks
    Replies: 1
    Last Post: 10-24-2009, 02:19 AM
  5. Print Service
    By Unite in forum Advanced Java
    Replies: 0
    Last Post: 01-14-2009, 09:20 AM

Posting Permissions

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