Build Script

Hello,

I don;t know if this is the right place to post but here goes…

I am trying out Paul Irish’s HTML5 Boilerplate and i really like it so far but I am trying to get the build script working.

I have java installed and I installed WinAnt, I opened a command prompt and navigated to my build directory and ran “ant build” and I just get this error:

‘“java.exe”’ is not recognised as an internal or external command, operable program or batch file.

Any ideas?

Neil

Java needs to be in Window’s Path system variable.

Go to the control panel, click system, and find the Advanced Settings (it’s different on different versions of windows…I’m on 7 and forget the path on other versions…)

What you’re looking for is Environment Variables

Once there, find the PATH variable, click edit and add the path to the Java bin folder to the end. You’ll need to separate your path from the others with a semicolon.

It might be easier to copy the value, add your path, then paste the whole thing back in.

So, you’ll end up with something that looks like:

existing path;existing path;existing path;c:\path\ o\java\bin;

Click okay and change is saved, close out the rest of the windows - including your command prompt.

Reopen a command prompt and type “echo %PATH%” (no quotes), you should see your addition on the end.

Now say “java” and you should get the ‘you said to do something, but didn’t say what’ boilerplate.

now you know the change has taken effect and works properly, continue with your ant adventure :slight_smile:

Thanks

Thank a lot. It was really helpful.