applet

Weird problem using sun.security.pkcs11.SunPKCS11: The specified procedure could not be found?

。_饼干妹妹 提交于 2019-12-24 01:04:04
问题 I'm developing this application to be used speceifically with Firefox (it's for internal use). Basically, we're using the sun.security stuff to read Firefox's KeyStore and sign data with the certs we get. I've tested this on several machines and the results are varying, I can't seem to pinpoint the reason. I've tested it on the latest ubuntu release, Firefox 3.6.13, using Java version 1.6.0_22, it works there. I also have a Windows XP laptop with the same Firefox version using Java version 1

How to pass image from Applet to JSF backing bean

╄→гoц情女王★ 提交于 2019-12-24 00:35:22
问题 I am working with a web application in which there is a Java Applet that captures an image from a wacom device into a RenderedImage object. The applet itself is embedded into a JSF 2.0 page. I need to pass the created RenderedImage from Applet to a JSF backing bean so that it would be a part of a User object. My backing bean is view scoped. I'm really lost with this. I've been searching for a good example on how this goal can be achieved. Should I use JSObject , or should I send an image to a

Binding applet parameters with angularJS

十年热恋 提交于 2019-12-24 00:34:15
问题 I need to pass a dynamic param to an applet. This is my controller: 'use strict'; angular.module('jworkApp') .controller('AppletCtrl',['$scope', function (scope) { scope.base64 = "abcd"; }]); This is my view, the parameter base64 is defined in the controller as "abcd" <p>{{base64}}</p> <APPLET> <PARAM name="text" value={{base64}} /> </APPLET> When I run my page I see in the p tag the string 'abcd' , but the applet param's value it's simply "{{base64}}". How could i fix it? 回答1: I solved

Java applet java.security.AccessControlException

北城余情 提交于 2019-12-24 00:18:37
问题 I'm working on an Java applet that prints a file. The applet is "self-signed". The print function is: //argFilePath : path to file (http://localhost/Teste/pdf1.pdf) //argPrintService : something like PrintServiceLookup.lookupDefaultPrintService() private int print(String argFilePath, PrintService argPrintService){ try { DocPrintJob printJob = argPrintService.createPrintJob(); Doc doc; DocAttributeSet docAttrSet = new HashDocAttributeSet(); PrintRequestAttributeSet printReqAttr = new

What is the “next generation plugin” for Java

為{幸葍}努か 提交于 2019-12-23 23:14:50
问题 What is the "next generation plugin" for Java and how is it different from the classic plugin? Strangely, there is only one generic plugin on Mac OS X, so is this distinction only on Windows, or does linux also have two plugins? I also noticed that Firefox is only telling me to update the classic plugin, so I must wonder how different the two plugins are if only one can be compromised. Or else Firefox is making a mistake, and they're both vulnerable. I am also interested if this distinction

ClassNotFoundException only if JAR is signed

↘锁芯ラ 提交于 2019-12-23 22:35:04
问题 It is a conundrum! I have an applet in a JAR. When JAR is signed - be it self-signed or with a DigiCert sertificate - I get a ClassNotFoundException on the main applet class. When I don't sign the applet, it loads just fine - (not counting the expected SecurityException due to the code not being signed). But I can unpack the signed JAR and find everything to be where it is supposed to be. The strangest part is that up until last week the set-up worked just fine. Same main class, self-signed,

Just trying to write data to a serial port from a Java Applet?

拟墨画扇 提交于 2019-12-23 21:50:47
问题 I've been tearing my hair out for several days now trying to figure out just why the heck this never seems to work! First off, here is my config: Windows 7 x64 JDK 7 x86 JRE 7 x86 Firefox x86 Rails 3 served by Thin Java settings are such that the "next generation plugin" isn't active (but it keeps reactivating itself somehow!!!) At first I tried RXTX but I kept on getting "no class found" errors. I've now moved on to winjcom. The error I'm now getting is this: java.security

Linux (Ubuntu) Java plugin and console

此生再无相见时 提交于 2019-12-23 20:07:44
问题 I'm trying to test a Java applet in Firefox in Ubuntu 10.10. Unfortunately it doesn't work out of the box. I have two issues: By default the IcedTea plugin was used, which I don't trust. I installed sun-java6-plugin but have no idea which one is used by Firefox (and other browsers) now. How can I make sure? Fixed this by simply removing icedtea. I have no console. It's usually accessible via a tray icon in Windows, but not here ( maybe this will automatically be fixed by #1 though No it wasn

Using a session with php and Java

纵然是瞬间 提交于 2019-12-23 17:57:18
问题 I'm currently trying to use the current session of a php web page from an applet. I tought it would be straightforward, but it didn't go as smooth as I tough. From the php man: session_start() creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie. From there I did some php (simplified here): // PAGE1.PHP session_start(); $_SESSION['test'] = true; echo "sid=" . session_id(); // PAGE2.PHP session_start(); if ($

Unknown publishers applet browser, Signing jar

半腔热情 提交于 2019-12-23 17:56:36
问题 i can't understand where problem lies to run applet in browser when deploy my project accordind to http://docs.oracle.com/javase/tutorial/deployment/applet/deployingApplet.html http://www.coderanch.com/t/258307/Applets/java/Signing-JAR-certificate jar manifest code Permissions: all-permisisons Application-Name:------------ Butt still error in browser Unknown publishers Security warning ExceptionInInitializerError AccessControlException is problem to signing jar of my project? i use 3rd party