A helloworld java applet that will work on an html file

I have spent a lot of time trying to get a java applet to work on a web page. Of course, I can download zip packages and they will work. But I can?t seem to find a formula for creating something simple that will work.
All the examples that I have found will either work on Windows when running it on the command line, or work in Netbeans, but none of them will work when I put time into an html file on a linux web server.
Can someone post, maybe the simplest code that will output ?Hello world? on a Linux Apache Web server.
I have the gist for creating and programming java? as least a basic start. But I?m anxious to see an example that I can compile that will actually display on an html file and not just my Windows programming environment.
Thanks in advance for any feedback on this.
-- L. James
L. D. James
[email protected]
www.apollo3.com/~ljames

AndrewThompson64 wrote:
apollothethird wrote:
I have spent a lot of time trying to get a java applet to work on a web page. Of course, I can download zip packages and they will work.Does that somehow relate to this problem? What exactly does a Zip 'package' do when it 'works'?It displays the text on the web page.
>
.. But I can’t seem to find a formula for creating something simple that will work.
All the examples that I have found will either work on Windows when running it on the command line, or work in Netbeans, but none of them will work when I put time into an html file on a linux web server.
Can someone post, maybe the simplest code that will output “Hello world” on a Linux Apache Web server.
Is that a question? Please make sure to add a question mark.
// <applet code='HelloWorldApplet' width='400' height='300'></applet>
import javax.swing.*;
public class HelloWorldApplet extends JApplet {
public void init() {
add(new JLabel("Hello World!"));
validate();
I have the gist for creating and programming java&#133; as least a basic start. ... Applets are not for newbies. Leave them alone for at least another 6 months.Thanks, Andrew. The lines of text you provided were very enlightening. I was able to do a lot of dissecting and experimenting and have the full gist of my question answered. I don?t have any problems outputting either text on the console or text on browsers.
-- L. James
L. D. James

Similar Messages

  • I am trying to use an education program that needs Java applets to install and use and it will not use Safari. When I download IE from the web it will not install. How can I get a browser that will work on my MacAir for travel use of this program?

    I am trying to use and education program that needs Java applets and it will not run on Safari. IE will not install from the web. How do I get a browser that will work to install so I can use this program when I travel.

    Try using FireFox. IE will only run on a Mac if you run Windows on the Mac.
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • Java applets that worked fine under 10.6 don't work under 10.7. What can I do to correct this?

    Java applets that worked just fine are no longer working after upgrading to MacOS X 10.7 (Lion).  Here is one example: 
    So far, I've found two Java Applets that have become inoperative under 10.7.  Here's one example: http://www.vimas.com/videoLarge.php
    I did download and install the Java  VM for Lion and I did "activate" the applet when prompted to do so.  However, the example  cited above fails to load.
    A second example is  JFileUpload which enables a drag & drop UI with which to upload files.  Worked great under 10.6 but under 10.7 dropping a file on the UI only causes the web browser to display the file, not upload it.

    @etresoft: "You have old cache files left over from you Snow Leopard Java installation. Just run the Jave Preferences application and delete your cache files."
    I did that right off but this is not the issue and that tactic didn't work.  Apple has acknowledged the issue and the workaround (extract the applet from the web page) seems to suggest that Safari is at fault.  Safari 5.2 was just released today but, unfortunately, doesn't correct this issue.
    In the case of the applet that I use most often (JFileUpload), it also has a File menu so I use that instead.  Nonetheless, I sure do miss drag & drop.  As more and more of our Mac users upgrade to Lion and bump into this issue, we expect our  support effort to be challenged with an increasing number of irate users.  It doesn't help to be able to say "It's Apple's Fault" but that's all we can say.

  • Can't find a java script that will close browser window

    I went through the archives and found several java scripts
    for closing browser windows. Unfortunately none of the work. If I
    find one that will work on a Mac - Safari then it won't work on a
    PC - IE. I downloaded and installed that extension but cannot find
    it on my Mac menus. Running MX2004 on a Mac.
    Here are the codes I've tried and a example page:
    <a href="#" onClick="window.close()">close
    window</a>
    <a href="javascript:window.close();">{YOUR TEXT
    HERE}</a>
    <a href="javascript:window.close()">Click here to close
    this
    window</a>
    <a href="javascript:self.close();"> close window
    </a>
    Here's an example of a non working page:
    [removed to protect the company]
    and another script that doesn't work:
    [removed to protect the company]
    Thanks for all your help.

    phrarod wrote:
    > I came here to learn. It was a simple thing and I was
    embarrassed that I forgot
    > how to do it. I mentioned that. I thanked Alan. My
    friend owns that company.
    > He's trying to help me out. He's a great guy and helps
    people alot. He doesn't
    > rip anyone off or pay them a pittance. He doesn't do a
    ton of web work because
    > as you said its harder and harder to get any money since
    clients have to be
    > educated why they need you when they can get it for free
    or $300 or a couple
    > hundred. We're all trying to make a living. If someone
    helps me I want to repay
    > that help if I can. I know I'm not paying for the advice
    here and since its in
    > a forum I don't know about I can't help technically.
    Networking is always a
    > good thing. I tried to help by offering a lead. How do
    you know this person
    > doesn't pay much? Because of me? Rather than following a
    lead you just assumed.
    > I know a lot about print and TV. I'm trying to fill out
    my skill-set to offer a
    > wider range of services. End of rant. I'm just hurt I
    was stepped on as it
    > blind-sided me. I have a solution. If its so basic it
    upsets the people who
    > answer then don't answer.
    >
    Don't feel offended, the comments weren't directed at you,
    rather at the
    bizarre world of web design.
    :-) We need to hang tough and help each other, whether we're
    working
    for a decent salary, for a pittance, or for our middle-aged
    aunt.
    Bonnie
    in California
    8 ^ )

  • The app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new.

    the app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new for christmas.

    See the following to purchase earlier, compatible version for iOS 6
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • Is a fix for "not compatible HP Smart Web Printing 4.60, coming? Do you have a browser that will work with it?

    Brand new wireless network printer from hp uses HP web printing 4.60. So I can't use my new printer. If you have a different browser that will work great, I hate to switch to a non mozilla browser.
    == This happened ==
    Every time Firefox opened

    HP is a third-party developer of that toolbar. <u>'''HP has chosen'''</u> to only support IE versions 6, 7, and 8 for using the HP SWP product. See: http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&dlc=en&cc=us&docname=c00793678
    The HP SWP product gives you options to ''"select, clip, edit, and print content from Web pages without printing the entire Web page."''; see http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01846025&tmp_track_link=ot_recdoc/c00793678/en_us/c01846025/loc:2&lc=en&dlc=en&cc=us . You can perform those same functions with some add-ons for Firefox and/or free utilities on the market.
    I use an HP printer and can do all of the above without the HP SWP Toolbar.
    See:
    https://addons.mozilla.org/en-US/firefox/search/?q=screen+capture&cat=all&lver=any&pid=1&sort=&pp=20&lup=&advanced=

  • I need to install an App that will work with my iOS. How do I get an earlier App that is not now in the App Store?

    I have an iPod Touch that can only run iOS 3.1.3. I have had Zinio & PressReader (both free Apps) installed on it for many years, and subscribe to a number of Magazines and Newspapers. I had backed up the iPod in September 2012. Today, I had to restore the iOS from the backup, but saw that Zinio and PressReader had not been installed. I am aware that the iTunes store explains that the latest versions are for iOS 4.3, but I need the latest version that will work with my iPod on iOS 3.1.3.
    Does anyone know how I can get hold of the earlier versions of the "ipa" files, short of asking the publishers themselves?
    And, should I expect the Publishers to release the appropriate ipa to me?

    You aren't being left in any lurch. Your hardware is obsolete, and the software world has moved on. If you have a qualm about the matter then discuss it with the software's developers. Apple is not responsible for software they do not develop. This is technology, and you will just need to get used to it.

  • I have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    i have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    You just need a powered hub.. if you already use one then fine.
    Plug in just about any external hard disk will work fine. Format has to be readable by the TC.. ie fat32.. or much better HFS+.. plug it into a Mac to prepare the drive.
    Pick whatever size suits.. nowadays 2TB are most economical.
    WD, Seagate have goobled up all the minor players.. so pick one.
    Whatever suits your budget and asthetics.
    NOTE.. The USB on the TC is fine for printers.. IMHO it is the wrong way to go with USB disks.. use the internal disk of the TC.. USB is less than half the native speed plugged into a Mac.. TC to USB is slow.. far slower than internal drive.. or using external drive as external.

  • Need a printer driver for a PIXMA MG2900 that will work on my MacBook Pro Operating System OSX 10.4.11

    I have just purchased a Canon Pixma MG2900 printer and need to find a driver for this printer that will work with my MacBook Pro Operating System OSX Version 10.4.11.
    I was directed to iTunes PIXMA/MAXI, but it didn't seem to download for me.  It did say that it was for IPads or IPhones, not sure that it's intended for use on a computer.

    Probably best to go to a library and submit your resume there.
    You can make many web browsers claim to be ie.  Here is how.
    TenFourFox -- It's a port of the latest FireFox to run on older hardware and software.
    "World's most advanced web browser. Finely tuned for the Power PC."
        --  works for me on 10.4.  Supports 10.5
    http://www.floodgap.com/software/tenfourfox/
    alternative download site:
    http://www.macupdate.com/app/mac/37761/tenfourfox
    OmniWeb uses the lastest Safari framework.  The open source WebKit. Other browsers like Safari and iCab use the OS version of WebKit.  The OmniWeb downloaded dmg includes it's own copy of the latest WebKit.
    http://www.omnigroup.com/products/omniweb/
    Safari 4.1.3 for Tiger
    http://support.apple.com/kb/DL1069
    iCab - The Taxi for the Internet
    http://www.icab.de/
    What is my user agent?
    http://whatsmyuseragent.com/
    You want to change your user agent to be ie.
    in tenfourfox
    tools > add-ons
    seearch for change user agent
    install
    user agent switcher
    tools > User agent switcher
    change to ie.

  • I have created my site with Muse and have uploaded to an external ftp hosting, now my secure log in will not work because I am not using BC. Is there a way to create a secure log in that will work with out being forced to use BC?

    I have created my site with Muse and have uploaded to an external ftp hosting, now my secure log in will not work because I am not using BC. Is there a way to create a secure log in that will work with out being forced to use BC?

    Hi
    Secure Zone login feature will only work if you host your website with Business catalyst.
    Please take a look to this as an alternative
    Password Protect Pages Widget for Adobe Muse
    Also, check this thread,
    Re: Can I create a login/password protection in Muse for a HTML5 page or two?

  • I have the ipad 1, ios 5.1 is its max, and garage band requires ios 7.0, how do i buy garage band version 1.3, its the only one that will work, apple is so hard to get a hold of on these kind of things.

    I have the ipad 1, Ios 5.1 is its max, and garage band requires ios 7.0, how do i buy garage band version 1.3, its the only one that will work, apple is so hard to get a hold of on these kind of things.

    Unfortunately the answer is still no.

  • I have an older Power Mac G5 Quad, and my video card just went out. I am trying to find a video card that will work for my Power Mac. I have duel screens but I can't seem to find the appropriate video card

    I have an older Power Mac G5 Quad, and my video card just went out. I am trying to find a video card that will work for my Power Mac. I have duel screens but I can't seem to find the appropriate video card. The serial number on my computer is: RM620603R6W. Apple won't help me because the computer is older than suggested. Please give me the exact video card that will work best for my computer.

    Hi Mike, make sure the card has Mac ROM, or is a PC card with Mac ROMs flashed to it...
    G5 PCIe options are listed here:
    http://www.jcsenterprises.com/Japamacs_Page/Blog/71BBF3EF-9713-4C53-8B80-26771F8 A4087.html

  • I have an ipod touch 2nd generation, i'm trying to get apps that will work and i cant find any. Its says i need an update because it has ios 3.1.3 , but on itunes it says there is no update ? what apps can i get??

    i have an ipod touch 2nd generation, i'm trying to get apps that will work and i cant find any. Its says i need an update because it has ios 3.1.3 , but on itunes it says there is no update ? what apps can i get??

    Sounds like you actually have a 1st generation as those cannot update beyond iOS 3.1.3.
    Model Identifier Utility
    rachelfromnorthumberland wrote:
    what apps can i get??
    Finding iOS Apps Compatible with Older Devices

  • Looking for shelf system that will work with 5th gen 8g Nano?

    Hi,
    I'm looking for a shelf stereo system with integrated iPod dock that will work with my 5th gen 8 gig Nano that I received as a gift. I've been researching this and have a found a few candidates such as the JVC UX-GN8 or UX-LP5, or the SONY CMT-BX20i. But... have been unable to confirm if they work with this new 5th generation model. Anyone have one of those units, or something similar, that works? Also, is it true that the Apple Cradle ($49.99+cable) has some problems docking the 5th generation Nano in the sense that all the features are not accessible (audio, video, etc.)? Thanks for any and all responses.

    have been unable to confirm if they work with this new 5th generation model.
    If their websites do not specifically state that their product works with the *iPod Nano 5th Generation _with video,*_ its more likely their product is not compatible. You can try calling them if possible to confirm.
    Have you checked MacMall's website?

  • Apple Composite AV Cable no longer working on Ipad2 after ios8 update. Only getting sound, can you revert back to ios7 or buy a cable that will work any help would be appreciated

    Apple Composite AV Cable no longer working on Ipad2 after ios8 update. I'm only getting sound no video can you revert back to ios7 or buy a cable that will work any help would be appreciated
    Thanks

    The 30-pin connector on the iPhone 4 dock might not have all the connector pins to do video.
    I'm 99% sure the Universal Dock does have the pins (and therefor supports video out).

