Well i can load Class from file, but how i save it to file?

Hello,
Let's say we can load some Class using ClassLoader, but if i want to do the opposite? I would like to make a .class file, for this i have got Class object and few methods.
the start would look like this;
Class<?> cl = ....;
String nameWithPackages = cl.getName().replaceAll("\\.", "/")+".class"
File file = new File(nameWithPackages);
... Well now i need to fill the class file with the data, any ideas?
Thanks
Juraj

morgalr wrote:
Don't use a class file for data, use a JAR or ZIP.I mean it's data - the bytecode of the class, but not sure where i get the it, because there isn't any method like that in Class.
To better explain it lets say i got class
public class SomeClass {
}Let's say i got the SomeClass
Class<?> thisIsSomeClass = ...; //
//now i want to make file SomeClass.class so i can use this class later
...Edited by: Juraj on Jul 31, 2010 10:11 AM

Similar Messages

  • Why suddenly will Adobe not print a PDF file but will only save as .prn file I cannot print

    Why suddenly will Adobe not print a PDF file but will only save as .prn file that my computer will not recognize?  This is a new problem never experienced before.  I have tried updating all versions of Adobe Reader but still no results.

    Turn off the "print to file" option.

  • Please can someone tell me how to save a MP3 file from my email on my iPad so I can put in on Facebook? Thankyou

    Please can someone tell me how to save a MP3 file from my email on my iPad so I can put it on Faceboo? I use hotmail and please tell me step by step as I am not a tech guru lol. Thankyou

    Hi jscher200,
    Thank you for your reply, sorry for the VERY late late response, but I have just figured out how to control this separate 'panel'. I find it really useful for monitoring Google Analytics in as it can just sit there running. It does have its limitations, as it's a limited size (you can't expand it to full screen view), so you can only ever see a vertical section of a website and need to scroll to look to the right or left, but I have the live view of people accessing my website running on there and if the numbers start racking up at any time, I can scroll to look and see what pages they are accessing, where they've been referred from, etc.
    To get it to work, you save a website address in the Bookmarks Toolbar and when you can see it sitting on the toolbar at the top of the screen with its little icon, right click on it then click 'properties', then tick the box 'Load this bookmark in the sidebar'. The next time you click on this bookmark to open the website, it will load in this sidebar, which looks like a separate 'window' but is immovable. You can only have one sidebar application running at a time, but can change it by right clicking on the bookmark you want to load in there and it will then change to that one next time you click on that bookmark.
    I hope this might be useful to others, as I asked for help with this on loads of forums and not one person knew that this existed - even really skilled techies!

  • 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

  • I have an iphone 4  I can get texts from all but I person. Why? They can get mine

    I have an iphone4  I can get texts from everyone but one person. They can get mine. This started all of a sudden. Any suggestions?

    the mute button is a switch you need to flip, not touch. if you look at it and see color, its on.

  • Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do no

    Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do not get an installation screen or a chance to enter the Licence no.

    Use another browser.
    Mylenium

  • Hi, I am trying to download IOS7 to my ipad. The programme has locked at the 'Choose a Wif-Fi network' page, a box says 'joining other network' but the page is greyed out and can't move from it.  How can I clear this screen and finish the download. Thanks

    Hi, I am trying to download IOS7 (not sure if it's 1 or 2) to my ipad. The programme has locked at the 'Choose a Wif-Fi network' page, a box says 'joining other network' but the page is greyed out and can't move from it.  How can I clear this screen and finish the download. Thanks

    Hello Den53,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/HT1430?viewlocale=en_US
    Press and hold the Sleep/Wake button for a few seconds until the red "slide to power off" slider appears, and then slide the slider.
    After the device has turned off, press and hold the Sleep/Wake button until the Apple logo appears.
    Best of luck,
    Mario

  • HT2518 I don't have .psd files but how do I migrate my Photoshop Elements catalog with tags from Windows

    I don't have .psd files but how do I migrate my Photoshop Elements catalog with tags from Windows?

    That's really disappointing, I purchased the download version.
    I refuse to pay another £55
    Thanks for your help anyway

  • I just installed a new Lynksys router and now can not print from iPad but can from iPhone

    i just install a new Lynksys router now i can't print from iPad but can from iPhone.  with iPad can't find printer.  if i reinstall printer on the router it will print 1-3 times then can't find printer but i can print from iPhone

    What model, version Linksys router? Is the firmware up-to-date?
    What iOS levels are you running on iPad, iPhone?
    What make, model printer are you using? Is the firmware up-to-date?

  • I can download new music from itunes but how do I sync to my ipod (7th generation)???

    I can download new music from itunes but how do I sync to my ipod, 7th generation   help and frustrated???????

    iTunes: Syncing media content to iOS devices and iPod - http://support.apple.com/kb/HT1351 - detailed example: https://discussions.apple.com/message/18860187
    iOS: Syncing with iTunes - http://support.apple.com/kb/ht1386 -  You can sync everything or selected playlists.  "WIth iTunes 10, when automatically syncing, you can also manually drag items to the iDevice. These will show up in Manually Added Songs at the bottom of the Music tab after Playlists, Artists Genre, Albums." - https://discussions.apple.com/message/18919754
    iTunes 10 for Mac: Sync your device over a Wi-Fi network - http://support.apple.com/kb/PH2555

  • TS4147 My Contacts are coming from my ICloud Account.  I want it to come from my GMAil Account.  I can remove it from ICloud, but Contacts isn't an option under GMAIL.  What can I do?

    My Contacts are coming from my ICloud Account.  I want it to come from my GMAil Account.  I can remove it from ICloud, but Contacts isn't an option under GMAIL.  What can I do?  Is there a way to merge my gmail contacts to icloud?

    If the old ID is yours, and if your current ID was created by editing the details of this old ID (rather than being an entirely new ID), go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Loaded pre12 from disc but now disc refuses to eject.

    loaded software from disc but now disc wont eject. Using Windows 7.
    Message was edited by: Ken@

    indefatigable
    Thanks for that major contribution related to your McAfee virus scanning and its impact on some DVD functions.
    I see you helped here and in another thread related to this matter.
    http://forums.adobe.com/thread/1376713?tstart=0
    This seems to be an issue which should be popping up with greater frequency.
    Thanks for sharing.
    ATR

  • How I can load images from Creative Cloud storage in photoshop plugin, created in Extension Builder 3 with use html5/css/js?

    How I can load images from Creative Cloud storage in photoshop plugin, created in Extension Builder 3 with use html5/css/js ?

    At this point there is no API for accessing the cloud storage outside Adobe's own closed loop.
    Mylenium

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  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 Fusionand 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. Boot Camp is only available with Leopard or Snow Leopard. 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.

  • Hi friends i am update my iphone 4 i have back up file but how show to itunes enter the password to unlock iphone back up file plz help me i forget my iphone back passoword

    hi friends i am update my iphone 4 i have back up file but how show to itunes enter the password to unlock iphone back up file plz help me i forget my iphone back passoword

    Then you won't be able to use that backup. You might as well delete it and start over.

Maybe you are looking for