Solved

Download JAR applet

Posted on 2004-09-17
4
848 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to Import and export files in WordPress. 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 : Click on Too…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now