Solved

Java.lang error

Posted on 2002-07-02
8
465 Views
Last Modified: 2008-01-09
I keep getting the following error message and can't seem to work around it

"Applet Main error: java.lang.NoClassDefFoundError: jdownload class"



WIN XP  using
Java(TM) Plug-in: Version 1.4.0_01
Using JRE version 1.4.0_01-ea Java HotSpot(TM) Client VM
Proxy Configuration: No proxy
load: class jdownload.class not found.

java.lang.ClassNotFoundException: jdownload.class

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

     at sun.plugin.security.PluginClassLoader.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)

Caused by: java.io.IOException: open HTTP connection failed.

     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)

     ... 11 more

 Any suggestions
0
Comment
Question by:waynen59
8 Comments
 
LVL 92

Expert Comment

by:objects
ID: 7125554
Is the jdownload class available to your applet?
0
 
LVL 1

Expert Comment

by:manshan
ID: 7125829
your applet is not able to find the java class file jdownload.class. try doing as below:

<applet ....... codebase="<path of the directory where ur applet n jdownload.class files exist>">
</applet>

hope this helps...
0
 
LVL 3

Expert Comment

by:yasser_helmy
ID: 7126415
When the applet loads it needs to find the jdownload class, but it cant find it. Try to make the jdownload.class file available to the applet by putting the path to the class files in the codebase section of the applet tag.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:waynen59
ID: 7126510
The file jdownload.class  nor classes.zip don't appear to be on my system... I also get Java Script errors on some pages I visit....
Without removing and reinstalling Win XP how do I get this problem fixed
When I go to add remove section I notice I have the following installed
Java 2 Runtime environment SE 1.3.1_02...17.8 meg
Java 2 Runtime ......         1.4.0-01    1.72 meg
Java Web Start                            1.84 meg
Java Script Menu Master 2.0                .7  meg

0
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 7128289
By the sounds of it the jdownload.class should be on the server your loading the applet from not your computer.
Is this your applet, or one on the web?
If its on the web, whats the url?
0
 

Expert Comment

by:Pawar
ID: 7129077
See I am telling you a simple procedure
If you are using an Applet with web pages using <applet > tag.

1. place you jdownload.class file at the location where your webpage is store.

2. if you are using some more java package then copy all java package at the location where your webpage is store.

3. write applet tag like

<applet name = "XXX" code=appletclassname >
</applet>

4. open webpage with your browser like htttp://localhost:8080/.......
0
 
LVL 35

Expert Comment

by:girionis
ID: 8893809
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:

- points to objects

Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

girionis
Cleanup Volunteer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 30
oracle 11g 23 107
table example 4 32
java jdbc batch example 8 41
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

830 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