When I renamed the class file to Audiodriver.cla ss and changed the link to Audiodriver.cla ss, the game wouldn't load. I got this error - java.lang.NoClassDefFoundError: Audiodriver (wrong name: Driver)
-
at java.lang.ClassLoader.defineClass1(Native Method)
-
at java.lang.ClassLoader.defineClass(Unknown Source)
-
at java.security.SecureClassLoader.defineClass(Unknown Source)
-
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)
-
Exception in thread "Thread-417" java.lang.NullPointerException
-
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
-
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
-
at sun.applet.AppletPanel.runLoader(Unknown Source)
-
at sun.applet.AppletPanel.run(Unknown Source)
-
at java.lang.Thread.run(Unknown Source)
-
java.lang.NullPointerException
-
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
-
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
-
at sun.applet.AppletPanel.run(Unknown Source)
-
at java.lang.Thread.run(Unknown Source)
-
The applet html code, with everything in the same folder.
[HTML]<applet width="400" height="300" name="Audiodriv er" code="Audiodriv er.class"></applet>[/HTML]
Also, the images do NOT reflect the image file. I see connectfour sign instead of a 'we can do it' sign. I use a cPanel interface, whose cache may be part of the problem.
All files, images are in the same folder, which each version of the game having a separate folder.
Part of the java source code is: - import java.awt.image.*;
-
-
public void init()
-
{
-
resize(400, 300);
-
zoom = new double[26];
-
for (int t=0;t<25;t++) {
-
zoom[t] = 200.0/(t+1)-8;
-
}
-
offscreenImage = createImage(400,300);
-
offscreenGraphics =offscreenImage.getGraphics();
-
cracked=getImage(getCodeBase(),"cracked.gif");
-
cars[0][0]=getImage(getCodeBase(),"car1f.gif");
-
cars[0][1]=getImage(getCodeBase(),"car1b.gif");
-
cars[1][0]=getImage(getCodeBase(),"car2f.gif");
-
cars[1][1]=getImage(getCodeBase(),"car2b.gif");
-
cars[2][0]=getImage(getCodeBase(),"car3f.gif");
-
cars[2][1]=getImage(getCodeBase(),"car3b.gif");
-
signs[0]=getImage(getCodeBase(),"banner1.gif");
-
signs[1]=getImage(getCodeBase(),"banner2.gif");
-
signs[2]=getImage(getCodeBase(),"banner3.gif");
-
tree=getImage(getCodeBase(),"tree1.gif");
-
bush=getImage(getCodeBase(),"tree2.gif");
-
post=getImage(getCodeBase(),"post.gif");
-
backdrop = createImage(800,600);
-
drawBG(backdrop.getGraphics());
Any clues as to what is going on?
Thanks!
3 1705
I tried rezipping the philip folder from my harddrive, with the original class and java file and uploading it with the correct images. I extracted the contents in to cPanel. The game won't even work. It just says Applet Driver started. cPanel uses a Linux operating system. Could this be part of the problem? Do I need to find host that has better Java support? Or, am I just grasping at straws trying to figure out my issue. Thanks!
(It turns out that I do not have to upload the images in to Java. Another issue is causing them to not work. I found this out when I got my new site, and the game did work with 1 original image, one new image, the connect four image I only uploaded to see what was going on, as that image was very large.) I was trying to recreate the 'new site' happening but with the images I actually wanted, but failed.
The issue was partially resolved. The real problem is I am on a linux server without the specific java program that are on the server that I would need. I'd have to find a windows server host. With that in mind, why does everyone think Java is so good? It can't be that good, if it is cross-browser compliant, but only works on Windows servers.
Any thoughts? Corrections? Thanks!
Actually, the problem is Java code for a palm pilot and not for a web browser!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: D. Alvarado |
last post by:
Hello, I am running PHP 4 on my Fedora Core 2 dev machine, Apache
1.31. I made a
lot of calls to $_SERVER. Unfortunately, when I move
my application to a Windows environment, running on an IIS web server,
the variable $_SERVER is no longer supported (I
always get an empty string).
Question: What is a cross-web server way of finding the path to the
document root -- the path to the public html folder?
|
by: Jean-Francois Brault |
last post by:
I wrote a crappy class for radian angle management. The class consists
of an array of radian values. I put all these things in a class in
which all methods are static, so I can access it anywhere in my code
(I could have made a library instead of a class).
I can't find out why g++ compiles fine, but does not link correctly
the following code. Here, I am posting my full code, .h and .cpp just
to make all things clear.
The linker output...
|
by: Kunle Odutola |
last post by:
Prototype.js is here: http://prototype.conio.net/
|
by: Jacques Cooper |
last post by:
Hello,
How do I upload a disk file using HTML?
For example, many job boards allow you to upload
your resume to their site.
Thanks,
Jacques
|
by: Edward Mitchell |
last post by:
I am trying to include two class files into a web service project. The
structure I have is a top level solution and project in a folder and below
that, the web service project in it's own folder. In the top level folder I
have two class files, classA.cs and classB.cs.
In the web service project, I use Add>Existing Item... and browse to select
the files in the parent directory. Unfortunately, when I hit the Open
button in the file...
| |
by: Bruce One |
last post by:
I have seen there is only one type of association, and as u link 2 classes it
automatically creates a property referencing to the other class. Well, does
this cover all relationship between 2 classes (e.g. employee x department,
customer x order etc) ?
If so why then UML has 2 classical dif types of associations (aggregations
and compositions) ?
Could someone help me please on this topic?
Thanks a lot.
|
by: John Nagle |
last post by:
In M2Crypto/m2urllib there is this:
import string, sys, urllib
from urllib import *
def open_https(self, url, data=None, ssl_context=None):
...
# Minor brain surgery.
URLopener.open_https = open_https
|
by: Hongyu |
last post by:
Hi,
I am a newbie in C++. I saw a code like the below and don't understand
it.
class A
{
public:
A();
|
by: praveenb000 |
last post by:
Hi, every one on this forum....
I am new to web designing (using HTML/CSS). i designed a web page using HTML, Css with dream weaver. Here is the code i used for the desinging.
it appears well in IE 6 browser but not in Mozilla 4.0 some components are disappears.
This is the whole code i used for designing this page and i also given css files coding.(except images)
i don't know how to upload my files in this site(forum). So i am...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |