?
Solved

Download JAR applet

Posted on 2004-09-17
4
Medium Priority
?
913 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 800 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
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 add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
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…
Suggested Courses

801 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