Sorry to ask such a basic question, but...

I have just started trying to learn Java, and am having problems getting the first tutorial applet to work in some html! Sorry to have to post this, and am hoping that the answer is not something excruciatingly obvious which is going to make me hang up my Java hat before I have even started, but I really really would appreciate some help on this as I am baffled!
I have created the Java code file called "HelloWorld.java" (code below), and then I have compiled this (creating file "HelloWorld.class") with "javac" command at command prompt, and then created an html file "Hello.htm" (code below).
My applet works fine with the "appletviewer" command from the command prompt, but when I open my html file in Internet Explorer, all I get is a grey box where the applet should be, and the error message "load: class HelloWorld not found". The class file is in the same directory as the html file, I have even tried doing the "set classpath=" command at the command prompt.
If anyone can tell me what I am doing wrong I would be very grateful!!! Thanks a lot.
"HelloWorld.java" file content:-
import java.applet.*;
import java.awt.*;
public class HelloWorld extends Applet {
public void paint(Graphics g) {
g.drawString("Hello world!", 50, 25);
"Hello.htm" file content:-
<HTML>
<HEAD>
<TITLE> A Simple Program </TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE="HelloWorld.class" WIDTH=300 HEIGHT=100>
</APPLET>
</BODY>
</HTML>

Seems like your browser is using the wrong JVM to run the applet... check in your internet explorer options (under the Advanced tab) that you are using Sun Java and make sure you're not using the Microsoft VM. If this doesnt work, go to http://www.java.com and click on "Get it now" to download the latest java plugin from Sun.
Hope this helps :)
-Mr K

Similar Messages

  • Sorry for such a basic question

    Hi
    Sorry for such a basic question.
    I have been given the challenge to learn after effect (CS4), it appears to lag loads and take a hour to render (a 10sec composition).
    Is the laptop I have been 'given' not really recommended for after effects, yes the program runs and works albeit very slowly, and appears to tick all the boxes on the minimum requirements.
    Acer Aspire 5745
    Processor         Intel i3 CPU M350 @2.27GHz
    Memory            4.00 GB ( 3.68)
    System               64-bit
    Running on Windows 7 Home Premium
    Is it a reasonable request to ask for something better?
    Thanks

    First, welcome to AE. 
    Most people here think of using the software as journey, and not something that can be totally mastered.  That's an important differentiation from most applications, no? 
    Another important differentiation: knowing the basics is the key to doing the impressive-looking stuff in AE.  There is a formidable number of little details to learn at the beginning which will relieve dead ends and frustration later.  If you start at the beginning, you actually progress faster later on.  Here's a good starting point:
    http://blogs.adobe.com/toddkopriva/2010/01/getting-started-with-after-eff.html
    Don't overlook the links within; they're valuable.  Other good learning resources can be found at videocopilot.net (free), plus Total Training ($$$).
    To answer your question directly, I'd say yes:  it IS reasonable to ask for something better.  AE is a RAM hog, and in AE-Land, 4 gigs is almost nothing.  If you must have a laptop, make sure it's filled up with memory.  Serious AE power users would advise forsaking laptops altogether and going with a desktop machine.
    To ease your task in the interim, I would do a few things:
    Got multiprocessing (aka Render Multiple Frames Simultaneously) turned on?  Turn it off and keep it off.
    Got Open GL turned on to accelerate rendering?  Turn it off and leave it off.
    Got any footage in a project from a consumer camera, XDCam, HDV cam, helmet-cam or DSLR?  Use a different application than AE to convert them into LOSSLESS footage.  The files will be huge; that's life in AE-Land.

  • Possibly a very basic question but I have set up a spread sheet in Numbers and have viewed help videos but I can't get it to give me sums for the columns I highlight.  Keeps coming up with the figure zero.  I have version 09 2.3(554). Can anyone help

    Possibly a very basic question but I am going nowhere without a solution.  I have set up a spreadsheet in Numbers but it won't give me sums for chosen columns. I  have viewed the run through videos and used the formula but nothing happens apart from giving a figure of zero or a red arrow.  The sum icon in the bottom left hand section of the window does not highlight or show any total as I understand from the video that you can drag whatever total is here onto the relevent position on your spreadsheet.  I have Numbers 09 version 2.3 (554). Can anyone advise. Thanks.

