Results 1 to 5 of 5
- 07-05-2010, 07:47 PM #1
Member
- Join Date
- May 2010
- Location
- Poland-Silesia
- Posts
- 15
- Rep Power
- 0
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
- 07-05-2010, 08:55 PM #2
Do you get any error messages in the browser's Java Console?the applet doesn't print at al
What versions of the browsers and the jre are you using?
- 07-05-2010, 09:13 PM #3
Member
- Join Date
- May 2010
- Location
- Poland-Silesia
- Posts
- 15
- Rep Power
- 0
Hi
There is no errors in web browser's console. I use windows 7 with IE 8.
- 07-05-2010, 10:22 PM #4
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.
- 07-06-2010, 08:22 AM #5
Member
- Join Date
- May 2010
- Location
- Poland-Silesia
- Posts
- 15
- Rep Power
- 0
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
-
Java SE Service
By appdevman in forum New To JavaReplies: 2Last Post: 06-23-2010, 05:08 PM -
Java Applets
By kevinnrobert in forum Java AppletsReplies: 1Last Post: 04-02-2010, 01:16 PM -
Where do applets print to?
By IamKira in forum Java AppletsReplies: 0Last Post: 01-30-2010, 08:47 AM -
how to call service method inside another service
By kirtichopra2003 in forum Web FrameworksReplies: 1Last Post: 10-24-2009, 02:19 AM -
Print Service
By Unite in forum Advanced JavaReplies: 0Last Post: 01-14-2009, 09:20 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks