Problem: codebase, jar and image reloading problem please help!

Hi Java Gurus,
I have written an applet that extends JApplet for viewing webcam. In order to reduce the download time I put my classes into a doorcam.jar file. The following is my <applet> tag in my html file.
<applet code="CameraApplet.class"
archive="doorcam.jar"
     codebase = "webcam/classes"
     width="375" height="475">
<param name="imagePath" value="http://judge/webcam/images">
<param name="webCamImage" value="door.jpg">
<param name="COMPort" value="COM2">
<param name="frameRate" value="10"> <!-- could not exceed more than 10-->
<param name="host" value="judge">
</applet>
The fist problem is that my class file does not get loaded from the jar file if i provide the "codebase" attribute as above. Instead the browser load every single class file from the webserver. This has some problem too. Coz the browser sometimes just thorough NullPointerException or ClassNotFoundException. After much of debugging I found out that the problem is the IE browser which seldom fails to load classes or image file from the server. If i referesh the browser the applet and all its classes loaded successfully and runs smoothly. This behaviour never occurs when running with "appletviewer".
I wanted all my classes to be loaded from my jar file. After much of trial and error I found out that if i remove "codebase" attribute the browser loads the classes from my jar file and applet loads very fast. This is where the second problem comes in. The browser does not reload my webcam image file so that the webcam become alive with live images, like before.
If I run on "appletviewer" everything works fine my web cam is displayed properly. But in IE browser the image does not get reloaded when I refresh my image to give live to my webcam display. The refresh method is given below.
private void refresh(final URL url) {
Image webCamImage =getImage(url);
webCamImage.flush(); // flush out the previous image
webCamImage = getImage(url); // get a new image
webCamImageIcon.setImage(webCamImage); webCamImageIcon.paintIcon(webCamLabel, webCamLabel.getGraphics(), 15, 15);
When I add the "codebase" attribute back, the image gets reloaded for every refresh() and everything works fine. But the classes are also loaded from the server. And occasionally also suffers Class loading and image loading problem. As I presented earlier, when I do refreshing in the browser everything gets loaded and the applet function correctly with web cam displaying very well.
The problem is so strange that I could not find any way to solve it.
It would be a great help to me if somebody provide me some work around to the problem.
I tested on Windows 2000, Windows XP, IE 5.5, IE 6 with J2SDK 1.4.0.
Thank you all very much in advance.
best regards,
Judge

Thank you so much for the suggestions. I did tried the way u suggested. The problem still the same.
I think its the problem between IE browser and Java Plug-in.
I which SUN would find these incompatibilities and solve these problems.
I even tried using java SDK and plug-in 1.4.1 it even worst. It can't even load an applet. And it does not show any loading messages nor any error messages. It just show a cross sign on the upper left coner.
I would be so glad, if Sun would try to eliminate the inconsistancies such as caching, loading, initializing etc between browser and its Java plug-In. For example, applets behave well in appletviewer and behave unpredictably in browser environment.
I have seen so many people in the forums with all sorts of problems because of this.
Right now I m desperately looking for work around to my problem.
If somebody would provide me with the solution to my problem it would be a great help to me.
thank you all so much.
best regards,
Judge

Similar Messages

  • Problems with Ipod and Windows Media Player PLEASE HELP

    Ok i am not sure if this is the correct forum or not but i am having a problem. I have a Windows computer (Yes a windows computer please dont everyone yell at me) and i have a new ipod 30 gig video. Ok well when i put itunes on it changes all my music on my computer gets changed to AAC format and i cannot play music in windows media player. Ok well that is not my big issue. I make videos for church using windows movie maker and i cannot import music because nothing windows can recognize Itunes format which is AAC. well is there anyway so i can use itunes and still use WIndows Media Player and Windows Movie Maker... Any info will be greatly appreciated. THANKS ALL

    I believe Quicktime Pro (which is available for Windoze) is capable of opening any WMP files and then you just export it as iPod format. That is how I get video onto the iPod. The Music and Videos all can be placed onto your iPod through iTunes.
    So, if you are creating videos in your program, and want them on your iPod, then that is how you can do it.
    Videos on your iPod have nothing to do with the formatting of your music. But, as the earlier post stated, change your prefs in iTunes to import as MP3. But, your videos HAVE to be in MP4 or M4V format to work on the iPod.
    Good luck... and I'm a j3susfreak too

  • My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem.

    My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem. Iphone4s, 32gigs, IOS 7.1.2
    I don't know why it stopped working but it happened a month or two ago but the option on this phone that's usually all the way to the left when you select your device but now its not and I don't know what caused it. ive already tried troubleshooting my problem but have found no help.

    Hello Salmomma,
    Thank you for the details of the issue you are experiencing when trying to connect your iPhone to your Mac.  I recommend following the steps in the tutorial below for an issue like this:
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/
    Additionally, you can delete music directly from the iPhone by swiping the song:
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    iPhone User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Hi, After I installed Mac Lion, I have problem with the tamil font while typing in Neo Office. Especially with the letters "e-Ex: தெ" and "ai-Ex:தை". Please help me I know its not bug from Apple It shd be some problem in neo.

    Hi, After I installed Mac Lion, I have problem with the tamil font while typing in Neo Office. Especially with the letters "e-Ex: தெ" and "ai-Ex:தை". Please help me I know its not bug from Apple It shd be some problem in neo.

    Is your problem due to the keyboard or to NeoOffice Characters? You have to change probably the font. Not all fonts are supporting all Unicode sets. Which font you have in your NeoOffice set to write Tamil? Try with Arial Unicode MS for example.
    Are the letter e-Ex and ai-Ex right in your posting? If they are right, how you inserted these letters in your posting? By copy and paste or by typing? If by typing, your question is related to NeoOffice. Probably you should reinstall or update NeoOffice? Or switch to OpenOffice?
    marek

  • I have got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation doen't block and turn up black. please help me, i don't knwo what to do!

    I've got big problem. i have iphone 4 for a few day (it was new and packed) and now i realised that the screen during the conversation don't block and turn up black. please help me, i don't knwo what to do!

    Connect to the Computer you Usually Sync with and Follow the Steps Here...
    Recovery Mode
    http://support.apple.com/kb/HT1808

  • HT1267 I have a big problem regarding my iphone4 it wont start up and it keeps vibrating, please help me fix it. its been vibrating since 2 pm until now 7pm here in Philippines :(

    I have a big problem regarding my iphone4 it wont start up and it keeps vibrating, please help me fix it. its been vibrating since 2 pm until now 7pm here in Philippines

    What program did you use to fix the internal hard drive? What repairs did it report making? More crucially, if repairs were reported, did you re-run the utility until it reported no problems found? It's possible for one set of problems with a drive to mask others.
    If you have about 5GB or so free space on the internal hard drive, you can use your OS X Install disc to perform an Archive and Install to recover from the failed Software Update. When the computer restarts, download and run the OS X Update Combo 10.4.11 (Universal). When the Mac restarts after that, run Software Update. During all this, make sure nothing interrupts or shuts down the Mac! Note that the first start after each of these updates will take significantly longer than subsequent starts, so be very patient.
    How did you back up your internal drive to the external one? Did you just drag things over in the Finder, or did you use a utility such as SuperDuper! or CarbonCopyCloner? Does the external HD show up as a bootable volume in System Preferences > Startup Disk, or using Startup Manager?

  • I use iPhone 4S .earlier with ios 6 and now ios 6.while I connect the charger for charging my phone network lost while midway in charging.that problem always while 3G connection is active.but this problem not arise while 3G mode off.please help me.

    I use iPhone 4S .earlier with ios 6 and now ios 6.while I connect the charger for charging my phone network lost while midway in charging.that problem always while 3G connection is active.but this problem not arise while 3G mode off.please help me.

    reset all settings
    settings-general-reset-reset all settings
    now reconnect to wifi
    settings- wifi- click network name- enter password - join
    if issue persists back up and restore as new via iTunes
    Peace, Clyde

  • I have a problem in the data entry Visa card please help

    I have a problem in the data entry Visa card please help

    abdulaziz711 wrote:
    I have a problem in the data entry Visa card please help
    Is this what you mean...
    http://support.apple.com/kb/TS1646
    If no joy...
    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Hello, i have a problem with this number code  213:19,  please help me!

    Hello, i have a problem with this number code  213:19,  please help me!

    dan
    What version of Premiere Elements and on what computer operating system is it running?
    If you are using Premiere Elements 13, have you updated it to 13.1 yet? If not, please do so using an opened project's Help Menu/Updates.
    What type of user account are you using....local administrator or domain type?
    Please review the following Adobe document on the 213.19 issue. Have you read that already?
    Error 213:19 | Problem has occurred with the licensing of this product
    ATR

  • My iPhone 4S can't support camera 360 apps.Once I open the apps 3 sec it will auto jump out to the home page.Look likes the apps crashed.Isn't my iPhone problem or the apps got bug?Please help me.TQ

    My iPhone 4S can't support camera 360 apps.Once I open the apps 3 sec it will auto jump out to the home page.Look likes the apps crashed.Isn't my iPhone problem or the apps got bug?Please help me.TQ

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....

    Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....is there some trick I am missing or do I need to make an appointment with a genius...

    I have the MacIntosh volume and the Boot Camp partition only.  I know that when I installed Lion, I had to go through a whole back-up and recovery of Windows and then re-format the drive. 
    The tech at the Apple Store had a previous life as a MSCE and was very helpful.  I believe he even said that I should not have htis problem with Mountain Lion which is why they gave me the flash with it onboard.  I was in the process of starting a new job when I went to Lion, so I have waited to do this next and probably last upgrade to this old MBP since I doubt Apple will support this MBP in Maverick. 
    I do not have another installation, so that is not an option.  I will try to create an external, I have plenty of hard drives around and see if I can get it done that way.  It might take me a week or two to get back to it, but I will comment back upon completion of that effort.  Thanks for your help....Dave Iverson

  • I have an ibook g4 laptop and i cant add   music frommy library to my ipod touch but my ipod shows up on image capture ? please help immiedeatly

    i have an ibook g4 laptop and i cant add   music from my library to my ipod touch4 but my ipod shows up on image capture ? please help immiedeatly

    What OS is on the iPod?
    What version of iTunes is on the computer
    Try using iTunes 10.6.3

  • HT1477 When i disconnect my iPod 2nd Gen from my laptop, its display turns off and working freezes. Please help me.

    When i disconnect my iPod 2nd Gen from my laptop, its display goes off and working freezes. Please help me.

    The computer freezes?  There may be something wrong with the USB port.  If the laptop has more than one port, does this happen on any port?  If you are disconnecting the shuffle cable from the computer, does it make any difference if you disconnect the shuffle at the other end of the cable first, then disconnect the cable from computer?  Or if you currently disconnect the shuffle from cable first, try it the other way.
    You may be able to work around this problem, if you get a self-powered USB hub.  Something like this one
    http://eshop.macsales.com/item/NewerTech/USB2HB7PRO/
    There are many choices, but be sure to get one that has its own power supply.  You can leave the shuffle cable connected to the hub, and connect the shuffle to the hub, instead of directly to the computer.  This may provide a "buffer" for whatever is causing your laptop to shut off when the shuffle is disconnected.  Since the hub has its own power supply, it will not rely on the computer for power to re-charge the battery.

  • My apps wont open and i keep downloading new apps, hard resetting, syncing and nothing works! PLEASE HELP

    My apps wont open and i keep downloading new apps, hard resetting, syncing and nothing works! PLEASE HELP  

    Then restore the iPod.  First from backup and if problem persists, restore to factory defaults/new iPod.

  • Trouble opening the free photoshop and illustrator trial downloads, please help!

    Trouble opening the free photoshop and illustrator trial downloads, please help!

    Dear Michael,
    In response to your questions, please see below;
    What OS? OS X 10.8.2
    What happens? When i click on the ''AdobePatchInstaller'' i get this message, ''Update Failed, Updates could not be applied. This patch is not applicable for you. Please check for updates from the Help menu in your product to see a list of latest updates available. If the problem persists, contact customer support for further assistance.
    Any error messages? No
    Did you have previous versions of the software on your system? No
    Is the trouble with the download or the installation of the software? I am not sure but i think it may be the download. It shows that the download was complete and icon appears on the desktop.                                                                                I plan to buy the ''Adobe Creative Suite 6 Design & Web Premium'' but i wanted to try it first via the free trials, especially Photoshop and Illustrator. So please let me know what i need to do.
    Kind regards,
    Nancy Gonda-Nesbeth
    Freelance Garment Technologist
    <Removed by Moderator>

Maybe you are looking for

  • How do I get my contacts off of my old BB and onto my new iPhone?

    Alright I have a new iPhone finally. I have an old BB curve that has all my contacts. These contacts are not saved to the sim card. I was told you can do something with outlook or something else that will take all of my contacts names, numbers emails

  • Change administrator name without starting over.

    Hope someone can tell me how to change the administrator name and or delete the one that's in there that was cemented in the system when I got the computer and replace it with my name, without re-formating the drive and starting over. It's a G4 tower

  • BW7.0 workbooks precalculation without Portal installation

    Hi all, I am using BW7.0 without Portal installation. As far as I know broadcasting cannot be used without portal installation for bw7.0 workbook.(If I am wrong,please correct me) Can anyone help to suggest how can I realize BW 7.0 workbook precalcul

  • Oracle Performance(Talent) Management - Appraisal

    Hi all, I have a doubt regarding the self appraisal. When i fill out my self appraisal page, i get a TIP msg on the Page "Share appraisal details with Teammate" the TIP msg is OM_HR_INST_APPR_PART_PAGE_SS. Can anyone please help me with the solution

  • Can't open "winmail.dat"

    Hi! I'm need help to open winmail.dat. "Ytnef" not working. The thunderbird plugin "lookout" not working too...I choose "winmail.dat" at attachments, "open" and nothing is going on there. Are anybody solved such problem?