Can I get rid of parts of the JRE for my app?

I am trying to figure out how to easily deploy a stand-alone desktop Swing application. It's more like Microsoft Word than the typical Swing business app that deals with networks and databases. I'd like to make this easily downloadable by regular people, like a 10-year old who has installed an IM client, or a 70-year old who has downloaded the latest version of a browser, i.e., just download an installation file and then click to install in the relatively standard manner in which Windows apps are installed.
What I am definitely trying to avoid is making the user go to Sun's Java distribution website, which is written by computer geeks for computer geeks. If a potential user sees that, they'll get confused, give-up, and I'll have lost a potential user.. Since a Swing application that is developed and tested using an earlier version of the JRE won't necessarily work with a later version, I can't make the assumption that as long as the latest JRE is installed on the user machine, everything is fine. As far as I can tell, I need to download a self-contained version of the JRE that I developed with in order to guarantee that the app will run as expected. I also don't want the user to have to download a 15 Mb 1.5 JRE, or the purported 50 Mb 1.6 JRE just to be able to run my little program. (I'm really starting to see why there are no popular Java desktop apps.)
So my question is - if I compile my application down into machine code from binary code, does anyone know if can I get away with running it with a stripped-down JRE? I'm wondering if I can get rid of parts of the JRE that deal with things like interpreting bytecode, networking or database access, none of which I need to worry about. Sun's legal department might not like this, but is this at all technically feasible? I'm actually happy to hear about any ideas regarding shrinking the size of the distribution. Thanks.

I voted for the enhancement request. It is almost exactly what I am concerned with.
I am a big fan of Excelsior Jet. I tried out the free version about a year-and-a-half ago, and was pretty happy with it. It was actually the only machine-code compiler I tried out of several that worked. If I ever get to the point where I can start selling my app, I expect that I'll use it. I've been checking the website every so often since then, and reading about the next version, where a JRE can be included in the distribution. That helped spark my original question. While the worry about making sure my application had the right JRE version will be solved, it still bugs me that I have to ship so much unnecessary JRE code. (I blame Sun for that, not Excelsior Jet.) I was wondering if it was at all technically feasible to strip out the unnecessary code, irrespective of the legal issues. When compiled to byte-code, my program is under 1 MB. When I compiled it to machine code under JDK 1.4, it was about 5 MB. I imagine that compiling to machine-code with the included 1.5 JRE, after compression, will result in a size in the 15-20 MB range. And this after refactoring my program to where it's about 1/3 it's original size. I'm really worried about the direction this is going, and I don't even want to think about what including the 1.6 JRE will require.
Where did you read that I've been programming Java since '97. I was a contractor at Sun between 1995 and 1997, and started working on Java 1.0 apps back then, but I don't ever remember mentioning that. If you asked because you're thinking I should know more about JVM/JRE issues, you're probably right, but I focus almost exclusively on higher-level application and GUI/Graphics issues. The deep-down Java stuff makes me break out into a cold-sweat.

Similar Messages

  • What can I get rid off to clear the most space on my iPhone 4?

    What can I get rid off to clear the most space on my iPhone 4?

    Photos and videos usually take a lot of space. You can import them from the Camera Roll to a computer and delete them all from the phone or keep some if desired. If you delete and later decide you want some of them back on the phone you can sync them back via iTunes. Instructions for importing from the phone to the computer: http://support.apple.com/kb/ht4083

  • My iPhone 5 has a grey-ish blue splodge on the screen. What is it and how can I get rid of it? The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it to hard, not that I remember.

    The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it too hard, not that I remember.  I  noticed a while ago. Will it disappear? I can see the things that should be where the spot is eg it's on the keyboard and I can see the keys. Will this spread to the whole screen? How can u get rid of this?

    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax.

  • Can't get rid of items from the Side bar

    I placed some movies in the side bar and now I can't get rid of them. I was able to remove one movie that I placed in the side bar today from the side bar, but some other movies I can't remove. I don't remember putting these movies in the side bar. When I left click on these movies all that comes up is Sidebar Preferences.

    I found the answer by browsing. I am supposed to hold the Command key down and drag the item off the sidebar. It worked. I was trying to right click the item and remove it that way which didn't work.

  • How can I get rid of some of the icons cluttering the toolbar?

    My browser is full of unnecessary icons which is cluttering the top section of my screen. For example I have several on recipes, several on clouds, a couple on screensavers, wall papers and e-cards. How can I get rid of some of them?

    That is some troubleshooting data:
    *https://support.mozilla.org/kb/Using+the+Troubleshooting+Information+page
    Do you mean the Bookmarks Toolbar?
    *Firefox menu button > Options
    *View > Toolbars (press F10 to display the menu bar)
    *Right-click empty toolbar area
    *https://support.mozilla.org/kb/how-do-i-use-bookmarks
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How can I get rid of firefox, and the download everytime i go to home page

    Firfox Setup Stub 32.0 exe, automatically downloads itself every time I go to the my home page. Why? I don't use firefox, I like Chrome. I have downloaded FF before, just to try to get rid of the annoying download page

    Have you set the Firefox download page as the home page in Chrome? It can happen by accident. You should be able to set it back to the default in the Chrome settings. Here's how to set the home page in Chrome: https://support.google.com/chrome/answer/95314?hl=en
    Btw, if you've stopped using Firefox a while ago, it has gotten much faster and more lightweight recently. You might want to give it another try.
    Cheers!
    Kadir

  • How can i get rid of condensation behind the screen?

    Hi, my iPod works fine, but after leaving it in my bag during footy training outside and it then raining, it has condesation marks all over the screen. The functionality of the iPod is fine but it is very irratating having these marks over the screen. They are not strong enough to make reading the iPod hard but obviously I'd like to get rid of them.
    I understand as it is a matter involving water my warranty won't cover it?
    Is there anything else I can do? How hard is it to take it apart?

    There are some liquids that you can buy in the shops which makes you clean those marks from your iPod. You can find them in the Apple Stores and most of the computer shops.

  • Can I get rid of Exchange with the new Server just released?

    Hi, I saw the new 8 core machine and all the programs. I also recieved an email from Apple telling me about all the calendaring it has.
    I want to get rid of Exchange. I have Outlook on 99.9% the clients, however, and they're not going to get rid of Windows or Office any time soon. Will the new server just released and the server software do Exchange server calendaring, scheduling, etc. just like (or better) than Exchange does?
    Thanks.

    iCalServer uses the new standard CalDAV protocol for calendaring. Exchange uses MS's own proprietary protocols - we do not have those implemented in iCalServer. As a result your existing Outlook users can't use iCalServer right now.
    The good news is that there is at least one group working on a plugin for Outlook that will enable access to iCalServer. Whilst this is still alpha quality right now progress is being made, and hopefully in the near future thee will be something usable. See <http://openconnector.org>.

  • Where can i get a replacement part of  the wireless keyboard A1314

    I wonder if I  can  get some replacement part (capss lock keys) of the wireless keyboard at any apple store??

    Call the Apple store and find out.
    Barry

  • How can I get rid of some of the crap on my ipad.Like newsstand stocks etc didn't want them.Just like everything Else on these things they can tell us what I  can have on something I bought.Also I want thumbs back on safari.How do I do all this.

    Hi I hope my question will be answered on here apple can't.

    Think of it this way...
    There's a lot of stuff that's in iOS5 that you'll probably never use.  You don't worry about trying to delete that stuff, do you?
    Some of the Apple apps have direct ties into the iOS which makes it difficult to selectively delete them.
    No way to get rid of tabs that I know of.
    Let Apple know what you think here:
    http://www.apple.com/feedback/ipad.html
    Matt

  • HT201269 All the photographs stored on my computer ended up getting put on my iPhone. How can I get rid of them from the iPhone?

    All the photographs stored on my computer ended up getting put on my iPhone. How can I remove them from the iPhone?

    Photos synced to your phone can only be removed from your phone the same way they got there, through the iTunes sync process. Connect your phone, iTunes running, & under the photos tab remove the checks for all albums/folders you do not want on your phone. Hit the apply/sync button & they will be removed from your phone.

  • Can't get rid of space without the page shifting out of view

    Hello. I've got a big space appearing above my title line in this page. http://www.sarahpellerdesign.com/jordan/schooner.html See how there is a lot of white space above the words "Schooner Adventuress"? So, I went to the code and saw this on line 56:  <p>& n b s p;</p> (put spaces in there, otherwise it won't show up)
    I tried to delete that line and it resulted in the entire page below the nav bar shifting over to the right, so that it is sort of "attached" to the right end of the nav bar. When I preview it in the Chrome browser, it looks like nothing's changed, but it remains shifted to the right in dreamweaver. Unfortunately, in that position, I can't get to the content. It's stuck off the side of the page and I can't scroll over to it.
    Anyone know how to fix this?
    Thanks!

    Hi Sarah -
    Code view is a better place to delete unwanted code precisely. 
    In design view you can accidently remove more than you intended and disrupt your layout.
    You also have some wonky partial table code at the very bottom.
    <table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>  </tr>
    </table>
    After you remove it, run your URL through the validator at
    http://validator.w3.org/

  • How can i get rid of all of the "other" stuff on my ipod.

    I can't get it and my ipod is over capacity because of the "other" stuff on there .

    An other less that about 1 1/2 GB is normal.
    If larger that large usually indicates that the "other" includes corrupted files.  Usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Backing up, updating, and restoring iOS software

  • I can't get rid of bing in the search bar

    How can I get my default search engine back to google?  Everything I put into the search bar gets searched with bing as the search engine.

    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • I can't get rid of BEARSHAREand I never asked for it. I wantit gone.

    I am trying to get rid of Bearshare tab thing from my internet. I am computer illiterate and with my limited knowledge I can't figure it out. I did erase everything from my programs and control panel but it won't stop. I also have this coupon crap tab on my tab browser that is not erasing when I ask. These started and I have no clue where they came from. If you have an idea please help!!!!! Thank you so much. Erika

    '''Scan for malware'''
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try some of the following programs to scan for malware:
    * [http://www.malwarebytes.org/mbam.php MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://windows.microsoft.com/MSE Microsoft Security Essentials] (A good permanent anti-virus if you don't already have one)
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    '''Reset Firefox'''
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • Adobe Connect 9 Add-in for Linux

    Hello, Are you planning on releasing the Linux add-in for adobe connect 9 anytime soon?. The 9 version has been released for a while now but there is no news about the Linux add-in, we have quite a few Linux users and they are already starting to com

  • Toshiba External HD Still Read Only after Installing Tuxera

    I recently purchased a Toshiba 1TB external hard drive.  I need to be able to move files from my MacBook Pro running Snow Leopard to my older Windows XP computer.  Since I need both computers to be able to read and write to this external I installed

  • Floating point numbers

    hi! i have to write a program and i'm quite new to this java lark and am having some problems. This is the code I have so far: import java.util.*; //A Program to calculate the area of squares, rectangles, triangles and circles public class a      pub

  • Problems sharing MacbookAir ethernet internet to Ipad

    The overall process for sharing my MacbookAir ethernet internet to my IPad and my mobile phone is troublesome.Basically I have to literally activate/deactivate the "Internet sharing" box under System Preferences/Sharing several times before I can get

  • I can print but I can't scan with my air express ?

    like I said I can print fine but I cant scan using airport express why ?