Solved

Download JAR applet

Posted on 2004-09-17
4
876 Views
Last Modified: 2010-04-07
Hi,

I have created a simple applet - 3 class file as long as an html to invoke it, which seems to work fine. I am now working on the download part, I was able to download the 3 class file and 1 html locally and run from there successfully, but I hope to JAR 3 class file and distribute the JAR along with the HTML. However I had problem after I downloaded the JAR and HTML, "ERror notinit applet". I did some research and found out the JAR has to be signed in order for somebody to use it. Do I have to do it?

I donot want to use ZIP to distribute it since it will require user has WINZIP installed.

Thanks
Pat
0
Comment
Question by:pwang1973
  • 3
4 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 200 total points
ID: 12092492
The signing requirment is necessary to protect users and the networks users are on.  If you are not prepared to work within normal security requirments, then don't development componnents that hae a potential to deliver malicious content.

If you want to do thing right this page fromt eh sin site should help work through the security issues:

http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/development.html

Cd&
0
 

Author Comment

by:pwang1973
ID: 12105150
Thanks for the reply,

howver after I download the .jar and the startup.html, I got a error the applet not inited, it seems that it cannot access the class in the jar file, after I download the class file, everything seems fine. What's happening?

Thanks
Pat
0
 

Author Comment

by:pwang1973
ID: 12106242
Attached the error msg, I put the jar into the same directory of the HTML, however it cannot find.
===============================

load: class SpreadSheet.class not found.

java.lang.ClassNotFoundException: SpreadSheet.class

      at sun.applet.AppletClassLoader.findClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.applet.AppletClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.applet.AppletClassLoader.loadCode(Unknown Source)

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

      at sun.plugin.AppletViewer.createApplet(Unknown Source)

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

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

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

Author Comment

by:pwang1973
ID: 12106661
Caused by: java.io.FileNotFoundException: d:\ucdg_estim\SpreadSheet\class.class (The system cannot find the path specified)

      at java.io.FileInputStream.open(Native Method)

      at java.io.FileInputStream.<init>(Unknown Source)

      at java.io.FileInputStream.<init>(Unknown Source)

      at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)

      at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)

      at sun.applet.AppletClassLoader.getBytes(Unknown Source)

      at sun.applet.AppletClassLoader.access$100(Unknown Source)

      at sun.applet.AppletClassLoader$1.run(Unknown Source)

      at java.security.AccessController.doPrivileged(Native Method)
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question