A
A
alina0ctober2016-02-18 13:40:37
Java
alina0ctober, 2016-02-18 13:40:37

Accessing a subpackage in a jar?

There is a package mpjdev.jar.
This package has a natmpjdev subpackage that contains the Intracomm class I need.
I create an instance of the Intracomm class in my class and import the package in the line " import mpjdev.natmpjdev.Intracomm; ". Further, when I try to run my class, Intellij Idea gives me an exception (java.lang.UnsatisfiedLinkError: no nativempjdev in java.library.path), although it didn’t swear before, and itself suggested that I import this package.
How can I still include this subpackage?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sirs, 2016-02-18
@sirs

So why didn't you look at the description of your exception in the javadoc ?
"Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native."
Do you know what kind of jar mpjdev.jar is and what kind of native code can be there?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question