Closed kienerj closed 12 years ago
He,
first of all we need to know on which branch you are currently working. I will for now assume that you work on the master branch, if not please correct me.
Regarding the build.properties
. No the code is correct. The data/build.properties
is a different file needed for something else. You need to create a new build.properties
in the root directory and there set knime.sdk variable, e.g.,
knime.sdk=/path/to/your/SDK
Please try this first as I assume that some of your downstream problems may originate from loading the wrong build.properties
.
Cheers, Stephan
Hi,
Thanks for your email. My name is Luis and I'm one of the Generic Knime Nodes developers.
GKN is a work in process and we're working hard to improve it.
You are right, the information on the README file is not clear enough. The "knime.sdk" variable should be set to the path where you installed Knime. In Mac OS it's usually "/Applications/KNIME", in Windows and *nix systems it would be the folder where you have unzipped the knime archive.
must be
You must run ant on the same folder where the "build.xml" file is
found. Since the "build.properties" file is on that same folder, the
construct "'<property file=
'"build.properties"/>' is correct.
Would you try that out and let me know?
Regards, Luis
On Fri, Apr 20, 2012 at 8:23 AM, kienerj reply@reply.github.com wrote:
Hi,
I tried to build the Knime nodes however I ran into several issues. First it is unclear from the README how to set the Knime SDK path. Only the error message when trying to build clears this (to set the variable knime.sdk = path/to/SDK)
However this did not help. There seems to be an error in the build file:
must be
else SDK is never detected.
After having figured that out I still get an error when building:
Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:138: The following error occurred while executing this line: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:144: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec ute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single CheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorre ct at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.
(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 38 more Note: Windows XP, I'm Admin.
Reply to this email directly or view it on GitHub: https://github.com/roettig/GenericKnimeNodes/issues/36
Luis Javier de la Garza Treviño
Hi,
please see my notes below.
Yours sincerely,
MSc. Inf. Björn Kahlert
[cid:12D5553D-AD16-40D5-986F-BF6FABF0587B] [cid:53AF5887-D1F2-4BAA-BF6C-CF01BF1C6DB7]
Institute of Computer Science Software Engineering Working Group Algorithmic Bioinformatics Working Group
Freie Universität Berlin Takustr. 9, 14195 Berlin Phone +49 30 838 75228, Room K25
On Apr 20, 2012, at 8:23 AM, kienerj wrote:
Hi,
I tried to build the Knime nodes however I ran into several issues. First it is unclear from the README how to set the Knime SDK path.
README states "Please adjust the file build.properties and make the property knimeSDKpath point to the path of the KNIME SDK root." Supposing you have unpacked the KNIME SDK download to /Users/john.doe/knime your build.properties which resides in your GenericWorkflowNodes download as followed:
knime.sdk=/Users/john.doe/knime
Only the error message when trying to build clears this (to set the variable knime.sdk = path/to/SDK)
However this did not help. There seems to be an error in the build file:
must be
else SDK is never detected.
These are different build.properties files. The one in the root directory is the one used by the build script. The one in the data directory is a file which is needed by the generated plugins.
Since we are working on a major update I would suggest you to try out the develop branch. The version you'll find there applies "convention over configuration" and should be easier for you to get started.
https://github.com/roettig/GenericKnimeNodes/tree/develop
After having figured that out I still get an error when building:
Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:138: The following error occurred while executing this line: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:144: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec ute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single CheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorre
ct
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.
Note: Windows XP, I'm Admin.
Reply to this email directly or view it on GitHub: https://github.com/roettig/GenericKnimeNodes/issues/36
Yes, I used Master branch.
I now created a build.properties in root dir, eg. roettig-GenericKnimeNodes and set knime.sdk. The build starts. However I get the same Java Exception as in my previous post:
Buildfile: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml
knime.sdk.condition:
knime.sdk.check:
clean:
prepare: [echo] knime.sdk.exists: true [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200 [mkdir] Created dir: Z:\roettig-GenericKnimeNodes-d8c3f98\build
base.plugin.build: [echo] Debug: true [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\li
[copy] Copying 11 files to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePl
gin\lib [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\ME A-INF [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n\META-INF
base.plugin.classes.build: [javac] Compiling 170 source files to C:\Temp\GKN-2012-04-20T12-29-36-474+0 00\basePlugin [touch] Creating C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\org\ba lproject\knime\baseplugin.properties [propertyfile] Updating property file: C:\Temp\GKN-2012-04-20T12-29-36-474+0200 basePlugin\org\ballproject\knime\baseplugin.properties [copy] Copying 218 files to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\baseP ugin [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\da a [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n\data [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\ic ns [copy] Copying 2 files to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlu in\icons [zip] Building zip: Z:\roettig-GenericKnimeNodes-d8c3f98\build\org.ballpr ject.knime_0.6.0.jar
custom.plugin.build: [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\customPlugin
custom.plugin.generate_sources:
BUILD FAILED Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:138: The following error occurre while executing this line: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:144: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exe ute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Singl CheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:801)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorr
ct
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.
Total time: 4 minutes 59 seconds
I found this concerning the reported exception:
http://balaji-chopparapu.blogspot.com/2010/04/javaioioexception-cannot-run-program.html
He,
this is interesting. I remember having an similar issue (to large classpath under windows) on a different project years ago, never thought it would still come up in 2012. As soon as I get my hands on a Windows XP machine I will check this issue and see if we can reduce the size of the classpath.
cheers Stephan
Have you tried the develop branch?
Anyway does C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe exist on your hard drive? ant has to know where you Java binary lies. For this I think you have to correctly set env variable JAVA_HOME.
On Apr 20, 2012, at 12:49 PM, kienerj wrote:
Yes, I used Mater branch.
I now created a build.properties in root dir, eg. roettig-GenericKnimeNodes and set knime.sdk. The build starts. However I get the same Java Exception as in my previous post:
Buildfile: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml
knime.sdk.condition:
knime.sdk.check:
clean:
prepare: [echo] knime.sdk.exists: true [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200 [mkdir] Created dir: Z:\roettig-GenericKnimeNodes-d8c3f98\build
base.plugin.build: [echo] Debug: true [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\li
[copy] Copying 11 files to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePl
gin\lib [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\ME A-INF [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n\META-INF
base.plugin.classes.build: [javac] Compiling 170 source files to C:\Temp\GKN-2012-04-20T12-29-36-474+0 00\basePlugin [touch] Creating C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\org\ba lproject\knime\baseplugin.properties [propertyfile] Updating property file: C:\Temp\GKN-2012-04-20T12-29-36-474+0200 basePlugin\org\ballproject\knime\baseplugin.properties [copy] Copying 218 files to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\baseP ugin [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\da a [copy] Copying 1 file to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlug n\data [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlugin\ic ns [copy] Copying 2 files to C:\Temp\GKN-2012-04-20T12-29-36-474+0200\basePlu in\icons [zip] Building zip: Z:\roettig-GenericKnimeNodes-d8c3f98\build\org.ballpr ject.knime_0.6.0.jar
custom.plugin.build: [mkdir] Created dir: C:\Temp\GKN-2012-04-20T12-29-36-474+0200\customPlugin
custom.plugin.generate_sources:
BUILD FAILED Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:138: The following error occurre while executing this line: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:144: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exe ute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Singl CheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.ja a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultEx cutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorr ct at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.
(ProcessImpl.java:81) at java.lang.ProcessImpl.start(ProcessImpl.java:30) at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) ... 38 more Total time: 4 minutes 59 seconds
I found this concerning the reported exception:
http://balaji-chopparapu.blogspot.com/2010/04/javaioioexception-cannot-run-program.html
Reply to this email directly or view it on GitHub: https://github.com/roettig/GenericKnimeNodes/issues/36#issuecomment-5241674
Hi,
I due to the lack of working Win XP machine I wasn't able to test the following solution, but maybe it fixes your issue. From your construction log it seems to fail in the custom.plugin.generate_sources
target. There you could switch from providing the obviously to long classpath via command line to injecting it via an environment variable. This could be done by exchanging line 145
<classpath refid="custom.plugin.classpath"/>
by
<env key="CLASSPATH" path="${env.CLASSPATH}:${toString:custom.plugin.classpath}"/>
Maybe it fixes your issue. Please report back if helps ..
cheers Stephan
With above change i get following errors:
Buildfile: Z:\roettig-GenericKnimeNodes-0ae72df\build.xml
knime.sdk.condition:
knime.sdk.check:
clean:
prepare: [echo] knime.sdk.exists: true [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200
base.plugin.build: [echo] Debug: true [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugin [copy] Copying 1 file to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugi n [copy] Copying 1 file to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugi n [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugin\lib
[copy] Copying 11 files to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlu
gin\lib [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugin\MET A-INF [copy] Copying 1 file to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugi n\META-INF
base.plugin.classes.build: [javac] Compiling 170 source files to C:\Temp\GKN-2012-04-23T08-20-13-309+02 00\basePlugin [touch] Creating C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugin\org\bal lproject\knime\baseplugin.properties [propertyfile] Updating property file: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\ basePlugin\org\ballproject\knime\baseplugin.properties [copy] Copying 218 files to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePl ugin [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugin\dat a [copy] Copying 1 file to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugi n\data [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlugin\ico ns [copy] Copying 2 files to C:\Temp\GKN-2012-04-23T08-20-13-309+0200\basePlug in\icons [zip] Building zip: Z:\roettig-GenericKnimeNodes-0ae72df\build\org.ballpro ject.knime_0.6.0.jar
custom.plugin.build: [mkdir] Created dir: C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin
custom.plugin.generate_sources:
[java] 23.04.2012 08:25:14 org.ballproject.knime.nodegeneration.NodeGenerat
or
custom.plugin.classes.build: [javac] Compiling 6 source files to C:\Temp\GKN-2012-04-23T08-20-13-309+0200 \customPlugin [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:21: package org.ballproject.blast .knime.nodes.binres does not exist [javac] import org.ballproject.blast.knime.nodes.binres.BinaryResources; [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:97: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] String targetdir = home+System.getProperty("fil e.separator")+BinaryResources.BINPACKNAME; [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:101: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] if(BinaryResources.class.getResourceAsStream ("binaries_"+OS+"64.zip")!=null) [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:103: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(home+System .getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResources.clas s.getResourceAsStream("binaries"+OS+"64.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:103: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(home+System .getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResources.clas s.getResourceAsStream("binaries"+OS+"64.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:103: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(home+System .getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResources.clas s.getResourceAsStream("binaries"+OS+"64.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:104: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] PROPERTIES.load(BinaryResources. class.getResourceAsStream("binaries"+OS+"64.ini")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:108: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] if(BinaryResources.class.getResourceAsSt ream("binaries"+OS+"32.zip")!=null) [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:110: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(hom e+System.getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResour ces.class.getResourceAsStream("binaries"+OS+"32.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:110: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(hom e+System.getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResour ces.class.getResourceAsStream("binaries"+OS+"32.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:110: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(hom e+System.getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResour ces.class.getResourceAsStream("binaries"+OS+"32.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:111: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] PROPERTIES.load(BinaryRe sources.class.getResourceAsStream("binaries"+OS+"32.ini")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:122: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] if(BinaryResources.class.getReso urceAsStream("binaries"+OS+"32.zip")!=null) [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:124: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(hom e+System.getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResour ces.class.getResourceAsStream("binaries"+OS+"32.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:124: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(hom e+System.getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResour ces.class.getResourceAsStream("binaries"+OS+"32.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:124: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] BinaryResources.decompressTo(hom e+System.getProperty("file.separator")+BinaryResources.BINPACKNAME, BinaryResour ces.class.getResourceAsStream("binaries"+OS+"32.zip")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:125: cannot find symbol [javac] symbol : class BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] PROPERTIES.load(BinaryRe sources.class.getResourceAsStream("binaries"+OS+"_32.ini")); [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:138: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] String expectedBinDirPath = home + File.separato r + BinaryResources.BINPACKNAME + File.separator + "bin"; [javac] ^ [javac] C:\Temp\GKN-2012-04-23T08-20-13-309+0200\customPlugin-sources\src\or g\ballproject\blast\knime\PluginActivator.java:159: cannot find symbol [javac] symbol : variable BinaryResources [javac] location: class org.ballproject.blast.knime.PluginActivator [javac] pStore.setValue("binaries_path", home+System.getProperty ("file.separator")+BinaryResources.BINPACKNAME); [javac] ^ [javac] 19 errors
BUILD FAILED Z:\roettig-GenericKnimeNodes-0ae72df\build.xml:139: The following error occurred while executing this line: Z:\roettig-GenericKnimeNodes-0ae72df\build.xml:152: Compile failed; see the comp iler error output for details.
Total time: 7 minutes 59 seconds
He,
it seems like we're making progress. I will close this issue and move your new problem to a new issue, this makes it easier for us to track the different problems in the GenericKNIMENodes project
Just as a remark, since everyone will (hopefully) be notified via this ticket. I just updated the master to 0.6.1 where both issues (#36 and #37) are fixed. kienerj could you please check if all your issues are fixed with the new master branch?
Yes, build now successfully completes
Hi,
I tried to build the Knime nodes however I ran into several issues. First it is unclear from the README how to set the Knime SDK path. Only the error message when trying to build clears this (to set the variable knime.sdk = path/to/SDK)
However this did not help. There seems to be an error in the build file:
must be
else SDK is never detected.
After having figured that out I still get an error when building:
Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:138: The following error occurred while executing this line: Z:\roettig-GenericKnimeNodes-d8c3f98\build.xml:144: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_21\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) at java.lang.Runtime.exec(Runtime.java:593) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec ute.java:827) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214) at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single CheckExecutor.java:38) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) at org.apache.tools.ant.Project.executeTarget(Project.java:1366) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1249) at org.apache.tools.ant.Main.runBuild(Main.java:801) at org.apache.tools.ant.Main.startAnt(Main.java:218) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) Caused by: java.io.IOException: CreateProcess error=87, The parameter is incorre ct at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 38 more
Note: Windows XP, I'm Admin.