Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Will my JAVA Program RUN?

    Hi . . .

    I have a folder named as JAVA on C:\

    If I delete this folder will my JAVA program run from command prompt?
    as there is no java.exe file?

    I have faced this question at the time of interview.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Depends on the directory itself.
    By default, Java will not install to C:\Java, and if it was not installed there (and a good indicator that java.exe or javac.exe are not available in ./bin there, or check the system path to see if its registered), then you would be fine to delete it.

    java.exe will by default install on windows to C:\Program Files\Java\jre#\bin, where # is the version number of java. You definitely don't want to delete this, which is why you need to check if it was installed to C:\JAVA\jre#\bin, which would make that the valid installation path.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •