Do I need to make an archive in some way?

Hi
I've just written my first applet. Because of the nature of the code I have had to spread it across several different classes (in separate files). Do the compiled files need to be archived together in some way before they are uploaded to a website?
I'm basically asking this question because I've already tried to upload the files once, and the result was (so the java console tells me) something to the effect of �bad magic number�, even though the applet works fine when stored locally.
Thanks very much for your time

Ok I've tried it within jar a jar archive and without one, both ways get the same problem. My html applet tag looks like this:
<APPLET height=450 width=450 align=middle code="draughts.gui.DraughtsApplet.class archive="DraughtsApplet.jar"> You need to have a browser with applets enabled to play this game. </APPLET>
When the applet fails, the java console brings up this:
java.lang.ClassFormatError: draughts/gui/DraughtsApplet (Bad magic number)
     at java.lang.ClassLoader.defineClass0(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)
The applet works fine when it is on my home machine, however when it is uploaded, it stops working. I have checked that the directory structure is kept the same between when it is uploaded (the jar file in the same directory as the HTML file).
Thanks for your time

Similar Messages

  • Have two ipads one account, to facetime with wifes ipad i need to make a differant id the way i understand it,my ipad has a space for another contact but on hers it only has sign in and pass. do i cancel my id on hers and enter her own email

    on her ipad there is only my id and a space for password, do I cancel my id and put in her email , then and her email to my ipad where it says another contact, confused;

    Apps are forever tied to the Apple ID under which they were purchased. If your friend wants to be able to manage apps on their device using their own Apple ID, they will need to delete all the apps purchased using your Apple ID and buy their own.
    Hopefully, you just updated your own Apple ID with the new email and didn't make the mistake of creating a new Apple ID. If you created a new ID, stop using it now, don't buy anything using it and go back and update the ID under which you purchased your apps.

  • I have a hitachi hard drive from an old pc. I would like to transfer pics and music to my macbook air. What cord do I need to make this possible?

    I have a hitachi hard drive from an old pc. I would like to transfer pics and music to my new macbook air. What cord do I need to make this possible?

    Some external cases include cords others (like some printers) consider the cord to be "optional" - read the package or product description. Other World Computing, HH Greg, OfficeMax, any box store or local computer store should have a case for your old drive.
    You are fortunate in that the Mac will automagically read the DOS format disk... you'd never be able to connect and old Mac HD to a WinDUHows machine.

  • Can I make firefox defualt for some web shortcuts and IE for others?

    I need to make firefox defualt for some web shortcuts and IE for others.

    # Type ''about:config'' into the location bar and press enter
    # Accept the warning message, this brigs up a list of preferences
    # In the filter box type ''check''
    # Double-click on the preference browser.cache.check_doc_frequency and change its value to 1
    For more details on this preference see http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • Am running Tiger 10.4.11; just got Snow Leopard 10.6.3 (regular OS disk, not an upgrade); when I install Snow Leopard, will it wipe everything?  overwrite Tiger?  Do I need to make backups of applications and files to reinstall after Sno Lprd loads? thx!

    Am running  Tiger 10.4.11; just got Snow Leopard 10.6.3 (regular OS disk, not upgrade).  When I install Snow Leopard, will it wipe everything?  overwrite Tiger?  Do I need to make backups of applications and files to reinstall after Snow Leopard Loads?  thanks!

    Hi Donald,
    No it doesn't erase anything by default, it does what we used to call an  Archive and Install feature, which can give you a new OS, yet preserve your files and settings if you have enough room on your HD...
    http://docs.info.apple.com/article.html?artnum=107120
    But it does it automatically unless you specifically erase the Disk, but will replace Tiger completely for the OS & several Apple Apps like Safari, Mail, etc, yet preserve your old settings for those!
    If you think you may need Tiger to run any APPs that do not work in SL/10.6, then clone or backup first.
    I would recomend 2 things before installing though...
    Make sure you have enough RAM & HD space.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 2GB at least)
        * 5GB of available disk space (I say 30GB at least)
    If it's a core Duo & not a Core2Duo, then it'll only run in 32 bit mode.
    "Try Disk Utility
    1. Insert the new Mac OS X SL/10.6 Install Disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214

  • How to make DMG archive

    Is it a way to make DMG archive in Leopard, or do I need an app?
    Thanks
    Amplified

    Open Disk Utility in the Utilities. Use Disk Utility Help from the Help menu to learn how to make a disc image.

  • Apple needs to make auto fill available with privacy browsing.

    Apple needs to make auto fill available with privacy browsing.

    In no particular order...
    You're basically asking for what Mac OS X Server provides. With the server version and a suite of tools including Server Admin, you can configure and manage the capabilities of the server, including the web server, DNS and all of the other available services.
    Snow Leopard Server is a US$499 purchase, or can be acquired as part of the Mac Mini Server or Xserve packages.
    The Apache web server present within Mac OS X client starts within via the sharing control panel, and various folks have posted directions for [manually starting php within the client package|http://labs.hoffmanlabs.com/node/1462]. The Mac OS X client packaging is "detuned" from what the server version provides.
    A Mac Mini Server is more than capable of running dozens of web sites; the typical bottleneck will be the remote network bandwidth needed to serve the sites. The Xserve box is more than you'll need here.
    All of the nice GUI stuff aside, you'll (still) want to learn the bash command shell, both for certain advanced configuration tasks and for troubleshooting and maintaining the server, and likely also for establishing your local archival strategy.

  • What do I need to do when I receive the message ". . . your startup disc is full, you need to make some room by deleting some files"

    I hope I'm in the right place since I was sort of redirected here Recently I have been receiving the message that my startup disc is full and that I need to make room by deleting files.  At first I received the message when I left my computer unattended with my virtual machine on, using VMWare Fusion to run Windows.  Recently though, I got the message when I left my computer unattended for about 6 hours without the virtual machine running.  As an aside, I get extremely nervous when anything freezes VMWare because it is usually a nightmare to get back into Windows if I can at all without calling Tech Support. This new message however, appeared without the virtual machine active, so I was relieved that VMWare most likely was not the cause.  After reading a number of Tech Support articles and Community discussion questions and answers, I started wondering if iTunes or the SMC firmware or a combination thereof may be causing the problems.  Mind you I know nothing about the SMC stuff because as I said, I am really new to Mac and know very little about computer code or processors or any of that stuff.  But I do know that iTunes has recently been giving me some trouble, such as opening on start up and I can't figure out why and messing around with my iTunes libraries.  I also read about the SMC firmware and the computer's sleep cycle so that sort of made sense.  But I seriously need advice from someone a lot smarter than me.  So, before you ask, both iTunes and my SMC firmware are up to date. I'm running a mid-2007 iMac Intel Core 2 Duo Processor with 2.4 GHz of speed.
    You may not need all this junk, but in case you do, since the message tells me to make room and delete files, here goes.  Now, if I need to make space and delete files, this is where I get confused and it's probably very simple but I'm still a relatively new Mac user and I still can't seem to find all the info about my Mac!  I'm not exactly sure how much space I have left on my hard drive.  I had to replace my hard drive last December and the invoice says it is a 500 GB 7200 SATA hard drive.  For some reason I thought I had more than that.  Regardless, System Profiler shows 10.26 GB currently available, 499.76 used; I assume that the used portion includes my partitioned drive that has my virtual machine on it?  I may be using the wrong language when calling it that but that's how I understand it as a "partitioned drive".  Now, when looking at the System Profiler, under Volumes, Capacity 209 MB writable diskOs1 - I think this my Virtual Machine.  I also have three Western Digital drives that I use for Time Machine and for pictures and music; however, as I said, I am still new with Macs and do not fully understand the file structure so there may be pictures on my Mac hard drive that are duplicated on 1 or more of my WD drives but I don't know how to find them or if I do, I'm afraid to delete them.  Of these WD external drives, 1 is 500 GB and is full with Time Machine backups; the 2nd WD drive is 3 TB and has 2.18 TB available and is currently being used for Time Machine backups; the final WD drive is 1 TB Firewire and currently has 694.33 GB available.
    Any help would be appreciated.  Please forgive any inaccurate terms or mis-statements of terminology as I do not really know what I'm talking about as far as the pieces and parts of the operating system; I'm just trying my best to describe what I see.
    One more piece of advice that I would appreciate would be recommendations about a good file cleaner, for duplicates, messy file structure, space utilization software; it also needs to be idiot proof software.  I have a trial version of Appdelete that I never really used and I have the purchased version of Tune Up My Mac that I haven't spent much time with because I'm afraid I'll delete something I shouldn't
    Thank you for your help
    Memalyn

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • HOW LONG TIME YOU NEED TO MAKE GPS TO WORK WITH OV...

    Question to NOKIA:
    HOW LONG TIME YOU NEED TO MAKE GPS TO WORK WITH OVI MAP 3.1 in N97?
    On all N97 I know and as you can read here in forum the GPS doesn't work usable in N97 and with MAP 3.1.
    I believe that this is a software problem because often I get a GPS signal inhouse and in the wood, but from one second  to the other N97 lost the GPS signal. And this in the best weather condition under free sky. Sometimes gps signal works for 15 minutes, then the signal will drop every minute or so.
    The current position on map is shift (past) abaout 40-50 meters from the real position, so its unable to use.
    The calculated speed is always changing between 0 and the current speed. 
    I have updated phone to de newes software and firmware also to ne newest maps also has hard reseted and reformatet and the problem ist still the same. If I switch off the option "Maps improvment" (which SENDS DATA TO NOKIA!!!) the the drop outs are fewer. But evreytime the position on maps is shift about 40-50 Meters from right position. Is there a mistake in calculation the position?  Also the speed is jumping sometimes from 0 to x and back.
    CAN NOKIA TELL US WHEN THIS BUG WILL BE FIXED, AND CAN NOKIA OFFER US A REFUND.
    I have payed a lot for N97 and alot for the navigation licence and a lot for accesoires and a lot for the traffic security assistance. So I want a working phone! I dint have payed money for e alpha-stadium phone.
    If this is realy the quality of nokia phone, then It is the latest phone I have buyed from nokia.
    By the way, the phone has many many many many other bugs as described in this forum.
    Really bad work NOKIA! :-(
    I was so excited with my N95 and now this mess...
    NOKIA please answer us forum members, what you plan to do with the N97 bugs. When we can hope that the bugs are gone? Otherwise I will return my phone and want my money back and I sue for compensation.

    I have no word to disagree with you and hoping that Nokia soon will make some press statement or something else to tell us what they do with their flagship, sorry bugship Nokia N97.
    Could be a shame recognize errors, but it's worst not to say nothing ant let the bad news of Nokia N97 spread for internet even if they want to sell a Nokia N97 Mini in the near future.
    I understand and supose that we will no have no new version till september because we are in the last week and july and the activity in august decrease really high... but at least someone of Nokia could tell something about this problems and if it's possible all the other problems.
    Why Nokia Beta Labs Forum there is a direct contact with Nokia workers, and in discussions is relly rare to find?
    Yesterday is history.
    Tomorrow is a mistery.
    Today is a gift.

  • I need to make a pdf document, made in photoshop, 'page turn' and then add it to my website. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    I need to make a pdf document, already made in photoshop, 'page turn' and then add it to my website as an e-brochure. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    Hello waitingone,
    please try this (all terms are translated from my German programs to my best knowledge):
    1. Did the creator of the pdf file enable the import options?
    2. See import options: choose an other visibility option for your layer.
    3. Let you show the import options and click into one with a black background and try these out (often a gray is selected).
    4. See trimming: try the different modes there. Often works: "Media".
    5. Is the pdf file (eg from Word) correctly created?
    6. Is the PDF file protected? >>> no import possible.
    7. If that does not help, store the pdf file in Acrobat, repair possible errors, run the PDF Optimizer before placing in InDesign.
    Good luck!
    Hans-Günter

  • Need to make a print button in indesign

    hi
    I need to make a print button in indesign for a brochure. I have made several buttons by using the create button toll but there is no 'print' option in the list of behaviours.
    can anyone help me with this please.
    The final output is a pdf and the brochure has a print button on every page.
    Can anyone help please

    You can duplicate any form field to all the pages you like... to all pages or just some pages.... Forms>Edit Fields>Duplicate

  • I have a line drawing (black on white paper) i have scanned and need to make the white paper transparent, maintaining the line drawing, can i and then HOW can i do this in PS?

    i have a line drawing (black on white paper) i have scanned and need to make the white paper transparent, maintaining the line drawing, can i and then HOW can i do this in PS? this is for my business logo. ive used it for years but with a solid background. id like to have it just be the drawing over my photos with a transparent background.

    First let me apologize for posting a reply that was only suitable for advanced users.  Photoshop is broad and powerful therefore has a huge learning curve.  In fact I would state no one knows and uses all of Photoshop.  When we first get Photoshop it intimidate us and we're very uncomfortable using it.  Many thing are not intuitive there in much learning involved.  After some time we begin to know something and we are able to do some thing.  Learning become rapid and we start playing in Photoshop.  It is very important to play with Photoshop.  Playing with Photoshop and asking for help with in forums like this IMO is the best way to learn. 
    Photoshop Power lies in layers, selection and automation.  However it takes knowledge to use photoshop well so most powerful tool you have ins Photoshop is the gray matter between your ears.  Most at one time or another want to watermark or put a logo on their image.  So its best to automate this process. All run into a problem in the process. "Size"  We find our assets vary in size and aspect ratios. Landscape, Portraits, Panoramas and others. This complicates automation.  Vector graphics works best when size vary greatly.  If you can not work out how to create a vector solution like a custom shape.  Create your Logo and watermark large thing scale down better the up. Text scale well for text uses vectors graphics however if you rasterize text it will not scale well.
    I do not type or do English well so let me do some screen captures.  I can not stress enough how important Black, White, Grays and Blending is when it come to image processing.  Become friends with Multiply, Screen, Overlay and Luminosity blending.....
    However when there is a white or black background though you can blend them you can not add a style like a drop shadow, emboss or make it invisible setting fill to 0 so only the style is visible.  When there is contrast between the logo and background it is easy to separate the two. To select the background and delet it to have the logo with a transparent background.  Many tools can be used to create the selection hee I use my action kill white.
    Vector Shape would work better for scaling However it would be best to create the logo from scratch in a vector program like illustrator but I never had the resources to justify the Creative suite. I only had Photoshop.  Recently Adobe gave me and other a year subscription to the creative suite for our participation here.  I still have not installed anything but Photoshop,  A while back I found a program that can create vector patf for black and white art work.  It will not be as good as using something like illustrator. However vector paths can be edited in Photoshop and cleaned up some. Here is the PSD it 13MB because od the gradient http://www.mouseprints.net/old/dpr/AmPm24-7.psd

  • I have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    i have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    Try the developer's forum:
    https://discussions.apple.com/community/developer_forums

  • HT2534 When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • I already have an account but i need to make a resuce email..how do i make a rescue email and reset my security answers. I can't remember my security question answers!!

    I need help!! My I-tunes won't let me buy any more songs until I confirm that my account..is well..MY ACCOUNT! I can't remeber my security question answers, how do I reset them!? I also need to make a rescue email, i didn't make one when i first made my account, so how do i make it now!? PLEASE HELP ME!

    You need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
    Creating a rescue email requires correctly answering two of the questions.
    (96131)

Maybe you are looking for