applet

What is the best mechanism for testing applets?

余生长醉 提交于 2020-01-03 08:06:07
问题 I'm trying to effectively build a functional test suite for an applet, and I'm trying to find a good framework for it. In the past, when I wanted to design a test suite that would serve as both functional and load testing on an application, it has always been a web-based application, or at least some kind of service-based application, and I've used something like grinder to build up test scripts and use them to simulate users. With a Java applet, it's not clear to me what, if any, mechanism

Signed Java Applet Throws Security Exception on Connect to a Webservice

南笙酒味 提交于 2020-01-03 02:57:20
问题 I have an java applet running on tomcat 5.5. It is signed ( -selfcert). I still get an java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader) Exception, when my Applet tries to connect to a webservice (already in this line): ws_locator = new My_WebserviceLocator(ws_adress + "?wsdl", new javax.xml.namespace.QName("http://impl.webservice", "My_Webservice")); Since there are some similar questions here, an i read them: Yes, the applet is signed. I

Avoid server calls for loose resources that do not exist

十年热恋 提交于 2020-01-02 23:05:07
问题 I'm developing an applet application which is compiled on Java 1.5 (compatible with 1.5+). It contains some resource property files that are bundled together in the same jar, which lies parallel to the Java package. Whenever I access that resource file through applet it makes a request to server from where the applet is been downloaded. After that it reads the files from the jar and works as it used to be but I don't want it to make server request for those files. This is how my java code

Unsigned applet socket JavaScript

北慕城南 提交于 2020-01-02 20:59:46
问题 With Java 1.6.0.22 i'm not able to open a socket to localhost, the applet is unsigned and is being loaded from the webserver http://localhost/myapplet If i load it from my computer ip 192.168.1.x and open a socket to that ip it works With a simple demo that only open a socket it works, but as soon as my applet use JavaScript to Java calls the socket not work. If I add a crossdomain.xml file the socket works again. If I allow only 127.0.0.1 it doesn't work With 1.6.0.17 it works fine That is

Why does Java 7 fail to Verify after successful JRE installation - Java 7 not running my any browser

蹲街弑〆低调 提交于 2020-01-02 04:08:09
问题 This question was dogging me for a few days until I found almost a full answer but I want to share the issue first: ISSUE I have a Windows 7 pro 64 bit laptop that supports both IPv4 and IPv6 (important later) I downloaded and installed the latest Java 7 u 51 jre / browser plugin and would always get a grey applet box before it would eventually redirect and say "failed to verify" if java was installed. I am also a java developer and had a few JDKs installed as well as jres. Thinking it was my

Java applet won't run under JRE7, no error displayed in console

放肆的年华 提交于 2020-01-01 14:59:14
问题 Under Windows 7, 64-bit, since upgrading to JRE-7 32-bit, under IE9 32-bit or Chrome, I can't run applets such as this one. Inside the Applet rectangle, I see the message "Error. Click for details" Clicking on the applet box (blank) leads to a dialogue box: Application Error DrawingLines.class There was an error while executing the application. Click "Details" for more information. Clicking "Details" button opens the Java console, but there are no errors, just Java Plug-in 10.3.0.5 Using JRE

Is there any plugin framework for Java Applets?

删除回忆录丶 提交于 2020-01-01 10:52:10
问题 We have a large Java application that run as applet or Java Web Start. And it grow more and more. Typical a user need only a small part of the classes. Because Java does not know which class can it found in which jar file that it load all jar files until it find the class. If it will load a class that not exist (for example a resource bundle) then it load all jar files. This reduce the start time on a small bandwidth very large. Is there a small framework with which we can load the plugins

Alternative of NPAPI plugins for Flash / Java Applet

☆樱花仙子☆ 提交于 2020-01-01 09:19:32
问题 My question is regarding chrome announcement of Not supporting the NPAPI plugins post December, 2014. Firefox is also following the same. I have a NPAPI based plugin in one of my legacy application and that was doing well till now but after announcements from chrome and Firefox I am looking for alternative. I want to ask from experts that : What could be alternative options for NPAPI ? For new Option, do I need to write some fresh component or Can I make some wrapper around My plugin and use

JCWDE : Exception from install() method

余生颓废 提交于 2020-01-01 07:22:17
问题 I am working on JavaCard and I developed an applet with JCDE on Eclipse: import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISO7816; import javacard.framework.ISOException; import javacard.framework.Util; import javacardx.framework.math.BigNumber; import javacard.security.CryptoException; import javacard.security.MessageDigest; public class SignatureGPS extends Applet { public static final byte CLA = (byte) 0xB0; public static final byte INS = (byte)

Applet - Unable to write file

那年仲夏 提交于 2019-12-31 05:17:10
问题 I'm trying to write sample file from applet but is not working. Below is the code. Applet public class PasteImageApplet extends JApplet { Clipboard clipboard; Toolkit toolkit; JLabel lbl; public String getClipboardImageURL(String server) { lbl.setText("pasting image"); String url = ""; try { DataFlavor dataFlavor = DataFlavor.imageFlavor; System.out.println(dataFlavor.getDefaultRepresentationClass()); Object object = null; try { object = clipboard.getContents(null) .getTransferData(dataFlavor