'ant demo.start' fails for me with "couldn't find executable for script h2.start". JAVA_HOME and ANT_HOME are pointing to java 7 and ant 1.8.2 or 1.7.1 on Mac/Lion. Here's build output below including including verbose output for the error:
############# bos-mp3kw:setup mhessler$ ant demo.start Buildfile: /Users/mhessler/akamai/activiti-5.10/setup/build.xml
demo.install:
internal.cfg.create: [copy] Copying 1 file to /Users/mhessler/akamai/activiti-5.10/setup/build/activiti-cfg [zip] Building zip: /Users/mhessler/akamai/activiti-5.10/setup/build/activiti-cfg.jar [echo] copying configuration to ../workspace/activiti-engine-examples/src/main/config [unzip] Expanding: /Users/mhessler/akamai/activiti-5.10/setup/build/activiti-cfg.jar into /Users/mhessler/akamai/activiti-5.10/workspace/activiti-engine-examples/src/main/config
internal.classpath.libs:
internal.taskdef.launch:
h2.start: [echo] starting H2 database…
BUILD FAILED /Users/mhessler/akamai/activiti-5.10/setup/build.xml:208: couldn't find executable for script /Users/mhessler/akamai/activiti-5.10/apps/h2/h2.start at org.activiti.engine.impl.ant.LaunchTask.getExecutable(LaunchTask.java:85) at org.activiti.engine.impl.ant.LaunchTask.execute(LaunchTask.java:45) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) #############
The directory is correct but it seems LaunchTask class can't find 'h2.start.sh' unless 'h2.start' is symlinked to it (in which case other scripts fail similarly). Does Mac OS require other known steps I'm overlooking? Mark
We're all developing on macs, so you can assume that is the best tested platform 😉
Are the .sh files executable (otherwise: chmod +x them). It's very strange that it looks for the file without the 'sh'. Would you be able to switch to jdk6 quickly and see if the error still happens? That might be the only thing which we didn't do (using jdk7) when we tested 5.10.
Thanks for your reply. All .sh scripts installed as executable so given the stacktrace the issue is probably java-related. I'm having trouble finding an SE 6 jre for Mac/Lion (evidently pulled from Apple support), so for now I'm working on Ubuntu 10.04 where 'ant demo.start' ran successfully for me. I'll post again if I'm able to confirm results with a Java 6 jre.