A simple Applet that doesn't work...
1. The class file is compiled without any problems
2. The html-file works. It's in the same directory.
But when I open the html-file I've this output
(Java Console InternetExplorer 5.5):
Error loading class: test
java.lang.NoClassDefFoundError
java.lang.ClassNotFoundException: test
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
In Netscape...(Java Console):
Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Symantec Java! ByteCode Compiler Version 210.065
Copyright (C) 1996-97 Symantec Corporation
# Applet exception: error: java.lang.ClassFormatError: Bad major version number
java.lang.ClassFormatError: Bad major version number
at java.lang.ClassLoader.defineClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.AppletClassLoader.findClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
* at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass
(Compiled Code)
at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)
at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
The code of the applet is:
import java.awt.*;
import java.applet.*;
public class test extends Applet {
String text = "error";
int x = 0;
int y = 20;
public synchronized void init() {
text = getParameter("text");
try {
x = Integer.parseInt(getParameter("x"));
y = Integer.parseInt(getParameter("y"));
} catch ( NumberFormatException ex ) {}
public synchronized void paint(Graphics g) {
g.setFont( new Font("TimesRoman", Font.BOLD+Font.ITALIC, 36));
g.drawString(text,x,y);
The HTML code is:
<html>
<body>
<applet code="test.class" width="300" height="300">
<param name="text" value="Browser Usage">
<param name="x" value="50">
<param name="y" value="50">
</applet>
</body>
</html>
Thanks!
works here,
http://www.geocities.com/rmlchan/test.html
use the same jdk and jre/plug-in for the browser.
Similar Messages
-
I've got a touch iPod and for about a week now it's almost been permenently zoomed into the screen? I actually cannot get it to zoom back out. I've tried pulling the screen out with my fingers but that doesn't work. It's zoomed in on my home pages, on my music, settings everything! It makes simple things like deleting a number from my password login extreamly differcult. Please can someone help?!?! Thanks.
Double tap the screen with three fingers to un-zoom.
Then go to Settings > General > Accessibility > Zoom and turn this OFF. -
[SOLVED]kdeplasma-applets-menubar doesn't work.
I've just installed the following applications:
kdeplasma-applets-menubar,
libdbusmenu,
libdbusmenu-qt,
appmenu-gtk,
appmenu-qt.
But kdeplasma-applets-menubar doesn't work on my KDE4.10. The menu still show in the window and the applet only has the onmipresent "File" menu.
Last edited by mert (2013-06-22 14:22:20)Go to 'System Settings' -> 'Application Appearance' -> 'Style' -> 'Fine Tuning' and change 'Menubar style' to 'Only export'. Just checked, works fine with qt applications.
I'm not sure about gtk apps, though. I recall reading somewhere that, in addition to installing appmenu-gtk and its dependencies, one needed to specify something in the .gtkrc and/or .config/gtk-3.0/settings.ini file(s). Well that or my memory might just be playing tricks on me.
EDIT:
If for some reason gtk apps refuse to export their menus, you might want to look at this webupd8 article. Good luck!
Last edited by andy_v (2013-06-22 12:36:50) -
Report an app that doesn't work
Can someone please tell me how to report an app that doesn't work and get a refund?
The app won't allow feedback (as soon as you type anything the "Submit" button is disabled) and the link for its support goes to a web site that appears to be totally unrelated.
The "Report a problem" link on iTunes just takes me to the generic support page with a 1000 links to various forums etc. That's for nothing Apple.
I can provide more details but I don't even know if this is the right place yet.
Now maybe it's just me being a newbie with this whole Apps/iPad thing but it is NOT a user-friendly system IMO.
RobExpress Lane is indeed how you contact the iTunes Store. The page I provided the link to is the one you reach when you click "Contact Support" in the sidebar.
Is there no simple way to immediately cancel an order if you realize in the first fifteen minutes that it is not working as expected?
There is no way to cancel an order at all, not within fifteen minutes, not within fifteen seconds. Once you click the "buy" button, you've purchased the item, and the Terms of Sale for the iTunes Store state clearly that "all sales are final". So if you are requesting a refund, you have to email the iTunes Store via the form you reach through Express Lane, explain the reasons for the request and hope that iTunes Store Customer Service will grant you an exception.
Regards. -
Export PDF converts filled PDF form without the data - Turns filled PDF form onto blank Word doc. Is there a solution to this or did Adobe just sell me a service that doesn't work?
ExportPDF is not for forms. In general, converting forms to Word is a really, really bad idea which can even cause legal problems. Work with the form as a PDF. Acrobat (not Reader) can export form data as simple text for example.
-
I can't seem to get my iMac (late 2009 model) into automatic sleep mode. If I manually put it into sleep I don't have any issues.
I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion. I now want to fix the underlying problem.
I'm not running any weird background processes and in my energy saver settings I've tagged "put the hard disk to sleep when possible:, "allow power button to put computer to sleep" and "automatically reduce brigthness". All pretty standard.
Is there anyone who can give me some pointers ?Today I solved the same problem for my iMac running Snow Leopard. See https://discussions.apple.com/thread/3008791#15947706. The method may help you, too.
For me it was the DynDNS Updater preventing my iMac from automatically entering sleep mode.
To my knowledge the cause of this sleep problem can only be a peripheral device or a process. So I suggest to first unplug all peripherals and test whether that's the cause. If not, I suggest to terminate one process after another and to test automatic entering of sleep mode after each. Start with user processes; continue with system process if necessary.
At least that's the way I found the offending process. Fortunately, I was able to change the configuration of that process to allow again automatic entering of sleep mode.
Good luck! -
My screensaver seems to be freezing and I can't access Safari. I've tried restarting/shutting down and that doesn't work. Any ideas to help?
Which OS X is installed on your Mac ?
Click the Apple () menu top left in your screen. From the drop down menu click About This Mac. The version is noted there.
Troubleshooting advice can depend on that information. -
Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared. That doesn't work anymore. How do you turn off the apps with ios7
Now you swipe downward, the app will appear and you delete, keep scolling to the right as in the past. With the new operating system you also swipe downward to get the search bar to find an app
-
I'm not able to copy and paste files from my mac to hard disk and usb. I have tried dragging the items I want to copy to those devices but it won't work. I also have tried copying and pasting those files onto those devices too but that doesn't work too. Can any one help?
Hi BobRz
Thanks for you suggestion but it didn't work - are there other ways for solving this problem? Or is it because my files that I want to copy and paste onto my hard disk etc are too big? (However there is space on my hard disk and it works on a PC) -
Can I get refund for in-app purchase that doesn't work?
I bought a "no ads" in-app purchase for a game. At first the ads were removed. After a few software updates, the ads come back.
When I asked for a refund, apple refers me to the developer's web site. When I go to the web site, there is no way to ask for support.
Have you ever paid for an in-app purchase that doesn't work? What is the recourse?If you haven't gotten a refund from iTunes Store before, you might be able to. Get in contact with support to see:
http://www.apple.com/emea/support/itunes/contact.html -
i am trying to complete a form but can't get to the final drop down question as it is not displayed because it falls below where my screen ends. i have tried changing the resolution but that doesn't work. any suggestions?
brilliant
google chrome works where safari doesn't on my macbook air. many thanks
i now have an embarrassing qu. have dowloaded spider solitaire (sad!) and i can't add cards at the bottom of a column for the same reason - the display cuts short. i have tried to extend it with the arrows in the bottom corners but it makes no difference. any ideas? -
Yosemite will not upload on my MacPro, says I have to verify or repair, but when I do - it fails on that too. Am now stuck with a computer that doesn't work ! Have I lost everything ?
Hello BassoonPlayer,
Since you are using one of the the school's Macbooks, it is quite possible that the time and date are not properly set on the computer that you are using. FaceTime will not work if you do not have the proper time zone set up for the location that you are in. This past week, there were a two other Macbook users I've helped by simply telling them to set the Date/Time properly. By the way, you described your problem very well, which makes it easier for us to help you. Hope this solves your problem -- if not, post back and I can suggest other remedies.
Wuz -
I have 3 macs. 2 are Lion, but 1 I left Snow leopard so I can access data from my old Quicken Application that doesn't work with Lion. If I move to iCloud, will I no longer be able to access my MobileMe email on the Snow Leopard mac?
What version of word do you have? The TS3938 sounds like it's a PowerPC app- written for an old architecture that is no longer supported in Lion. If this is the case, your files are fine- you just need a newer version of word that will run in Lion in order to open them. The newest version (2011) should be readily available anywhere, and has worked fine for me ever since I switched to Lion on release day....
-
When I sync my iphone with Windows 7, the contact moves to my computer, but the contact is not complete. No phone numbers. What am I doing wrong? I have also tried sync-ing with Yahoo, and that doesn't work either.
The music sync is one way - computer to iphone. The only exception is itunes purchases. File>Transfer Purchases
It has always been very basic to always maintain a backup copy of your computer for just such an occasion. Use your backup copy to move everything to your new computer. -
Can anyone help me display the calendar list using an iphone4 with iso 7.1.1? I have already tried tapping the magnifying glass and that doesn't work.
That icon allows for the calendar month to display with the appts for that month below. I want to see only the list of appointments without the month displaying. I use to be able to get that display but since the last update tapping the magnifiying glass doesn't work.
Maybe you are looking for
-
Suddenly some of the characters in mail have turned into 'A's with boxes around them?
I don't think I changed any settings, but suddenly some of the characters in my emails received have utrned into 'A's with boxes around them. A think the characters that have changed are in italics (see pic below). Any suggestions what has gone wrong
-
hi, i want to create query just like cash flow report. but i dont get balance in my query. i have requred balance check out my query. SELECT T1.refdate as 'Reference Date', T2.duedate as 'DueDate', T1.MEM
-
Hello all... I seemed to have done something very bad to my iMac. When I start it up 3 images flash repeatedly and there is no way for me to start any work on my computer. The 3 images that flash are the apple logo, a prohibited symbol, and the fil
-
Debugging RFC-call in ERP-system
Hi experts, I've a similar problem as decribed Values for FM structure not delivered as expected - but the opposite direction: we send data from PI, which received a FTP-file, to ERP by RFC-Function. last week we enhanced the output structure for t
-
can anyone gimme the song list played before the keynote at wwdc 14. i heard those songs while streaming the wwdc 14 video.