Problem with download extension.

Hi,
I've tried to run the java tutorial download extension's example but without success.
I've compiled the two java files and put the class files into their respective jar file.
- The two jar files are in the same directory (AreaApplet.jar and RectangleArea.jar).
- The AreaApplet.jar's manifest is :
Manifest-Version: 1.0
Created-By: 1.3.1_01 (Sun Microsystems Inc.)
Class-Path: RectangleArea.jar
- The RectangleArea.jar's manifest is :
Manifest-Version: 1.0
Created-By: 1.3.1_01 (Sun Microsystems Inc.)
- The applet tag in the html file is :
<APPLET NAME=test
     CODE=AreaApplet.class
     ARCHIVE=AreaApplet.jar
     WIDTH=100 HEIGHT=100>
</APPLET>
All seems to be good but I have a ClassNotFoundException with the RectangleArea class.
Please, does anyone see what's wrong ?

Hi,
I can give you the steps I follow.
In an empty directory (all the files are in the same) :
- I put the two classes in the files : RectangleArea.java and AreaApplet.java
- I compile the two classes with this command line :
c:\jdk1.3.1_01\bin\javac AreaApplet.java RectangleArea.java
- I make the jar files with these command lines :
c:\jdk1.3.1_01\bin\jar cf RectangleArea.jar RectangleArea.class
c:\jdk1.3.1_01\bin\jar cmf manifest.txt AreaApplet.jar AreaApplet.class
manifext.txt :
Class-Path: RectangleArea.jar <Enter>
- I make a basic html file with this applet tag :
<applet name=test code=AreaApplet.class archive=AreaApplet.jar width=200 height=100>
</applet>
- I delete these files : RectangleArea.class and AreaApplet.class
- I run my html file and I have : ClassNotFoundException : RectangleArea
But it runs correctly with the applet viewer :
c:\jdk1.3.1_01\bin\java -verbose sun.applet.AppletViewer test.html
Is it possible that a wrong system CLASSPATH can cause this error ?
Thank you for your help.

