[Scons-users] Java with tool call

William Deegan bill at baddogconsulting.com
Thu Nov 22 16:50:25 EST 2012


Phil,

On Nov 22, 2012, at 5:13 AM, Philipp Kraus <philipp.kraus at flashpixx.de> wrote:


> Hello,

>

> I have create the env object with

> env = Environment( tools = [] )

>

> and I would like to use Java (javac, jar, javah) and try to set it up with

> env.Tool("java")

>

> and I get the error: EnvironmentError: No tool named 'Java': not a Zip file:

>

> How can I add the Java support?


Take a look at the manpage for the list of tools.
http://scons.org/doc/production/HTML/scons-man.html

I see:
javac, javah, jar

As the tools you likely want to enable.
Note that you could do:
env = Environment(tools = ['jar','javac','javah'])
Instead of adding them via env.Tool() later on.

Hope that helps!
-Bill


More information about the Scons-users mailing list