Maybe you are looking for

  • Do not use SOAP envelope

    I have a scenario in which a Webservice is called from PI; as the webservice request some specific fields in the SOAP-header I have found that I should check the "Do not use SOAP envelope" option in the SOAP-receiver channel. I have searched the foru

  • [TOMCAT] [SERVLET] : The requested resource () is not available.

    Hi!! I'm looking for an answer to my problem, and I'm going to explain what I mean. I've created a .jar named yuhuuTunnel.jar that has the following structure: yuhuuTunnel.jar: --> web (contains the servlets)       --> *.class       --> HelloWorldSer

  • Batch Subscribe to Podcast (add multiple Feed URLs at once)

    Is there any way to Subscribe to many podcasts at once given their feed urls? I currently have an Excel file containing the feed URLs The "Subscribe to Podcast..." only allows entering a single URL. I have tried various delimiters (<newline>, ",", ";

  • Trouble connecting external speakers

    I'm connecting external speakers using RCA cables from the speakers to the headphone jack on my iMac. When I do so, under Preferences--->Sound--->Output, the "Internal Speakers" changes to "Digital Out" as I believe it should. However, I am getting n

  • Don't get any search engines when installing or update Firefox on XP

    After update to Firefox 35.0.1 I no longer get any serch engines. I only get a document icon and when I use the pull down the list of installed serch engines is empty. I have tried to find more engines but nothing happens. I have tried o install vers