Originally Posted by
Programmer142
Reply to Christopher: Thank you! However,when I run the .bat,it says something about "sun.lang" and I think I saw a "Launcher" in there somewhere...maybe even a "getMainClass"? Yes,I have set the proper location. ....but the program is in C:/ .... My system doesent want me to go snooping around there,maybe my system is blocking java from getting acess?
Perhaps.. There are several things that can cause this. Can you run the program from the command line at all? Can you run the java command? The batch script is just a shortcut so, like regular shortcuts it will not work if it can't find what is pointing to.
Try this at the command prompt:
If it says that it cannot find javac then you need to configure your PATH environmental variable to include the SDK's bin directory.
Actually, I just remembered I wrote a batch script many many years ago to check out if your system is configured correctly. Miracle I still have it. This should make things easier:
@echo off
echo You path is:
echo %PATH%
echo .
echo Your JRE is:
java -version
echo .
echo Your Java compiler version is:
javac -version
echo .
echo Your ant version is:
ant.bat -version
echo Your GIT version is:
git --version
echo .....................
set /P theuserinput="Press [ENTER] to finish"
At the least, you need
java and
javac working.
Oh, and you can add that last line to the end of your
run.bat script and it will give you a chance to see the error message you are getting.
Let us know how you get on.