Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Will my JAVA Program RUN?
11-23-2010, 05:04 PM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
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.
11-24-2010, 06:24 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,648 Times in 2,617 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');