English 中文(简体)
在使用Sockets时,将Java JApplet列入超文本
原标题:Embedding Java JApplet in HTML page when using Sockets

我在等待并读到一个超文本页上。 当我把袖珍连接从 app类中删除,并在超文本页上测试 app,但当我把袖珍连接重新贴在平级档案中时, app的 t和 Java的ole光似乎没有任何痕迹。 我确信,这是安全原因,因为Im使用袖珍连接,因此,我确实创建了一个经签名的杰尔档案,并将它放在 app子上:

<APPLET codebase="classes" archive="captureaudio/AppletTest.jar" code="captureaudio/AppletTest.class" width=350 height=200></APPLET>

但是,创建这一签名并没有奏效。

有些人能够帮助我这样做?

UPDATED

针对Andrew Thompson

  1. No im not prompted to accept digital signed code
  2. No the applet im currently testing is locally
  3. Yes the applet is trying to connect back to the server, ther server is running locally
  4. Im not sure the java console isnt showing me any exceptions.

HOW I CREATED THE SIGNED JAR FILE

我的宝石名称空间是 capture。 果树类

At cmd prompt, where teh class file is located:

  1. 你们需要使用钥匙。 在这里,我想到的是,如何为复印件(www.xinotes.org/notes/note/434/)制作一个焦仓签名。

  2. jar -cfulut 试验.jar Apple

  3. >jarsigner AppletTest.jar MyCert Warning: This jar contains entries whose signer certificate will expire within six months

4.>jarsigner -verification -verbose -certs Applet

s k 153 Thu 10 11:28:38 BST 2011 META-INF/MANIFEST.MF

  X.509, CN=xxxxx, OU=None, O=None, L=xxxxx, ST=xxxxx, C=GB (myce

rt) [certificate will expire on 10/01/12 20:55]

     315 Thu Oct 13 11:28:40 BST 2011 META-INF/MYCERT.SF
    1352 Thu Oct 13 11:28:40 BST 2011 META-INF/MYCERT.RSA
       0 Thu Oct 13 11:28:10 BST 2011 META-INF/

smk 11015 Thu Oct 13 10:49:08 BST 2011 Applet

  X.509, CN=xxxxxx, OU=None, O=None, L=xxxxxxxx, ST=xxxxx, C=GB (myce

rt) [certificate will expire on 10/01/12 20:55]

s = signature was verified m = entry is listed in manifest k = at least one certificate was found in keystore i = at least one certificate was found in identity scope

经核实。

JAVA CONSOLE

Java Plug-in 10.0.0.147 Using JRE version 1.7.0-b147 Java HotSpot(TM) Client VM

User home directory = C:Usersxxxxxxx

c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache

0-5: set trace level to

从boot室发现:C:PROGRA~1Javajre7libdeploy.jar

UPDATE

激光测距

 web root> 
------AppletTest.jar
------classes>
-----------captureaudio>
---------------------AppletTest.class    
问题回答

利用 Java网络发射议定书。 这是散发你的正确途径。 是的,必须加以签署,以获取袖珍功能。

http://en.wikipedia.org/wiki/Java_Web_Start#Java_Network_Launching_Protocol_.28JNLP.29 http://www.oracle.com/technetwork/articles/javase/jnlp-142088.html





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签