Problems building KNIME executables

Below is a screenshot of the error message.

E:\Workspace\Eclipse202103\KNIME\4.6.W\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:90: The following error occurred while executing this line:
E:\Workspace\Eclipse202103\KNIME\4.6.W\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:1241: The following error occurred while executing this line:
E:\Program Files\eclipse\202103\eclipse\plugins\org.eclipse.pde.build_3.10.1000.v20210130-0813\scripts\genericTargets.xml:241: A problem occured while invoking the director.
The following error occurred while executing this line:
E:\Workspace\Eclipse202103\KNIME\4.6.W\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\package.org.eclipse.pde.container.feature.win32.win32.x86_64.xml:1241: The following error occurred while executing this line:
E:\Program Files\eclipse\202103\eclipse\plugins\org.eclipse.pde.build_3.10.1000.v20210130-0813\scripts\genericTargets.xml:241: A problem occured while invoking the director.
Property "p2.director.log" has not been set
[p2.director] Installing org.knime.desktop.product 4.6.0.202207141123.
[p2.director] Installation failed.
[p2.director] Cannot complete the install because one or more required items could not be found.
[p2.director] 	Software being installed: KNIME Analytics Platform 4.6.0.202207141123 (org.knime.desktop.product 4.6.0.202207141123)
[p2.director] 	Missing requirement: Equinox p2, headless functionalities 1.6.900.v20210227-0235 (org.eclipse.equinox.p2.core.feature.feature.group 1.6.900.v20210227-0235) requires 'org.eclipse.equinox.p2.iu; org.eclipse.ecf.core.feature.feature.group [1.4.0,2.0.0)' but it could not be found
[p2.director] 	Cannot satisfy dependency:
[p2.director] 		From: Equinox p2, Provisioning for IDEs. 2.4.1100.v20210227-0235 (org.eclipse.equinox.p2.user.ui.feature.group 2.4.1100.v20210227-0235)
[p2.director] 		To: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.core.feature.feature.group [1.6.900.v20210227-0235,1.6.900.v20210227-0235]
[p2.director] 	Cannot satisfy dependency:
[p2.director] 		From: KNIME Analytics Platform 4.6.0.202207141123 (org.knime.desktop.product 4.6.0.202207141123)
[p2.director] 		To: org.eclipse.equinox.p2.iu; org.eclipse.equinox.p2.user.ui.feature.group [2.4.1100.v20210227-0235,2.4.1100.v20210227-0235]
[p2.director] Cannot complete the install because one or more required items could not be found.
[p2.director] Software being installed: KNIME Analytics Platform 4.6.0.202207141123 (org.knime.desktop.product 4.6.0.202207141123)
[p2.director] Missing requirement: Equinox p2, headless functionalities 1.6.900.v20210227-0235 (org.eclipse.equinox.p2.core.feature.feature.group 1.6.900.v20210227-0235) requires 'org.eclipse.equinox.p2.iu; org.eclipse.ecf.core.feature.feature.group [1.4.0,2.0.0)' but it could not be found
[p2.director] Cannot satisfy dependency:
[p2.director] Cannot satisfy dependency:
A problem occured while invoking the director.
runDirector:  duration 0 seconds

Hi @zou,

Take a look at the instructions in this forum post:

best,
Gabriel

1 Like

Hi, I refer to the solution you posted yesterday, but it has a new problem, can you help me?
Below is the error log and screenshot, thank you very much.

The jre here is wrong, do I need to fix it.

