How can I simplify JRE?

I want my Java application released with JRE in order to support Green Software. But JRE 1.6.0 has 100m size, can I simplify JRE, remove something I don't use? Is there any tools can do that?
Thanks.

youhaodiyi wrote:
mlk wrote:
youhaodiyi wrote:
But JRE 1.6.0 has 100m size, 23m at most.
http://www.java.com/en/download/manual.jsp
After install it, it will take 100mb size. For a green software, I don't want customer to install any thing in their computer.What's "green software", and how do you see trimming the JRE as helping? Why don't you want your customers to install anything? How can they run software without it being installed in some way?

Similar Messages

  • How can we stop jre 7 from blowing us all out of the water?

    I would like to put forth a issue that greatly concerns me which is java 7. In recent times, some browsers have summarily decided that
    they only allow calls to "current" versions of java. So in Mozilla's mindset, the only current version of java now is 6. It is questionable how
    feasible it is for someone to manage to get firefox to call an "older" plugin like 1.5, 1.4 or 1.3. Sounds like it requires a lot of manual
    configuration on each user's pc. Mozilla has put out conflicting advice on this topic.
    http://kb.mozillazine.org/Java#Switching_Java_versions_-_Advanced
    http://plugindoc.mozdev.org/faqs/java.html#Issues
    So my big concern is that when java 7 is released, Mozilla and other browser vendors can then decide 7 is the current version and make
    it nearly impossible to call java 6. Which would be terrible. Oracle would take a fine amount of time to certify 7 and only certify it on the
    most recent versions of the software. I forsee great pain and suffering amongst the customers on this. How can this be prevented?
    (And why doesn't oracle write it's own browser? If you write your own browser you are free from worrying about this nonsense. Also
    the enterprise browser should only connect to enterprise resources and not be used for arbitrary web surfing by the users. Need a way
    to restrict such a program.)
    http://java.com/en/download/faq/firefox_newplugin.xml
    "Starting with Firefox 3.6, Java-based applications will NOT work unless you are running Java version 6 Update 10 or newer. "
    "Starting in Firefox 3.6, Mozilla foundation will drop support on OJI (Open Java Virtual Machine Integration) and will only support the standard NPAPI and NPRuntime interfaces. The Java Plug-in which is in Java version 6 update 10 or newer versions supports the NPAPI and NPRuntime interfaces. Therefore, starting with Firefox 3.6, Java-based applets will NOT work unless you are running Java version 6 Update 10 or newer"

    From the java download page:
    J2SE 5.0 reached its End of Service Life (EOSL) on November 3, 2009, which is the date of the final publicly available update of version 5.0 (J2SE 5.0 Update 22). So not only Mozilla thinks that Java 6 is the only version, even the vendor of java (oracle) thinks that.
    Why is it so that everybody thinks that software from the previous millennium (like JInit) of course has to work with software of this millennium (like firefox 3.6)?!? JRE 1.5 is desupported for nearly 2 Years now....and don't get me started on JInitiator which basically was released 11 years ago, but surely you will find someone who has a company standard of IE8 and JInit (and mutters why this does not work anymore). Now there comes the argument that they don't want to upgrade their forms servers or what ever else because they are afraid that the newer version does not work anymore, but surely they are update happy with their browsers, aren't they? So why just move foreward with parts of the configuration?
    If you look here you may notice that JRE 1.6 will reach EOL in 2012 (2013 with Java for Business) which is about the same time when Forms 10g will reach EOL, so you not only won't get new certifications with forms 10g, you also won't get new Security Patches etc. for forms 10g. This is a perfect reason why to move on to a newer version in both cases.
    I am working for a software vendor myself, and I perfectly understand why software vendors throw away compabilities and start desupporting software after a certain amount of time. If we didn't I still would have to develop my PL/SQL code so it operates flawlessly on Oracle 7 as there were surely customers out there which insisted that this version of the database runs so stable in their site, and they don't need to update as the old database software runs well. And not only that, but the point in time when it takes you longer to actually find the affected versions and patch the fix of a critical bug in all those versions takes longer than finding the bug itself (been there, done that) it is time to throw some old versions out of the window, desupport them and clean the trunk code.
    Bottom line is: if you want to keep one part of your software Jurassic you better keep the whole configuration at the same age. Old software is never meant to run against software from 10 years in the future, and in the opposite it is quite an impossible task to write an infinite backward compatible software.
    cheers

  • How Can I load JRE 1.6 in oracle 10g

    Dear All,
    My development team developed few classes which are using feature of JDK 1.6. But when they compile those classes in Oracle 10g, it raises few errors.
    Should I have to install/load JRE 1.6 in oracle 10g. Presently there lesser than this ver. Please also let me to know how I can?
    Aqeel Nawaz

    Dup How can I change SGA_TARGET IN Oracle 10G.

  • How can I find JRE installed or not thro' script

    hi,
    for my purpose, if any one install JRE, if another version of JRE or same version exits already, then I want to show error message to user that JRE is already installed.
    Is it possible?.
    can I find JRE is already in system or not (specifically in linux) using any script.

    Why would you want to do this?

  • How can I simplify very complex illustrator file, multiple embedded live traces

    Hello!
    If anyone has any advice on this I'd be very grateful! I have created a piece of artwork in illustrator which is to be printed 4x3m for a wall mural. Therefore the file I am working with must either be a vecor or a large enough raster to be printed at such as size. I have set it up at 1 to 10 so its currently A3ish size. Each component of the collage is a separate ai file and contains many points as they are all live traces. It was no problem linking in all these initially but I now need to embed them so as I can give the printers a complete file. I have succeeded embedding every image apart from one last complex one which is crashing the whole thing. Are there any settings I may be able to change to reduce the file size or simplify the graphic (whilst remaining vectors.) Below is the file with the linked images and also the outline of the embedded version so far. The problem I am having is basically because of the final output size required.
    The only thing I can think of doing is opening each separate component and saving as a raster then relinking these - but will this be even more problematic for illustrator that thousands of vector points? I can do it in photoshop if needs be but as the final image is to be printed 4x3m will this be too large to handle? The ai file with all images linked was 25MB but now 500MB with the sky still to embed.
    Thank you!

    Rosie,
    4x3m is quite large, and the comfortable/relevant viewing distance is so much larger than the one you use to read this that you should be bold here, bolder than just saying 150DPI which may be used at normal reading distance depending on printing method.
    You may (literally) see it this way: the viewing angle is important: when you look at a larger image, you move back until you have a comfortable viewing angle, and at the same viewing angle, the viewing distance is proportional to the size. This means that you can determine how the actual final size in  pixel x pixel looks under a certain viewing angle at normal reading distance.

  • How can I simplify the code in this situation?

    I want to create some interaction about ABCDEFGHIJKLM objects. If I l click A and B, the screen will show F. If I click A and C, it will show G.  If I click A and D. it will show F..etc.  When I mouseove A , it will show only L. If I mouseover B, it will show M only. In this situation, I need to create each eventListener (MouseoverA MouseOverB CLICK A, CLICK B, bothAandBClick, bothAandCClick, bothAandDclick......) Can I use other method to simplify the code?
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import flash.ui.Mouse;
    var redbtn:MovieClip=new Redbtn();
    redbtn.x=321;
    redbtn.y=13;
    addChild(redbtn);
    var yellowbtn:MovieClip=new Yellowbtn();
    yellowbtn.x=130;
    yellowbtn.y=106;
    addChild(yellowbtn);
    var bluebtn:MovieClip=new Bluebtn();
    bluebtn.x=726;
    bluebtn.y=89;
    addChild(bluebtn);
    var blackbtn:MovieClip=new Blackbtn();
    blackbtn.x=236;
    blackbtn.y=479;
    addChild(blackbtn);
    var greenbtn:MovieClip=new Greenbtn();
    greenbtn.x=590;
    greenbtn.y=457;
    addChild(greenbtn);
    var page1:MovieClip=new relationship();
    var redBtnClicked:Boolean;
    var blueBtnClicked:Boolean;
    redbtn.addEventListener(MouseEvent.CLICK, onRedBtnClick);
    redbtn.addEventListener(MouseEvent.ROLL_OVER, onRedOver);
    redbtn.addEventListener(MouseEvent.ROLL_OUT, onRedOut);
    bluebtn.addEventListener(MouseEvent.CLICK, onBlueClick);
    bluebtn.addEventListener(MouseEvent.MOUSE_OVER, onBlueOver);
    function onRedOver(evt:MouseEvent):void{
              trace("redover");
              redbtn.gotoAndStop(2);
    function onRedOut(evt:MouseEvent):void{
              trace("redout");
              redbtn.gotoAndStop(3);
    function onBlueOver(evt:MouseEvent):void{
              trace("blueover");
    function onRedBtnClick(evt:MouseEvent):void{
              redBtnClicked=true;
              bothClickedF();
    function onBlueClick(evt:MouseEvent):void{
              blueBtnClicked=true;
              bothClickedF();
    function bothClickedF():void{
              if (blueBtnClicked&& redBtnClicked){
                        trace("two buttons are clicked");
                        addChild(page1);
                        redBtnClicked=false;
                        blueBtnClicked=false;
    page1.trailer_sex.addEventListener(MouseEvent.CLICK, page1Click);
    function page1Click(evt:MouseEvent):void{
       removeChild(page1);

    I means  this
    Click
    A and B  go to C
    A and D go to E
    A and F go to G
    A and I go to J
    A and N go to O
    B and D go to K
    B and F go to L
    B and I go to M
    B and N go to P
    F and I go to Q
    F and N go to R
    MouseOver
    A  over then appear S
    B  over then appear T
    D  over then appear U
    F  over then appear V
    I  over then appear W
    N  over then appear V
    There is not time limit.

  • Where and how can I download JRE?

    I want to run Java bytecode applications, I need the interpreter for running bytecode. Where can I find it?
    Thanks beforehand!

    http://java.sun.com/j2se/1.3/jre/

  • How can I simplify this code?

    Here's some code I am working on for my CompScience class. If any of you more advanced java users can assist me in simpliying this code, it will be much appreciated. Thanks
    import javax.swing.JOptionPane;
    public class lab09b
         public static void main (String args[])     
              String str;     
              int num = 1, den = 1; //Initializes variables for use.         
              Rational2 r3 = new Rational2 (num,den); //Creates new Rational2 object to be used for math operations.     
              str = JOptionPane.showInputDialog("Enter Numerator 1:"); 
              num = Integer.parseInt(str);
              str = JOptionPane.showInputDialog("Enter Denominator 1:");     
              den = Integer.parseInt(str);
              Rational1 rA = new Rational1 (num,den); //Creates object to store original input of fraction 1.
              Rational2 r1 = new Rational2 (num,den); //Creates object to store reduced input of fraction 1.
              str = JOptionPane.showInputDialog("Enter Numerator 2:");
              num = Integer.parseInt(str);
              str = JOptionPane.showInputDialog("Enter Denominator 2:");     
              den = Integer.parseInt(str);
              Rational1 rB = new Rational1 (num,den); //Creates object to store original input of fraction 2.
              Rational2 r2 = new Rational2 (num,den); //Creates object to store reduced input of fraction 1.
              r3.add(r1,r2);
              JOptionPane.showMessageDialog(null,rA.getOriginal()+"+"+rB.getOriginal()+"="+r3.getRational()); //Outputs results of addition
              r3.multiply(r1,r2);
              JOptionPane.showMessageDialog(null,rA.getOriginal()+"*"+rB.getOriginal()+"="+r3.getRational()); //Outputs results of multiplication.                                 
              System.exit(0);     
    class Rational1
         protected int num; // Entered numerator.
         protected int den; // Entered denominator.
         private int getGCF(int n1,int n2) //Method for reduction.
              int rem = 0;
              int gcf = 0;
              do
                   rem = n1 % n2;
                   if (rem == 0)
                   gcf = n2;
                   else
                        n1 = n2;
                        n2 = rem;
              while (rem != 0);
              return gcf;
         public void reduce() //Modifies fraction to a equivalent simplified rational.
              int gcf = getGCF(num,den);
              num = num / gcf;
              den = den / gcf;
         public Rational1(int n, int d) //Constructs Rational1 without reducing it.
              num = n;
              if (d == 0)
                   System.out.println("Illegal denominator; altered to 1");
                   den = 1;
              else
                   den = d;
         public int getNum() //Returns Numerator.
              return num;
         public int getDen() //Returns Denominator.
              return den;
         public String getOriginal() //Returns Original Fraction.
              return ""+num+"/"+den;     
    class Rational2 extends Rational1 //Class used to modify fractions.
         public Rational2(int n, int d) //Constructs Rational2 using superclass constructor.
              super(n,d);
         public String getRational() //Returns the reduced fraction version.
              super.reduce();
              return ""+num+"/"+den;     
         public void add(Rational2 r1, Rational2 r2) //Adds two rationals together.
              den = r1.getDen() * r2.getDen();
              num = r1.getNum() * r2.getDen() + r2.getNum() * r1.getDen();
         public void multiply(Rational2 r1, Rational2 r2) //Multiplies two rationals.
              den = r1.getDen() * r2.getDen();
              num = r1.getNum() * r2.getNum();
    }

    seems simple enough to me.... you want complicated code... I could find you some good complicated code, and you'll look at yours and say, wow, this is pretty simple.
    What part are you expecting to simplify?
    Does it compile? Does it run? Does it do what you expect it to do?

  • How can I let JRE and JDK display English

    I am using Linux. Since I change LC_CTYPE from en_US.UTF-8 to zh_CN.UTF-8, java program begin to display Chinese. I don't want my computer shows half English and half Chinese, I want to know how to let Java Program displays English meanwhile keep LC_CTYP=zh_CN,,,
    Edited by: jptan on Oct 11, 2007 12:04 AM

    Try setting the default locale:
    Locale.setDefault(new Locale("en", "US"));"Sets the default locale for this instance of the Java Virtual Machine. This does not affect the host locale."

  • How can I simplify or Automate saving Photoshop edits back to iPhoto

    I am using Photoshop CS3 as my external editor for iPhoto. I am looking for a way to Automate saving the edited pictures back to iPhoto. Currently I use Command W, Click Save, in "Save As" window I change the format from Photoshop to JPEG, click Save, then click Replace, then click OK for my JPEG options window and my edited file is saved back into iPhoto. I know there must be an easier way to do this. Any suggestions will be greatly appreciated.

    Have you set PS as an external editor?
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically.
    What format are the original files?
    Regards
    TD

  • How can i simplify 3 iPhoto album in 1 with out double pictures

    in iPhoto want to make 3 albums in one without double imagine

    Albums are simply pointers to photos in the library so you can have a photo in as many albums as you want with no duplicates - one photo viewed from as many albums as you want
    LN

  • Verifying JVM problem and how to delete the jre on linux

    I donot know is this the correct forum for this message or not but could you please help me.
    I had first installed jre-1_5_0_07-linux-i586.bin on my Fedora. Then when I tried to installed sjsas_pe-8_2_2005Q2-nb-5_0-fcs-bin-linux.bin
    The wizard asked me where the java sdk was or give it the path of the java. Because I had not yet installed jsdk then (Although I tried to give the path of jre).
    Now I have installed jdk-1_5_0_08-linux-i586.bin but when I started to install sjsas_pe-8_2_2005Q2-nb-5_0-fcs-bin-linux.bin it show that it had started the wizard on the first line and then it display that varyfing JVM and with that it ends.
    The same thing happens when I tried to install netbeans-5_0-linux.bin
    So First how can I install them and second can you please tell me how can I uninstall jre from the system (is there some procedure that I had to follow or I can just simply delete the jre (jre1.5.0_07) folder.
    Adeel Raza

    We are on r12, i have got the request to delete back-dated concurrent request "Purge Concurrent Request and/or Manager Data', but this request doesn't delete physical file (Log File, Out Put) from server side & increasing space , Please share any program which delete the physical file on server side.Please see these docs.
    Purge Concurrent Requests/Manager Data, FNDCPPUR, Not Removing Files From Filesystem [ID 1060707.1]
    Not All Files Are Purged [ID 1124774.1]
    Concurrent Processing - How To Run the Purge Concurrent Request FNDCPPUR, Which Tables Are Purged, And Known Issues Like Files Are Not Deleted From File System or Slow Performance [ID 822368.1]
    Concurrent Processing - Purge Concurrent Request and/or Manager Data Program (FNDCPPUR) [ID 104282.1]
    Thanks,
    Hussein

  • How can I switch different JRE in one PC

    I am sorry to post it in this forum because I post almost the same in JRE forum but I don't get any help there for 2 days.
    My problem is that I have two systems to be used in different JRE enviroment.A system can only run in JRE 1.3 and B system can only run in JRE 1.5 enviroment.But I have to run both in one desktop(which use WinXP SP2),how can I do it . I tried some methods like below:
    Method 1:
    I Edited the registry using the cmd of regedit , edited some like these.But it did not work .
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaPlugin\CLSID]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]CurrentVersion="1.X"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] CurrentVersion="1.X"
    Method 2:This method is post in http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java as belows:
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    I tried this method but it did not work either.
    By the way , the method I use to check whether the switch of JRE versions is work correctly is this :
    1.Create a html file which contains OBJECT tag
    2.Double click the html file and then check the information in the java console in the window's taskbar.
    3.What the java console says is the JRE version I am using now
    Is this check method right?
    I found that many people confronted the same problem like me but they resolved it by the method of changing control panel, so I am doubt about the check method.
    Can anybody give me some help?
    Thanks a lot in advantage.

    Some additional information:
    I tried the method of changing control panel by JRE1.3's control panel to change current JRE enviroment to JRE1.3 (see http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java), and I found that in the IE->Tool->Intenet Option->Detail Setting Panel the JRE version used in IE had been changed to JRE1.3 really.But when I connect System A(which use JRE1.3) use IE,the started java console is still JRE1.5 and some applets can't run in the enviroment.

  • I have two Apple ID Accounts. How can I combine them so I can simplify updates and purchases?

    I have two Apple ID's (accounts). How can I combine these accounts into one so I can simplify updates and purchases?

    Sorry, but Apple IDs/iTunes Store accounts cannot be merged.
    Regards.

  • How can I change between different JRE in the Same PC

    I have two systems.A system can only run in JRE 1.3 and B system can only run in JRE 1.5 enviroment.But I have to run both in one desktop(which use WinXP SP2),how can I do it . I tried to edit the system config using the cmd of regedit , edited some like these.But it did not work .Could anybody tell me how to do? Thanks a lot in advantage.
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{8AD9C840-044E-11D1-B3E9-00805F499D93}\InprocServer32]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JavaPlugin\CLSID]
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit]CurrentVersion="1.X"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment] CurrentVersion="1.X"
    The information of operation system is omitted.
    Message was edited by:
    daiwill
    Operation System is WinXP SP2
    Message was edited by:
    daiwill

    I found some clues last week in these linkes.
    http://forum.java.sun.com/thread.jspa?threadID=657406&tstart=150
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html#java
    Which has the contents like the below:
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    I tried the method of change the control panel but they did not work either.
    Any other helps?
    Thanks in advantage.
    Message was edited by:
    daiwill

Maybe you are looking for

  • Fields missing from PSA Hierarchy transfer structures

    Hi, I am facing a strange problem. After replicating the source system and running program RS_TRANSTRU_ACTIVATE_ALL  we are getting errors in 0Equipment_hier and 0funct_loc_hier. it complains about missing equnr and tplnr fields from the transfer str

  • Menu Seperator Color Change in java application

    Hi all, I am able to change the background color of the menu. But not able to change the menu sperator color. Here is my code menuBar = new JMenuBar(); menu = new JMenu("A Menu"); menu.setOpaque(true); menu.setBackground(Color.RED); menu.setForegroun

  • Portal Runtime Error - com.sapportals.portal.appintegrator.ApplicationIntegratorException: Unknown system alias.

    Hi Experts, Can anyone please help me on the below Portal Runtime Exception. 10:59_26/08/14_0043_3937250 [EXCEPTION] com.sapportals.portal.appintegrator.ApplicationIntegratorException: Unknown system alias. System Alias:  'SAP_BW', User:          'Te

  • SWF File - Play this slide OK, Preview Not

    I converted a video AVI file to a SWF file and inserted it into a slide. Selecting "play this slide" results in the video animation playing without problem. Selecting "preview" the project, or multiple signs results in only the audio playing for the

  • Automatic creation of transport request

    Hi Experts, I have a custom table. Whenever I have inserted some new entries into my table, I would like to add these entries to a new request. So is there any FM which will asks to create a request? I have to use this FM in my report program. And th