question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maven Compile Project Error

See original GitHub issue

Description

Jdk :1.8 Windows 10 X64 CPU Apache Maven 3.5 DLJ Version :0.6.0 `<properties> <java.version>8</java.version> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <djl.version>0.6.0</djl.version> </properties>

<dependencies>
	<dependency>
		<groupId>com.vmware</groupId>
		<artifactId>vijava</artifactId>
		<version>5.1</version>
	</dependency>
	<dependency>
		<groupId>commons-cli</groupId>
		<artifactId>commons-cli</artifactId>
		<version>1.4</version>
	</dependency>
	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-slf4j-impl</artifactId>
		<version>2.12.1</version>
	</dependency>
	<dependency>
		<groupId>com.google.code.gson</groupId>
		<artifactId>gson</artifactId>
		<version>2.8.5</version>
	</dependency>

	<dependency>
		<groupId>ai.djl</groupId>
		<artifactId>api</artifactId>
		<version>${djl.version}</version>
	</dependency>
	<dependency>
		<groupId>ai.djl</groupId>
		<artifactId>basicdataset</artifactId>
		<version>${djl.version}</version>
	</dependency>
	<dependency>
		<groupId>ai.djl</groupId>
		<artifactId>model-zoo</artifactId>
		<version>${djl.version}</version>
	</dependency>
	<dependency>
		<groupId>ai.djl.mxnet</groupId>
		<artifactId>mxnet-model-zoo</artifactId>
		<version>${djl.version}</version>
	</dependency>
	<dependency>
		<groupId>ai.djl.mxnet</groupId>
		<artifactId>mxnet-engine</artifactId>
		<version>${djl.version}</version>
	</dependency>

</dependencies>

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
		</plugin>
	</plugins>
</build>`

Expected Behavior

Compiled Successfully

Error Message

[WARN ] - Failed to load MXNet native library java.lang.UnsatisfiedLinkError: Unable to load library ‘mxnet’: Native library (win32-x86-64/mxnet.dll) not found in resource path (D:\demo\target\classes;C:\Users\Administrator.m2\repository\com\vmware\vijava\5.1\vijava-5.1.jar;C:\Users\Administrator.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Users\Administrator.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Users\Administrator.m2\repository\commons-cli\commons-cli\1.4\commons-cli-1.4.jar;C:\Users\Administrator.m2\repository\org\apache\logging\log4j\log4j-slf4j-impl\2.12.1\log4j-slf4j-impl-2.12.1.jar;C:\Users\Administrator.m2\repository\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;C:\Users\Administrator.m2\repository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;C:\Users\Administrator.m2\repository\org\apache\logging\log4j\log4j-core\2.12.1\log4j-core-2.12.1.jar;C:\Users\Administrator.m2\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;C:\Users\Administrator.m2\repository\ai\djl\api\0.6.0\api-0.6.0.jar;C:\Users\Administrator.m2\repository\net\java\dev\jna\jna\5.3.0\jna-5.3.0.jar;C:\Users\Administrator.m2\repository\org\apache\commons\commons-compress\1.20\commons-compress-1.20.jar;C:\Users\Administrator.m2\repository\ai\djl\basicdataset\0.6.0\basicdataset-0.6.0.jar;C:\Users\Administrator.m2\repository\ai\djl\model-zoo\0.6.0\model-zoo-0.6.0.jar;C:\Users\Administrator.m2\repository\ai\djl\mxnet\mxnet-model-zoo\0.6.0\mxnet-model-zoo-0.6.0.jar;C:\Users\Administrator.m2\repository\ai\djl\mxnet\mxnet-engine\0.6.0\mxnet-engine-0.6.0.jar) Suppressed: java.lang.UnsatisfiedLinkError: The specified module was not found

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stu1130commented, Jul 27, 2020

@Jzow you can just use mxnet-native-auto which will detect your environment and pick the right one for you

1reaction
zachgkcommented, Jul 27, 2020

It looks like you might be missing the dependency:

        <dependency>
            <!--
                See https://github.com/awslabs/djl/blob/master/mxnet/mxnet-engine/README.md for more MXNet library selection options
            -->
            <groupId>ai.djl.mxnet</groupId>
            <artifactId>mxnet-native-auto</artifactId>
            <version>1.7.0-a</version>
            <scope>runtime</scope>
        </dependency>

You can find it in our example/pom.xml

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building maven project causes error - Stack Overflow
The reason behind your error: could not resolve dependencies was lack of the dependent module being built/ installed first. And mentioned above ...
Read more >
How to fix Maven build issue in Eclipse? Perform ... - Crunchify
Usually this error caused by Maven downloading a corrupt version of the jar. Deleting it to force a new download fixed the issue....
Read more >
When building a Maven project, blank errors are listed - IBM
Create or import your Maven dynamic web project inside RAD · Compile and build the project · Check the Problems view · RESULT:...
Read more >
IntelliJ IDEA - Troubleshooting common Maven issues
This error usually indicates a problem with the compiler version compatibility, and you can check few places to fix it. For example, you...
Read more >
Continue maven build after Error Prone error - Google Groups
Is this expected and/or does anyone know how to use Maven to analyze every file in the project even after an EP error?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found