    Hi Sohojools,
    To sum a column, use a formula such as this one in Cell A6
    Type this in a cell below your data:
    =SUM(A2:A4) or whatever range of cells you want to sum. The easy way is to type:
    =SUM(
    and then drag or shift-click to select the range of cells. Close the formula with a final bracket ")".
    The sum icon in the bottom left hand section of the window does not highlight or show any total
    To see the sum (and other simple statistics) in the bottom left, select a range of cells. That tells Numbers which cells you are refering to.
    The videos are good, but the Numbers'09 User guide, and the Formulas and Functions User Guide are better. Download them from the Help Menu in Numbers.
    Regards,
    Ian.

  • HT1848 Forgive such a basic question, it's easier than looking it up.  I have my iTunes music on macbook pro and have only synced it to one iPod.  I want to buy a new iPod and want to know will I be able to sync my music from computer to new iPod at no ch

    Forgive such a basic question, it's easier than looking it up.  I have my iTunes music on macbook pro and have only synced it to one iPod.  I want to buy a new iPod and want to know will I be able to sync my music from computer to new iPod at no charge?

    will I be able to sync my music from computer to new iPod at no charge?
    Yes, you will.

  • My mum can't access her account. It says its locked and asked for her security questions, but she can't remember what they are. How do we access her account?

    My mum can't access her account. It says its locked and asked for her security questions, but she can't remember what they are. How do we access her account?

    Hi sarahmcmast3r,
    If you are having issues accessing an account and can't remember the security question answers, you may find the following article helpful:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    Regards,
    - Brenden

  • Hi i need help please . when i want to buy app from store ask me the security question but i forgot the answer  so i need to the link to rest answer of security question

    hi
    i need help please . when i want to buy app from store ask me the security question
    but i forgot the answer
    so i need to the link to rest answer of security question

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • I cannot purchase anything at the itunes store because I am being ask for my security questions, but I don't remember them. How do you change you security questions with out knowing them?

    I cannot purchase anything at the itunes store because I am being ask for my security questions, but I don't remember the answers. I tried going to appleied.apple.com but I won't allow me to change my security answerswithout answering the original questions. How do you change you security questions with out knowing them? I need help.

    Welcome to the Apple Community.
    Start here, and reset your security questions, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help or you don't have a rescue address, you might try contacting Apple through iTunes Store Support

  • How do I select a square brush for the brush tool in CS6?  Sorry if this is a simple question, but nothing has ever been simple for me in Photoshop.

    How do I select a square brush for the brush tool in CS6?  Sorry if this is a simple question, but nothing has ever been simple for me in Photoshop.

    I don't believe there is a square brush among the sets that ship with Photoshop, but there are plenty to download, and it is super easy to make one.
    Just drag with the rectangular Marquee tool, fill with black on a new layer, and go Edit > Define brush preset
    Browsing Photoshop Brushes on DeviantArt

  • When I go to buy an app that isn't free it asks for my security question but I don't know what my security question is so I go to change it and it said it will send the info to this email that I don't even have. What do I do?

    When I go to buy an app that isn't free it asks for my security question but I don't know what my security question is so I go to change it and it said it will send the info to this email that I don't even have. What do I do?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hi Winterwilly,
    Welcome to Apple Support Communities. 
    The article linked below answers your question of how to use QuickTime to record something on your MacBook Pro’s screen.
    QuickTime Player 10.x: Record your computer’s screen
    Cheers,
    -Jason

  • HT5699 I can't remember the answers to my Apple ID security questions. 1 Reply Latest reply : by alexbird I have I money in my apple I'd and when tried to purchase Apps asking me two security question but I am not remember the answer so I need your help

    I can't remember the answers to my Apple ID security questions.
    1 Reply Latest reply : by alexbird I have I money in my apple I'd and when tried to purchase Apps asking me two security question but I am not remember the answer so I need your help

    Hello there, Subhi.sa.
    Just wanted to second Niel's recommendation. Additionally this Knowledge Base article also provides some steps you can take yourself if you don't remember your security questions:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    What should I do if I don't remember the answers to my Apple ID security questions?
    Try answering them at least once to see if you can get them right, even if you are not sure you remember the answers to your security questions.
    If you are confident you can't remember them, try one of the following:
    If you have three security questions and a rescue email addresssign in to My Apple ID and select the Password and Security tab to send an email to your rescue email address to reset your security questions and answers. 
    If you have one security question and you know your Apple ID passwordsign in to My Apple ID and select the Password and Security tab to reset your security question.
    If you have one security question, but don't remember your Apple ID passwordcontact Apple Support for assistance. Learn more about creating a temporary support PIN to help Apple confirm your identity when you contact Apple Support.
    Note: If you have forgotten your password and answer your security questions incorrectly too many times in a row, you will be unable to try to answer your security questions for a period of time. During that time you will not be able to reset your password and will not have access to your account.
    Thanks for reaching out to us on the Apple Support Communities.
    Cheers,
    Pedro D.

  • I need to by apps but it keeps asking for my security questions ;/ but  forgot the answers to my security questions and the security/rescue email too (i dont have USA number to call please help me and send my rest to my email

    I need to by apps but it keeps asking for my security questions ;/ but  forgot the answers to my security questions and the security/rescue email too (i dont have USA number to call please help me and send my rest to my email

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (115668)

  • HT5312 I have problem that I have never provide rescue email during my first registration. Now I want to buy Apps from apps store I've been asked to answer security question but I forget the answer. What should I do? And now my ID is freeze for 8hours.

    I have problem that I have never provide rescue email during my first registration. Now I want to buy Apps from apps store I've been asked to answer security question but I forget the answer. What should I do? And now my ID is freeze for 8hours.

    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps : https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57

  • I just got a new laptop, and when i went to go and buy something it asked me to verify my account because this was my first purchase on here. it asked me the security questions but i dont remember exactly what i put. Now my account is disabled. now what?

    I just got a new laptop and when i went to go and buy something, it asked for some security question answers cause this was my first time buying on this computer. When i went to go type in the (so what I thought) correct answers, it said they were wrong. After numerous tries, it disabled my account. How do I get the answers sent to my email so i can start using my itunes again?

    Go to item 12 in the AppleID FAQ for help with a disabled account.
    You can also go to the AppleID support page and click manage your account for additional help.

  • How can I search the forum for the questions that I have asked in the past. Sorry, this may be a stupid question but I am new here

    Just was asking how do I browse through the forum, here, to see my questions and answers and other question and answers.
    Thanks

    https://support.mozilla.org/en-US/search?a=1&asked_by=gifropan&sortby=1&w=2
    Click on your username under your avatar in this thread. <br />
    https://support.mozilla.org/en-US/user/834634 <br />
    Then click on the "2 questions" hyperlink under '''Contributions''' on that page.
    You can also acces that page via your username at the top of the first "answers" page, under "View Profile".

Maybe you are looking for

  • New iTunes for managing apps

    Dislaimer: I am NOT an experience iTunes user! Question: How do I see my devices in a way I can manage the apps on them in the new iTunes? Background: I updated my iTunes yesterday to 11.01.12, the "new, even better" one. I understand it makes my mus

  • Foreign Trade Declarations Step 5 - AP Invoices aren't reported

    Hi Experts, I hope you're all well.  I'm hoping you can help me with an Intrastat issue I have please. I have noticed that AP Invoice transactions only appear in Step 6 of the Foreign Trade Declarations report if I populated AP Invoice VAT Code with

  • Minimize and Maximize are missing

    I now have 2 users who have been using Acrobat version 7.1 for at least a year each and for some reason the minimize and maximize buttons have disappeared.  They are visible on the main program window but they are not visible on the file window.  I h

  • Finder is not correctly reporting available disk space

    finder is not correctly reporting available disk space my drive is 50% full but finder shows there is only @ 35% left the difference is more than anything needed by the system any ideas on what is causing the problem?

  • Desktop Picture Changing Time

    Do any of you know if there's a way to set the desktop picture to change slower than 30 seconds but faster than 5 minutes? Is there a script or terminal command out there that will work?