Why do I need a second java.exe when I alreayd have another in a JDK instal

When I install JDK then there are two instances of java.exe
(and other programs like javaws.exe). One instance in
INSTALL_DIR\bin\
and the other in
INSTALL_DIR\jre\bin\
So why do I need two exes instead of one?
Peter

Hello!
So why do I need two exes instead of one?Don't know the reason myself, ask the developers..........
One instance in INSTALL_DIR\bin\
and the other in
INSTALL_DIR\jre\bin\Yes, checked that, you are right.
But , whats the problem, It hardly takes 2MB more space.
Or, were you implying that ideally java.exe and javaws.exe should not be in "INSTALL_DIR\bin\" as they are involved in running the java programs.
Thanks!

Similar Messages

  • Why do we need downcasting in Java? What is the use of it?

    Why do we need downcasting in Java? What is the use of it?

    here's an example of a valid downcast.
    class Dog {}
    class Dogma extends Dog {}
    class Dogmatic extends Dog {}
    Dog dogwood = new Dogma(); // a Dogma object is upcast to a Dog
    Dogma bush = (Dogma) dogwood; // a Dogma object is downcast from a Dog
    You cannot upcast a Dogmatic to a Dog and then downcast it to a Dogma. You also cannot downcast a Dog to a Dogma. In the working example, above, the dogwood references a Dogma, so you can downcast the Dogma.
    and one more example
    If you have a class hierarchy where class B extends class A (B is a specialization of A) you can use B in the place of A since B supports all the operations that B does. This is called polymorphism.
    When you use an object of type B in place of A you actually do a up-cast, meaning you make the object of type B look like an object of type A (a less specific class type).
    What you are asking about is down-casting which is making an object be of a more specific type, i.e. transforming an object of type A to type B. Is is only allowed if the object was actually created as a type B.
    This is allowed (line 2 is a down-cast):
    A a = new B();
    B b = (B)a;

  • Why do we need to import 'java.lang.annotation' ?

    Hi All,
    Since java.lang.* is the default package for all java file, Why do we need to import 'java.lang.annotation' separately?
    Thanks in advance..
    Regards
    Karthikeya V

    Karthikeya wrote:
    Hi All,
    Since java.lang.* is the default package for all java file, Why do we need to import 'java.lang.annotation' separately?
    Thanks in advance..
    Regards
    Karthikeya VLet me explain that differently: packages on disc usually form a directory structure (but it is not a rule, elements of the same package structure can come from different jars). BUT, this does not automatically mean that packages to Java form some kind of hierarchy as well - they don't. java.lang and java.lang.annotation are simply two completely different, unrelated packages.

  • HT1918 Why do you need my credit card information when I purchase songs from an already purchased Itunes gift card?

    Why do you need my credit card information when I purchase songs from an already purchased Itunes gift card?  If I cannot purchase goods with the prepuchased gift cards, then the card is useless and I want my money back.

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Just because you are being asked to enter your credit card details doesn't mean that it will be charged for your purchases.
    Is it a newly created account ? If it is then unless you use the instructions on this page when creating an account then credit card details will need to be entered before the account can be used in the store : http://support.apple.com/kb/HT2534

  • I cannot install apps that are upgraded to ios4.. im using iphone 2g 3.1.3 this makes me sad.. why does apple need to updates many apps when we cannot update an iphone 2g anymore..

    i cannot install apps that are upgraded to ios4. im using iphone 2g 3.1.3 this makes me sad.. why does apple need to updates many apps when we cannot update an iphone 2g anymore..

    I am having the exact same problem with trying to sync my iPad with my computer. To make a long story short, I had to reinstall Windows for my computer and therefore had to reinstall itunes.
    I have done back ups in the past for my ipod touch and other ipods with no problems, but unfortunately I have never been able to back up my iPad. During a sync, the iPad would always disconnect from my computer and it would never finish. it would say the connection was lost, but nothing is wrong with the connection.
    So now I have over 100 apps and thousands of pictures that I am afraid will be deleted if I run the sync in itunes. I have tried to transfer purchases and it goes through the list of apps, but nothing is ever transferred.
    Any help would be appreciated. I am not interested in jailbreaking my iPad to solve this problem. There should be a fix for this and I want to upgrade to ios 4.3 as the original poster. Please help

  • Why always i need to close Firefox.exe from task manager when visiting some websites?

    Hello dear Mozilla team! I just defaced to the problem , when i'm trying to visit http://cyberprogrammers.net/ website from Firefox browser, its frozen and i need to close firefox.exe from task manager. <a href="http://cyberprogrammers.net/">Cyber Programmers</a> website is working perfect with other browsers, and i try to open it with my friends computer, with Firefox browser and i don't get any error like that, its not frozen. So please help me to understand the problem and solve it. I'm using Latest version of firefox, Windows 8.1. Thanks for your support!

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Why do we need to rebalance disks manually when we shutdown the storage

    Dear all,
    Here is my scenario.
    We have extended RAC setup. Assuming everything is going fine and you have following status:
    SQL> select MOUNT_STATUS,HEADER_STATUS,MODE_STATUS,STATE,NAME,FAILGROUP,PATH from v$asm_disk;
    MOUNT_S HEADER_STATU MODE_ST STATE NAME FAILGROUP PATH
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote2
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote3
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote1
    CACHED MEMBER ONLINE NORMAL DATADG_0003 DATAFG2 /dev/rdisk/asm_data1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0001 FLASHFG2 /dev/rdisk/asm_arch1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0000 FLASHFG1 /dev/rdisk/asm_arch1a
    CACHED MEMBER ONLINE NORMAL DATADG_0000 DATAFG1 /dev/rdisk/asm_data1a
    Now you shutdown one of the storages and have following status:
    $ cd /u01/app/oracle/crs/log/hisdbs01/
    $ ls
    admin alerthisdbs01.log client crsd cssd evmd racg
    $ tail -f alerthisdbs01.log
    2008-06-14 17:00:05.710
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 17:00:05.710
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 17:01:05.720
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 17:01:05.720
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 17:02:09.241
    [cssd(2757)]CRS-1605:CSSD voting file is online: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 18:14:37.660
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 18:14:37.660
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    SQL> select MOUNT_STATUS,HEADER_STATUS,MODE_STATUS,STATE,NAME,FAILGROUP,PATH from v$asm_disk;
    MOUNT_S HEADER_STATU MODE_ST STATE NAME FAILGROUP PATH
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote2
    CLOSED UNKNOWN ONLINE NORMAL /dev/rdisk/asm_data1a
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote3
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote1
    CACHED MEMBER ONLINE NORMAL DATADG_0003 DATAFG2 /dev/rdisk/asm_data1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0001 FLASHFG2 /dev/rdisk/asm_arch1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0000 FLASHFG1 /dev/rdisk/asm_arch1a
    MISSING CANDIDATE OFFLINE FORCING DATADG_0000
    8 rows selected.
    sql> select MOUNT_STATUS,HEADER_STATUS,MODE_STATUS,STATE,NAME,FAILGROUP,PATH from v$asm_disk;
    MOUNT_S HEADER_STATU MODE_ST STATE NAME FAILGROUP PATH
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote3
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote1
    CLOSED UNKNOWN ONLINE NORMAL /dev/rdisk/asm_data1a
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote2
    CACHED MEMBER ONLINE NORMAL FLASHDG_0000 FLASHFG1 /dev/rdisk/asm_arch1a
    CACHED MEMBER ONLINE NORMAL DATADG_0003 DATAFG2 /dev/rdisk/asm_data1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0001 FLASHFG2 /dev/rdisk/asm_arch1b
    MISSING CANDIDATE OFFLINE HUNG DATADG_0000
    8 rows selected.
    After you have verified that the state is "HUNG", you startup the storage
    ========================
    $ cd /u01/app/oracle/crs/log/hisdbs01/
    $ ls
    admin alerthisdbs01.log client crsd cssd evmd racg
    $ tail -f alerthisdbs01.log
    2008-06-14 18:29:37.810
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 18:29:37.810
    [cssd(2757)]CRS-1604:CSSD voting file is offline: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    2008-06-14 18:30:41.241
    [cssd(2757)]CRS-1605:CSSD voting file is online: /dev/rdisk/crs_vote1. Details in /u01/app/oracle/crs/log/hisdbs01/cssd/ocssd.log.
    SQL> select MOUNT_STATUS,HEADER_STATUS,MODE_STATUS,STATE,NAME,FAILGROUP,PATH from v$asm_disk;
    MOUNT_S HEADER_STATU MODE_ST STATE NAME FAILGROUP PATH
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote2
    CLOSED MEMBER ONLINE NORMAL /dev/rdisk/asm_data1a
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote3
    CLOSED FOREIGN ONLINE NORMAL /dev/rdisk/crs_vote1
    CACHED MEMBER ONLINE NORMAL DATADG_0003 DATAFG2 /dev/rdisk/asm_data1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0001 FLASHFG2 /dev/rdisk/asm_arch1b
    CACHED MEMBER ONLINE NORMAL FLASHDG_0000 FLASHFG1 /dev/rdisk/asm_arch1a
    MISSING CANDIDATE OFFLINE HUNG DATADG_0000
    8 rows selected.
    Now my question is WHY do we need to rebalance the asm_data1a MANUALLY because as per above scenario it needs rebalancing. Should not ASM do rebalancing itself?
    Suggest solutions please.
    Thanks a lot. Waiting for your expert opinions.
    br,
    Anjum

    I believe you are using Normal redundancy in this case. When you are making the disk unavailable to Oracle, Oracle tries to drop the disk from diskgroup i.e why you see status as "forcing". After that Oracle recognizes that this disk is required to provide redundancy. At this time the disk goes in Hung state. so when you start the storage, then you have to issue rebalance manually. I am not sure why the design is like that. But I believe it could be due to the fact that disk rebalance takes place only when you add/drop disk. In this case you are not adding a disk but actually making it available at OS level. This will not trigger a rebalance.
    Amit
    http://askdba.org
    http://askdba.org/weblog

  • Why do we need to recompile our project when its property files are change?

    As property files are external files from which we get our data...Why do we need to recompile our proj. every time we make some changes to the files. Is there any solution to it.

    Muktang wrote:
    Thanks All.
    I got the solution.
    Eclipse stores the res folder in its bin folder also..so if i dont change anything and do not compile the project..
    the property files in my bin\res folder does not fget affected by the actual property file..If u change the prop file of bin\res then it will update everythingAnd, as already mentioned, if that is the only one you change, then the next time you recompile your project those changes will be lost. Go into the project properties in Eclipse and reactivate the automatic compilation. Then you need only change the "source" version of the properties file, and Eclipse will update the one in the compiled area automatically, which is the right way to do it. If you want to change both automatically, or change only the one in the compiled area, then don't complain later that your changes either dissappear or become "corrupted".

  • Why do I need to set up sync when I only use 1 computer. A warning showed up that says: Sync encountered an error while connecting: Unknown error. Please try again.

    When I started up my computer this morning, a warning popped up saying: ! Sync encountered an error while connecting: Unknown error. Please try again.
    Why do I need to set up Sync on Firefox when I only use this one computer and do not even have a cell phone?

    If you do not want to use Firefox Sync any more, you can deactivate it. See instructions here: [[How do I manage my Firefox Sync account?]]

  • Plug ins screen says I need to update Java, and when I do I'm told the install was stopped

    The Plug-Ins screen tells me I need to update Java. I click update and everything is fine until the install. I am told that 'the install failed because it was interrupted before it could be completed'. Java says that I am running the latest version, Version 7 update 51, but Firefox says I need to update. What gives?

    Long story short, you do not need to update.
    More info, please see: [https://support.mozilla.org/en-US/questions/990988 Firefox 28.0 is indicating that my installed Java SE 7 U51 is vulnerable (2014 03 20)].

  • Cannot find java.exe when executing Sun Java Enterprise 8.1

    I downloaded and installed Sun Java Enterprise 8.1 (actually because I kept getting not enough space messages I downloaded it in 3 parts). When attempting to execute by clicking on the icon I keep getting a message saying "cannot find java.exe". I previously installed the java runtime successfully. Is anyone familiar with this and if so how do I get around it. I am running Win2k SP4 on a laptop. Thank you for any insight you can provide.

    Hi,
    I faced same problem. I had jdk 1.5.0_05 installed on C: drive directly. But When I check the log though the installation found the version it was assuming it to be at 'C:\Program Files\Java' so even after finding the installed JDK it was failing. When I copied the JDK at 'C:\Program Files\Java' and then uninstalled and reinstalled the Sun java studio 8 again, at this time it asked me about which JDK to use! Then there I could point to C:\jdk1.5.0_05. Then everything went through fine. I guess this is some problem in installation code. Try this out.

  • Why do I need to download Java SE 6 runtime to open Adobe Illustrator on my brand new mac book pro?

    Please help?

    Apple no longer handles or deals with JAVA anymore
    and has left that task up to the publishers of JAVA, Oracle.

  • Using the new Pages 5. Why do I need to compress a document when sending by email?

    I have just started using Pages 5 and apart from the fact that unless other users have updated to the new version they cannot open the document. First time this has happened with me using Apple software. Happened all the time with windows. Why do pages documents need to be compressed when sending them by email? They also end up being larger than the original document.

    What are you using to save as a pdf? Reader doesn't have anything to do with creating the pdf. If you are simply using the "Save As>PDF in Word then yes, it's a Microsoft issue. No Adobe product is involved in that part. Adobe Reader is only seeing what is created.
    But, when you say it's being cut off do you mean it's cutting it off in the pdf itself or is it all visible in the pdf but is being cut off when you print?

  • ADFS2012R2 Install: Why does this need Active Directory Domain Admin Account as one of the pre requisites for installating AD FS server

    Team,
    We were trying to configure AD FS through ADFS Wizard on Windows 2012 R2 box as part of ADFS upgrade from ADFS 2.0 to ADFS 3.0. But the installation got stuck in between as the domain account which we were using does not have admin privileges on the AD side. 
    We have to raise to AD team to elevate the rights of the service accountb we are using.
    Can any one please tell me why having an admin AD account is pre requisite for the AD FS configuration, what are the "Write" changes which occur at Active Directory side post ADFS installtion, we need this details to supply to AD team for the justification
    purpose.
    Would appreciate any detailed response on this query
    thanks
    Lav

    Hi,
    dont know all exact objects ADFS is trying to create in AD, but it needs to create some container and objects under cn=Programm Data,DC=domain,dc=com for sharing certificates.
    We had troube with this because the container does'nt exists.
    Regards
    Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • Why is there a problem with Setup.exe when upgrading from 2.0 to 3.6.3?

    I am trying to upgrade Firefox on a laptop that currently has 2.0. I downloaded 3.6.3 and opened setup. I get an error message indicating that setup cannot run setup.exe. It advises I restart my computer. When I do, it does no good. Please advise.
    == This happened ==
    Just once or twice
    == I tried to upgrade from 2.0 to 3.6.3.

    Firefox 2.0.0.20 is the last ever version of Firefox for Win98 / SE / ME.
    You can try KernelEx to get Firefox 3+ to work, but it would be very slow with an old PC of less than 750Mhz.
    http://sourceforge.net/projects/kernelex/

Maybe you are looking for