Signing Failure ,help me

What is wrong?

Do I need create file migsuncert.crt in advance. Thanks

C:\Program Files\Java\jdk1.6.0_01\bin>keytool -genkey -keyalg rsa -alias migkey

Enter keystore password:

What is your first and last name?

[Unknown]: Michel Gallant

What is the name of your organizational unit?

[Unknown]: Home

What is the name of your organization?

[Unknown]: JavaDevelopment

What is the name of your City or Locality?

[Unknown]: Ottawa

What is the name of your State or Province?

[Unknown]: ON

What is the two-letter country codeforthis unit?

[Unknown]: CA

Is CN=Michel, OU=Home, O=JavaDevelopment, L=Ottawa, ST=ON, C=CA correct?

[no]: y

Enter key passwordfor <migkey>

(RETURNif same as keystore password):

C:\Program Files\Java\jdk1.6.0_01\bin>keytool -export -alias migkey -file migsuncert.crt

Enter keystore password:

keytool error: java.io.FileNotFoundException: migsuncert.crt (Access is denied)

C:\Program Files\Java\jdk1.6.0_01\bin>

[1219 byte] By [ardmorea] at [2007-11-27 11:27:32]
# 1

Seems you don't have write access inside the C:\Program Files\Java\jdk1.6.0_01\bin directory. Try to export the cert to somewhere else, like

keytool -export -alias migkey -file c:\temp\migsuncert.crt

wangwja at 2007-7-29 16:16:45 > top of Java-index,Security,Signed Applets...
# 2

[nobr]I self-signed successfully and created a JAR file. When I open the web page, getting error message from Java console, why?

Java Plug-in 1.5.0_12

Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM

User home directory = C:\Documents and Settings\Hy

-

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

p:reload proxy configuration

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 <n>

-

**Error: larger_plotdata.bin (The system cannot find the file specified)

java.lang.reflect.InvocationTargetException

at java.awt.EventQueue.invokeAndWait(Unknown Source)

at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)

at Combox.init(Combox.java:52)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NullPointerException

at javax.swing.DefaultComboBoxModel.<init>(Unknown Source)

at javax.swing.JComboBox.<init>(Unknown Source)

at Combox.initComponents(Combox.java:70)

at Combox.access$000(Combox.java:24)

at Combox$1.run(Combox.java:54)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

I followed the instruction of NetBeans IDE to create the JAR file.

In the main menu, choose Build > Build Main Project (F11) to build the main project. Alternately, you can click the Build button in the toolbar.

In the main menu, choose Build > Clean and Build Main Project (Shift-F11) to clean and build the main project. Alternately, you can click the Clean & Build button in the toolbar.

In the Projects window, right-click the project node and choose Build Project to build the project.

In the Projects window, right-click the project and choose Clean Project to clean the project.

In the Projects window, right-click the package and choose Compile Package (F9) to compile a package.

In the Projects window, right-click the file and choose Compile File (F9) to compile a file. Alternatively, choose Build > Compile File (F9). Note that if you are using a free-form project, this command is disabled by default. You have to write an Ant target for compiling the currently selected file in the IDE and map it to the Compile File command.

and the files structure is

-...TestCell4.4(root folder)

|

+--build(folder)

|

+--dist(folder)

|

|--+-javac(folder)

|

|-TestCell4.4.jar

| |

| |META-INF

| ||

| ||--MANIFEST.MF

| |

| +-BinaryFile.class

| |

| +-Combox.class

| |

| |-TestCell.class

|

|--+nbproject(folder)

|

|--+src(folder)

|

|--+test(folder)

|

|--build.xml

|

|--large_plotdata.bin

|

|--manifest.mf

My html code is

<html>

<title>SCALE 5 TRITON/NEWT</title>

<head>

</head>

<body >

<applet code = "Combox.class" archive="TestCell4.4.jar" width ="800" height = "800" >

<br>

<br>

</html>

Thanks for any hint.[/nobr]

ardmorea at 2007-7-29 16:16:45 > top of Java-index,Security,Signed Applets...
# 3

This does not look like a security issue. Do you see the same error when the jar is not signed? If so, please post in the Swing (or Applet) forum for help.

wangwja at 2007-7-29 16:16:45 > top of Java-index,Security,Signed Applets...