tags:

views:

20

answers:

0

Hi.

I need to create an executable file, run, that will call # java for my classes

I am compiling my java project with SCons:

libFiles = "lib/myLibs.jar"

# Build the environment
env = Environment(JAVACLASSPATH = libFiles, JAVASOURCEPATH = '.')
env.Java(target = 'classes', source = 'src')

All of the classes are stored in folder classes/ and all the source files are in /src . To run the program, I have to

# cd classes/
# java -cp . myProg

Is there a way to have SCons create an executable in the root directory so it can call java by itself? I looked at an existing project that used env.Program() but that was only for C++.

Thanks!