Similar Messages

  • Problem with downloading 2007 formats

    I have a problem with downloading 2007 format files in my application. We can upload the 2007 formats without any problem. But, When we try to download them, we are receiving a 'Page cannot be displayed' error.
    When we add the corresponding MIME-TYPES into IIS(Version 6.0) of the system(Test Environment), the problem got resolved. But there was a constraint to add the MIME-TYPES in the Production Box.
    Can you please provide any alternate solution using CF code. I am pasting my sample code that my system is using for this.

    For CF to set the MIME type for those files, it would have to be configured as a handler for those file extensions. By default, CF doesn't process requests for files other than .cfm, .cfc, etc.
    You could write a download application that uses CFCONTENT to push files to the client, but the user would have to request your CF page, which might have a URL like this:
    http://yourserver/download.cfm?file=myfile.docx
    Or, you could map those file extensions to CF, but that would be a bad idea for several reasons. Even if it wasn't a bad idea, it would be harder to change on the server than the MIME types in IIS.
    Frankly, you should fix this the right way - by having the server administrator add the correct MIME types.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Problem with Download! on N78

    I'm having a problem with Download! on my N78 (sw v. 12.046). I can open Download but it freezes, and I also can't download any applications. When Download! freezes, my only option to shut it down is to boot the phone..I can switch to other open applications but Download! is freezed. This is giving me hard time, can't install any applications. Any help or ideas? Anyone else having this problem?

    Backup your data, and try doing a soft reset. *#7370#, (use this code at your own risk, since it deletes some important data's in your phone memory, including the data of installed applications on phone memory - means if you installed a java file to your card, it stores some data in your phone memory which will be deleted when you soft reset. So you will have to reinstall that software)

  • HT1222 I am trying to update my phone so I can save my info on my old phone & get a new phone, but I get a error that says "There was a problem with downloading teh software, the network connection timed out.."  HELP!  Not sure what my settings shoud be..

    I am trying to update my phone so I can save my info on my old phone & get a new phone, but I get a error that says "There was a problem with downloading teh software, the network connection timed out.."  HELP!  Not sure what my settings shoud be...
    I never updated anything until now...I want o update my iPhone to the newest version, but i do not want ot loose all that I have on this phone. I was told I needed to update the operating systems so i can put things into the cloud for transport to new phone, but I am just not sure how to do this..Can you help out here??

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • Problem with upgrade Extension Manager 6.0.4

    Problem with upgrade Extension Manager 6.0.4, code error U44M1P7

    What version of the Adobe Application Manager are you using?  Which operating system are you using?

  • I can not do the update , what should I do to fix this error ? "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    I can not do the update , what should I do to fix this error ?
    "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    Hi,
    Please refer to the help document below:
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • Problems with downloading

    Hi,
    I've got a problem with downloading adobe acrobat pro 9.0 for my cs5.
    Where can i download it because everything else he give's problems our i must purchase it but only need acrobat 9.0 so it's useless to buy the new one for me.
    Kind regards.

    Check out http://forums.adobe.com/thread/1061905.

  • Problems with download jdk 6 update 3 online and offline

    Hello,
    I am italian.
    I have same problems with download of jdk 6 update 3 for Windows Vista 32bit HomePremium.In passed i download without problems jdk 6,6 up 1,6 up 3 and 6 up 3(past saturday).For problems with my pc i installing new jdk but i have problems:
    In online installation recive error with download file cabinet and in offline installation i recive error with file "st160000.cab" that is corrupted.
    I have equal error with Xp sp2,Millenium edition and Vista Business edition.Help me.Thanks

    I add that the connection internet tested are variouse:gprs,adsl 2Mb,4Mb anda fastADSL 20Mb

  • I have a problem with downloading Indesign CS 6 part 1 (Mac) , it always stop downloading at 6.8MB !!!

    As the title has stated, I have a problem with downloading Indesign CS 6 part 1(Mac) , it always stop downloading at 6.8MB (out of 1.2GB). I tried restarting my mac, using different browser but it is always the same result... Any help???

    Try it from this site
    Download Adobe CS6 Trials: Direct Links (no Assistant or Manager) | ProDesignTools

  • Hi. I have a problem with downloading from app store while last three days. An error did mot allow me to that. It's number is 1009.

    I have a problem with downloading from app store while last three days. An error does not allow me to take any app. The error number is 1009.

    Thats the ugliest code I've seen in a while and may be hampering your abilities to debug it. No offense - you have to start somewhere - think of it as somewhat constructive criticism.
    However, I cannot find any place where this is happening. Its happening on line 193.
    Also, this only happens when you try to move certain pieces to certain squaresThat might be a clue. Try printing out the indexes before line 193 and see what happens. Maybe use a debugger to step through your code.

  • The problem with downloading from the App store

    Welcome. I have a problem with downloading and installing programs from the App Store. I am logged into the App Store, and when I click on install it does not react like the makings download eg OS X Maverics it kind of gets but nothing goes. Button is pressed install like and after a while returns to the state before clicking that is to this that I can to click to start the download or installation of.

    I was checking on the iPhone does not. I wanted to install a new OS X Maverics first and I had an older OS X Lion write it and now wants to download the OS X Maverics and I can not, and the like to log into the App Store.

  • Problem with downloading an issue to an Android tablet

    We're experiencing a problem with downloading an issue to an Android tablet.
    Adobe Content Viewer on a Samsung Galaxy Tab 2 attempts to download an issue, but after about 30 seconds of downloading ACW stops and without any error message returns to the previous state showing again the Download button. The Internet connection is good. Everything also works perfectly on other tablets we tried - ASUS Transformer and a previuos generation of Galaxy Tab.
    Is there any common resolution for this problem?

    I may not be using the correct jargon,,,,when I click on Amazon's link for the AmazonApp store download, an Adobe box comes up, so I follow the cues I get on the screen.  I don't know what else to do....my 1st step..https:/www.amazon.com/app-email    you have chosen to open Amazon_Appstore-release.apk which is apk file from: https://amznadsi-a.akamaihd.net  what should Firefox do with this file?  Save File  I click on OK    Then a download box comes up, which I click on, then there is 'Finder' and 'Adobe Reader'.  Adobe reader is highlighted, so I click, then OK and I get a box "Amazon_Appstore-release(9).apk" is an application which was downloaded from the Internet.  Are you sure you want to open it?  Cancel  Open.  I click Open.  Then a box that says  Adobe Reader could not open 'Amazon_Appstore-release(9).apk' because it is either not a supported file type or because the file was damaged (for example, it was sent as an email attachment and wasn't correctly decoded.)  I am a novice with this stuff....I hope you can help me.  Thanks  Char

  • Problem with downloading maps (europe maps)

    i can't download from nokiasuite any map of europe, starts with downloading basical europe map, after few minutes it says that there is a problem with internet, check connection. There is no problem with downloading other maps, apps, video, and other

    Hi edil95, 
    Welcome to Nokia discussions board!
    In order to be able to download Europe maps without problem, I advise you to follow the simple steps below: 
    1) Uninstall the current version of Nokia Suite that you have. 
    2) Clean the registry with a registry cleaner. 
    3) On your PC, go to Start > Run and type %temp% and click on "Run". Delete all Nokia folders from the folder that opens. 
    4) Download the newest Beta version of Nokia Suite from this link: 
    http://betalabs.nokia.com/apps/nokia-suite-beta
    You will need to sign in to your Nokia account - the same credentials used to log into this forum. 
    Once the program is installed on your PC, open it, connect your device to it and go to the Maps tab and start installing the maps again.
    Let us know how you get on and feel free to post any other questions you may have.
    Regards,
    astra2025 
    Press the 'Accept Solution' icon if I have solved your problem, Kudos my post if my advice has helped you!

  • Problem with downloading certain presentations,indicatior is not active

    Dear Suppot Team.
    I have problem with downloading certain presentations, to see the problem please go to www.oriflame.co.uk > login> use my id number 3086445> password> 290883> click on opportunity presentation> and try to download the presentation, indicatior is not active, I tried in safari and it's working fine. Please have a look and thank you for your effort. Could you please write to me back at [email protected]?
    Kind regards. Alex

    Hi,
    you have posted the records in the R/3 side.
    But the V3 jobs have to run for the records to be available for the delta in RSA7.
    Once your postings are done.The V3 jobs are scheduled,mostly it runs on an hourly basis.
    This is what loads these new records to RSA7..
    Wait for a while until the V3 jobs run.then Check RSA7 if there are any LUWs then run your delta ..it should pick records.
    Regards,
    Savitha

Maybe you are looking for