This is my Parent POM. The other POMs are unchanged.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<!-- <parent> <groupId>org.knime.maven</groupId> <artifactId>ap.parent</artifactId> 
		<version>4.6.0</version> </parent> -->

	<groupId>org.knime</groupId>
	<artifactId>knime-product</artifactId>
	<version>${revision}${changelist}</version>
	<packaging>pom</packaging>

	<properties>
		<revision>4.6.0</revision>
		<changelist>-SNAPSHOT</changelist>
		<feature-branch-extension.branchListProperty>git.branch</feature-branch-extension.branchListProperty>
		<feature-branch-extension.appendArtifactoryProperties>false</feature-branch-extension.appendArtifactoryProperties>

		<knime.version>4.6</knime.version>
		<tycho.version>2.7.3</tycho.version>
		<tycho.extras.version>${tycho.version}</tycho.extras.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
	</properties>

	<modules>
		<module>org.knime.startup.macosx</module>
		<!-- <module>org.knime.product</module> -->
		<!-- <module>org.knime.features.product</module> -->
		<module>org.knime.product.tests</module>
		<module>org.knime.update.product</module>
	</modules>

	<repositories>
		<repository>
			<id>p2-knime-update-site</id>
			<layout>p2</layout>
			<url>https://update.knime.com/analytics-platform/${knime.version}</url>
		</repository>

		<!-- <repository> <id>knime.base.p2</id> <layout>p2</layout> <url>${knime.base.p2}</url> 
			</repository> <repository> <id>knime.core.p2</id> <layout>p2</layout> <url>${knime.core.p2}</url> 
			</repository> <repository> <id>knime.shared.p2</id> <layout>p2</layout> <url>${knime.shared.p2}</url> 
			</repository> <repository> <id>knime.tp.p2</id> <layout>p2</layout> <url>${knime.tp.p2}</url> 
			</repository> <repository> <id>knime.workbench.p2</id> <layout>p2</layout> 
			<url>${knime.workbench.p2}</url> </repository> <repository> <id>knime.js.core.p2</id> 
			<layout>p2</layout> <url>${knime.js.core.p2}</url> </repository> <repository> 
			<id>knime.svg.p2</id> <layout>p2</layout> <url>${knime.svg.p2}</url> </repository> 
			<repository> <id>knime.expressions.p2</id> <layout>p2</layout> <url>${knime.expressions.p2}</url> 
			</repository> -->
	</repositories>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-maven-plugin</artifactId>
					<version>${tycho.version}</version>
					<extensions>true</extensions>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-packaging-plugin</artifactId>
					<version>${tycho.version}</version>
				</plugin>
				
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>target-platform-configuration</artifactId>
					<version>${tycho.version}</version>
				</plugin>
				
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-p2-repository-plugin</artifactId>
					<version>${tycho.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-p2-director-plugin</artifactId>
					<version>${tycho.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-surefire-plugin</artifactId>
					<version>${tycho.version}</version>
					<configuration>
						<trimStackTrace>false</trimStackTrace>
						<includes>
							<include>%regex[.*]</include>
						</includes>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-buildtimestamp-jgit</artifactId>
					<version>${tycho.extras.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-eclipserun-plugin</artifactId>
					<version>${tycho.extras.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-p2-extras-plugin</artifactId>
					<version>${tycho.extras.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-source-feature-plugin</artifactId>
					<version>${tycho.extras.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-source-plugin</artifactId>
					<version>${tycho.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho</groupId>
					<artifactId>tycho-p2-plugin</artifactId>
					<version>${tycho.version}</version>
				</plugin>
				<plugin>
					<groupId>org.eclipse.tycho.extras</groupId>
					<artifactId>tycho-dependency-tools-plugin</artifactId>
					<version>1.7.0</version>
					<executions>
						<execution>
							<id>list-dependencies</id>
							<goals>
								<goal>list-dependencies</goal>
							</goals>
							<phase>compile</phase>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-maven-plugin</artifactId>
			</plugin>

			<plugin>
				<!-- This plugin configuration block is only needed if the repository 
					contains plug-ins that don't have any sources. If it is omitted Tycho will 
					complain. -->
				<groupId>org.eclipse.tycho.extras</groupId>
				<artifactId>tycho-source-feature-plugin</artifactId>
				<executions>
					<execution>
						<id>source-feature</id>
						<phase>package</phase>
						<goals>
							<goal>source-feature</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<excludes>
						<!-- List all plug-in that do NOT contain sources here. -->
						<!-- <plugin id="org.knime.community.template.no-source-files" /> -->
					</excludes>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-packaging-plugin</artifactId>
				<dependencies>
					<dependency>
						<groupId>org.eclipse.tycho.extras</groupId>
						<artifactId>tycho-buildtimestamp-jgit</artifactId>
						<version>${tycho.extras.version}</version>
					</dependency>
				</dependencies>
				<configuration>
					<timestampProvider>jgit</timestampProvider>
					<format>'v'yyyyMMddHHmm</format>
					<jgit.ignore>
						pom.xml
						.polyglot.build.properties
					</jgit.ignore>
					<jgit.dirtyWorkingTree>warning</jgit.dirtyWorkingTree>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-repository-plugin</artifactId>
				<configuration>
					<skipArchive>true</skipArchive>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>target-platform-configuration</artifactId>
				<configuration>
					<environments>
						<!-- These can be removed once we shut down the Buckminster build -->
						<environment>
							<os>linux</os>
							<ws>gtk</ws>
							<arch>x86_64</arch>
						</environment>
						<environment>
							<os>win32</os>
							<ws>win32</ws>
							<arch>x86_64</arch>
						</environment>
						<environment>
							<os>macosx</os>
							<ws>cocoa</ws>
							<arch>x86_64</arch>
						</environment>
					</environments>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-source-plugin</artifactId>
				<executions>
					<execution>
						<id>plugin-source</id>
						<goals>
							<goal>plugin-source</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<!-- The following is required if source bundles are to be included -->
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-plugin</artifactId>
				<version>${tycho.version}</version>
				<executions>
					<execution>
						<id>attach-p2-metadata</id>
						<phase>package</phase>
						<goals>
							<goal>p2-metadata</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>

Hi Zou,

  1. you commented out the modules that you need for your build:
	<!-- <module>org.knime.product</module> -->
	<!-- <module>org.knime.features.product</module> -->
  1. the jre is not enabled by default in the target platform, as you don’t need when developing. You can add it in the target platform config.

best,
Gabriel