Caching downloaded classes - again

I created another thread for this problem, please refer to the original thread "caching downloaded classes".
Here is the complete code:
import java.net.*;
import java.io.*;
import java.lang.reflect.*;
class Connect
public static void main(String...a)
   ClassLoader loader = new NetworkClassLoader();
   try{
       Class<?> c;
       Method m;
       c = loader.loadClass("tryme1");
       m = c.getMethod("p", new Class[]{});
       m.invoke(null,new Object[]{});
      }catch(Throwable t){System.out.println(">>>>>>>> "+t);}
public static byte[] downloadByteCodesFromURL( DataInputStream in) {
    ByteArrayOutputStream outStream = new ByteArrayOutputStream();
    while (true) {
           try {
                outStream.write(in.readByte());
           catch (IOException e) { 
                  break; 
    return outStream.toByteArray();
static class NetworkClassLoader extends ClassLoader
public Class findClass(String name)
Class c;
try{
   URL u = new URL("http://localhost:80/"+name+".class");
  InputStream input = u.openStream();
  DataInputStream data = new DataInputStream(input);
  byte classBytes[] = downloadByteCodesFromURL(data);
  c = defineClass(name, classBytes, 0, classBytes.length);
}catch(Throwable t){System.out.println(t);c = null;}
return c;
tryme1.p() calls tryme2.p() which calls tryme3.p(). tryme3.p() just displays a JFrame.
Sorry, I have a problem with my browser, so I cannot apply code highlighting.
My question is: will this code cause the JVM to cache the loaded classes?
Thank you

Upon your request, I marked this thread as ANSWERED, and I will continue using the original thread.
But, PLEASE respond because as you can see from the original thread, you didn't answer my question for days, and I had said that I would create a new thread just to award you 10 points for your answer, since I couldn't do that in the original thread because I had already marked it answered for another user.
I have been on this forum for many years before Oracle acquired Sun. In the old days, I used to get responds form more than one user the same day I post my problem. Now, the volume of posted threads and answers are much less. Are people losing interest in Java or in this forum or something else, I don't know !!!

Similar Messages

  • Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    I've been building a site in Muse successfully until today when I get this error message in the browser, publishing to business catalyst as a test bed:
    Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.
    Clearing the cache has no effect and I have checked the assets and there are no error symbols. This happened after trying a google translate code in the <head> and a HTML snippet on the master template, I've since removed it but that the last action I took that I can think may have had an effect.
    Viewing the source of the page in Safari hash;t helped other than it shows ALOT of html (including some elements i can;t relate to in my site design) and states there are three errors:
    [Warning] Invalid CSS property declaration at: ; (index.html, line 1)
    the site is Kingsdown Holiday Homes - Self Catering Chalet Rental at Kingsdown Park, Kent | Home
    I started this site in Muse CC and then recently upgraded to Muse CC 2014, and I had install issues so deleted the original program (this then forced the download of the new version which was not automatically downloading even though CC notified me that an update was required.
    Any information gratefully received.
    Thanks,
    Andrew

    Same problem here but it has nothing to do with a cellular connection.
    Created the site http://www.blackdot.com in Muse 7.4.3 with no issues. Just updated the .muse file today to Muse CC 2014 and reloaded to our web server. Now I am getting the error "Some files on the server may be missing or incorrect." when viewing the site from the latest version of all browsers (Safari, Firefox, Chrome) on a Mac and all browsers on a PC (Safari, Firefox, Chrome, Explorer), also mobile Safari on an iPad.
    My connection is wired broadband, not a mobile or wireless connection. I am not using the Muse "Upload to FTP host…" option and will not be using it. I am simply exporting as HTML and copying the files to my server. I have deleted all files from the web server and recopied the updated site with the same error result. This is the exact same procedure I used to load the initial site with the prior version of Muse.
    It does not seem like there is an existing solution to this problem although many others are experiencing it. It looks like I will need to manually edit each page to remove the error message coding from the html files. Any tips on how to strip out the alert message from the html?
    UPDATE
    For anyone else experiencing this issue, I was able to edit the .html files for my site to remove the code responsible for this alert message. If you wish to edit your .html files you must make the same edit to every .html file in your site export including the top level "index.html" and all .html files inside the "tablet" and "phone" folders if you have them.
    The coding to remove is at the bottom of each .html file:
    (Muse.assets.outOfDate.length||Muse.assets.required.length)&&alert("Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.")
    Make sure you do not remove any semicolons or braces {} when making this edit. Just remove the text shown above. You will obviously need to remake these edits if you export your site as HTML in the future.

  • When I have an image on the screen and try to save it why does firefox download it again?

    I am on a certain web site and an image is displayed on the screen. I want to save it to my PC. Instead of saving the one already downloaded and displayed Firefox downloads it again. This is a nuisance it wastes time and bandwidth. Is there any way to correct this? Some people have suggested 'save images' but this is no help whatsoever as the same thing happens.

    Make sure that you do not run Firefox in (permanent) Private Browsing mode (Never Remember History).
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history"
    *Deselect: [ ] "Always use private browsing mode"
    In case you are using "Clear history when Firefox closes":
    *do not clear the Cache because Firefox will disable the disk cache in such a case
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

  • When saving an image, why does Firefox download it again, although it is already downloaded and displayed?

    If you right click an image on a website and choose "save image", it will be downloaded again. It is already in the browser cache though. There are addons which let you pick it from the cache.
    Why doesn't Firefox just save the cached image and instead downloads it again? There seems to be no obvious rationale to do it like that (and lots to use the cached version).

    Thanks you, but that's not an answer to my question.
    I'm not looking for workarounds. I would like to know (preferably from someone at Mozilla) why the browser works this way and if they are going to change it.

  • HT201272 If I'm not happy with my download (i.e.. my song stops short of its 4:51 duration by about 23 seconds), can I download it again to see if this corrects the problem?

    Can I delete my song purchase and try downloading it again to correct a problem with the song ending prematurely?

    Hey,
    Thanks for the replies.
    Shining:
    The "greedy" mode did make firefox move much faster. Thank you.
    Regarding the "bloated" feeling:
    I did all sort of tweaking to my system, but it still feels not as I expected.
    I expected a different feeling because I have a desktop running Arch,
    and everything there is a lot more responsive: I don't have to wait 5-7 seconds for firefox (or open office) to launch,
    it takes 1-2 seconds. As I mentioned, the glxgears fps is much higher there. Even hard disk performance is a lot better (I am adding hdparm testing,
    please tell me if you see anything special, maybe thats the main problem).
    And I am talking about a 5 years old desktop, in comparison to a 6 months old laptop!
    Every extra tip you can give about accelerating my machine will be appreciated.
    Thanks a lot,
    fiod
    hdparm:
    [**@lg-tux fio]# hdparm -tT /dev/sda
    /dev/sda:
    Timing cached reads: 1562 MB in 2.00 seconds = 780.51 MB/sec
    Timing buffered disk reads: 116 MB in 3.05 seconds = 38.06 MB/sec
    [**@lg-tux fio]#
    fstab:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    none /dev/pts devpts defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/cdrom /mnt/cd iso9660 ro,user,noauto,unhide 0 0
    /dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
    /dev/fd0 /mnt/fl vfat user,noauto 0 0
    /dev/sda2 /mnt/windows ntfs-3g defaults,users 0 0
    /dev/sda5 swap swap defaults 0 0
    /dev/sda6 / ext3 defaults,noatime 0 0
    PS: Maybe some extra parameters can be added to fstab? Something other than noatime?
    Thanks again
    fiod

  • I accidentally erased a music album that I purchased on iTunes. How can I get the iTunes store to recognize that it is no longer in my iTunes library and download it again?

    I accidentally erased a music album that I purchased on iTunes. How can I get the iTunes store to recognize that it is no longer in my iTunes library and download it again?

    Delete the broken links in iTunes then look at your purchased list to redownload.
    If this happened because you were deleting files from the iTunes folder in Finder, don't.  You have to let iTunes do all the deleting and moving or you will end up with broken links.

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • HT201272 I have purchased 17 books from iTunes in the past 6 years and I can't locate them in my purchased items. They show up in my purchase history but I lost one of the books and would like to download it again. Help!!!!

    In the past 6 years I have purchased many books from iTunes. I lost one of them and would like to download it again, however it is not showing up in my purchased screen. All of my music, movies, and shows are showing but none of my books. They do show up in my purchase history, how can I get them back? Help!

    Welcome to the Apple Community.
    So far as I am aware, books haven't been available for 6 years, so I'm wondering if you mean audiobooks.
    Audiobooks are not currently part of the content that can be re-downloaded.

  • My laptop deleted itunes off of my computer and it will not let me redownload it no matter what method I try. I concluded that this computer wont let me download itunes again. is there any way I can transfer all my music off my ipod to a new computer?

    Please I need help I do not want to lose all the music off this iPod. I have a new laptop and the laptop I originally had all my music on has viruses and I think that may be the problem and it wont let me download iTunes again. Please help me

    Did you authorize your new computer in iTunes under the Store menu?

  • My App Store won't allow me to download any apps. It says such and such app is unable to download try again later  every time. I have enough storage all my devices are up to date on all updates  please help

    My App Store won't allow me to download any apps. It says such and such app is unable to download try again later  every time. I have enough storage all my devices are up to date on all updates  please help

    I am a librarian at a 1:1 iPad school and we are having this problem with all ~3000 student iPads as well at ~300 teacher iPads.  This is extremely frustrating.  I have tried suggested fixes found on other discussion boards but none have worked.

  • I want to download an app, but whenever I click on it, it does the spinning in a circle thing but never asks for my password and never downloads, I want to be able to download apps again! What to do?

    I want to download apps, but whenever I click download, it does the spinning in a circle thing but never asks for my password and never downloads, I want to be able to download apps again! How do I fix this?

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Hi, I am using my icloud on my iphone but am unable to find it on my mac book pro. It's not under my system preferences like it shows under the setup. Can I download it again? Or something. I just need to backup some files on my computer and am unable.

    Hi, I am using my icloud on my iphone but am unable to find it on my mac book pro. It's not under my system preferences like it shows under the setup. Can I download it again? Or something. I just need to backup some files on my computer and am unable.

    The minimum requirement for iCloud is Lion 10.7.5 (Mavericks preferred): the iCloud Preference Pane does not appear on earlier systems - the MobileMe pane appears on Lion and earlier but is now non-functional - you cannot now open or access a MobileMe account.
    To make use of iCloud you will have to upgrade your Mac to Lion or Mavericks, provided it meets the requirements.
    The requirements for Lion are:
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    Lion is available in the Online Apple Store ($19.99). Mountain Lion (10.8.x) is also available there at the same price but there seems little point as the system requirements are the same for Mavericks (10.9.x) - which is free - unless you need to run specific software which will run on Mountain Lion only.
    The requirements for Mountain Lion and Mavericks are:
    OS X v10.6.8 or later
    2GB of memory
    8GB of available space
      and the supported models are:
    iMac (Mid 2007 or newer)
    MacBook (Late 2008 Aluminum, or Early 2009 or newer)
    MacBook Pro (Mid/Late 2007 or newer)
    Xserve (Early 2009)
    MacBook Air (Late 2008 or newer)
    Mac mini (Early 2009 or newer)
    Mac Pro (Early 2008 or newer)
    It is available from the Mac App Store (in Applications).
      You should be aware that PPC programs (such as AppleWorks) will not run on Lion or above; and some other applications may not be compatible - there is a useful compatibility checklist at http://roaringapps.com/apps:table

  • Aperture ate my picture files and they are not recoverable.  The guy at the Genius Bar told me to Trash the App, empty Trash, then go to Purchases and reinstall.  But Purchases says it is "Installed" so it does not let me download it again.  HELP!!!!

    Aperture ate my picture files and they are not recoverable.  The guy at the Genius Bar told me to Trash the App, empty Trash, then go to Purchases and reinstall.  But Purchases says it is "Installed" so it does not let me download it again.  HELP!!!!

    I typed Aperture into Spotlight and sure enough it did show up.
    It looks like it is supposed to be in Apps.
    But it is not there.
    So I clicked on the spotlight Aperture and it opened up the App!!!!
    But I do not know where it is to move it!
    How can I find it?
    While Aperture is running and you are seeing it in the Dock, ctrl-click (or right click) the Dock icon.
    You will see a contextual menu. Click on "Options", then select "Show in Finder".
    And check the "keep in Dock" mark, so you will not lose it from the Dock.

  • I down loaded sygic on my iPhone 3s but the icon is missing even in the search but when I want to download it again ,it say this application is present, how can I make the icon to show up

    I down loaded sygic on my iPhone 3s but the icon is missing even in the search but when I want to download it again ,it say this application is present, how can I make the icon to show up

    - Have you tried a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Try syncing  the iPod to your computer. Then delete from iTunes and sync. that should delete it from the iPod. Then redownload it.

  • I have lost fotofox from my firefox page and I can`t get it to reapear even by downloading it again

    I had trouble with a pop up ad on a page It kept putting up boxes andnot letting me do anything else so I closed Firefox. When I went back into Firefox I no longer had the buttons for Fotofox or Feedly. I have tried downloading them again with no luck. I did add Ad-blocker Plus before trying to do the downloads. Steve

    Hi-NRG Bwoy wrote:
    I erased and re-installed by putting the iMac in Target Disk mode and using my MacBookPro as the host.
    Reet the SMC and the PRAM
     Cheat sheet to help diagnose and fix your Mac
    Perhaps you installed the wrong version OS X onto the iMac, you can't use the disk from another Mac.
    clean the disk.
    If it's not working then use this method to create a bootable 10.6 USB from the iMac machine specific 10.6 disk or the 10.6.3 retail disk on your other Mac, use it to boot the iMac with.
    http://www.maciverse.com/install-os-x-snow-leopard-from-usb-flash-drive.html
    How to erase and install Snow Leopard 10.6

Maybe you are looking for

  • Hard Drive Format Problem

    I wanted to move my Aperture Library to an external Hard Drive but when I select it it tells me it has an unsupported file system. My iPhoto Library happily resides on a HD with the same file system so I did not expect this problem. The HDD is a Sams

  • Problem with bloq invoice

    Hi I have the followig problem: We create Sale orders through VA01. Then whe run a Batc input that reads transaccion VF06. The fact is that some Sale ordors are wrong (price, quantity etc) and the batch creates the Invoice. Then we reverse the docume

  • I have an older i touch, and can't find icloud even after updating my itunes

    i have an older itouch that I am trying to get to use icloud.  i have updated my pc to the newest itunes and synced the ipod, but i still can't find how to get icloud on there.

  • Alert message before report is generated - is this possible?

    Hi all, I have a report that is produced using already-retrieved records. It contains a number of parameter entry fields that pop up before report generation... but before the user fills out the parameter fields, I want to make sure they have remembe

  • Php'ing with dreamweaver

    Hi! I have just started using DW. and i am finding myself facing a wall. I have downloaded a OsCommerce site to my computer, complete with an SQL dump. For those of you out there who doesnt know OsC, it is a open source php Webshop. Now!. what i want