Can't compile
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 1
- Joined: Sun Apr 03, 2005 7:35 pm
- Location: Fort Bliss
Can't compile
I wrote a program for a class and I go and try to compile it and a warning pops up and says "The system cannot find the file specified." I am new to writing programs and I have erased and downloaded the Java SDK a couple times and it still will not work. I have a project due in a few days and I am out of ideas on what to do.
Thank you much, Brian
Please try reinstalling the JDK, and TextPad in that order.
If that doesn't work, TextPad determines which javac.exe it should use, by looking at the value of the current version in the Registry.
The solution should be to change the Registry key to the correct file path for the current version of the JDK.
Please expand the Register as in the following example:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4
Clicking on Java Development Kit reveals the current version value, 1.4 in the example above. Clicking on the plus sign next to Java Development Kit reveals any other versions of the JDK. Clicking on the key of the Current version, you should see "JavaHome" in the right hand pane. Right click on JavaHome and select "Modify". Type in the correct path for the Current version.
You may need administrator rights to do this.
I hope this helps.
If that doesn't work, TextPad determines which javac.exe it should use, by looking at the value of the current version in the Registry.
The solution should be to change the Registry key to the correct file path for the current version of the JDK.
Please expand the Register as in the following example:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4
Clicking on Java Development Kit reveals the current version value, 1.4 in the example above. Clicking on the plus sign next to Java Development Kit reveals any other versions of the JDK. Clicking on the key of the Current version, you should see "JavaHome" in the right hand pane. Right click on JavaHome and select "Modify". Type in the correct path for the Current version.
You may need administrator rights to do this.
I hope this helps.
Helios Software Solutions