Problem signing a Java Applet
Hey, folks!
I am trying to sign a Java Applet that uses a File object and Download object in it. After following Game_Master's instructions on how to sign a Java Applet, I downloaded and installed "java_ee_sdk-6u2-jdk-windows.exe".
I went through the process of creating a key and creating a signed iteration of my Java Applet without any problems.
However, when I try to test the signed Java Applet on my local computer through an HTML file, I get a Java message that states "Cannot run a Java Web Start application in standard mode."
What am I doing wrong here?
Thank you for your help!
Most appreciatively...
RGBreality
Re: Problem signing a Java Applet
Are you trying to open the JAR file instead of the HTML file?
EDIT: And you should build a Java Internet Applet, not Web Start.
Re: Problem signing a Java Applet
Hey, Jamie! Thanks for your reply!
I am indeed trying to open the JAR file via an HTML file (and not the JAR file directly). I took the MMF2-produced HTML file and edited the name of the signed JAR file.
And I am indeed producing a Java Internet Applet.
I would upload the MFA file to MFArepository, but I can't seem to upload to it presently.
RGBreality
Re: Problem signing a Java Applet
There is always the File Archive here on the forums that you could upload to.
Marv
Re: Problem signing a Java Applet
Hey, Nivram!
I'm afraid that my MFA file is just a tad larger than 1 MB, so I can't upload it to the File Archive forum.
Let me see if I can share my MFA this way:
MFA File In Which Its Digitally Signed JAR Output Cannot Be Viewed
Thanks for your help, as always!
Most appreciatively...
RGBreality
Re: Problem signing a Java Applet
I'm afraid I'm still having problems being able to open a signed JAR file originally produced from MMF2.
Could it be something wrong I've set up inside the MFA file? It seems that I am able to produce a signed JAR file without problems, so I'm at a loss.
Thank you for your assistance, as always!
Most graciously...
RGBreality
Re: Problem signing a Java Applet
Have you tried to follow the method describe in MMF documentation? (section distributing / Java).
One never knows, it might work.
Re: Problem signing a Java Applet
Hey, Francois!
Actually, producing the JAR file isn't the problem, nor is it signing it (following the post in this forum how to do so). Once the JAR has been signed, I cannot open it via the JAR's HTML file.
RGBreality
Re: Problem signing a Java Applet
What error message do you get?
Just a question : do you use the window control object in your application? It is not compatible with Applets...
Re: Problem signing a Java Applet
Hey, Francois!
No, I don't use the Window Control object. (I found that when I first tried using one, the unsigned JAR file wouldn't open.)
Just to reiterate, I am able to successfully produce an unsigned JAR file from MMF2 (and view it), as well as use Sun's JDK to produce a signed JAR file. However, it is the signed JAR file I cannot open.
The error message I get is "Cannot run Java Web Start application in Standard mode." However, in MMF2, I am developing a Stand-Alone Java Internet Applet (not a Stand-Alone Web Start).
Here is a download link to the MFA file: Download
And here is a download link to the signed JAR file I cannot open: Download
Thanks again for your help, Francois! I really appreciate it!
RGBreality