Hello and welcome to our community! Is this your first visit?
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
    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. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 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'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


Posting Permissions

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