NLicense.obtainComponents Report an error

General information about Neurotechnology and its software

NLicense.obtainComponents Report an error

Postby achl » Nov 02, 2018 03:53

Code: Select all
try {
         // Obtain license.
         if (!NLicense.obtainComponents("/local", 5000, components)) {
            System.err.format("Could not obtain licenses for components: %s%n", components);
            System.exit(-1);
         }

What is the problem?
Could not initialize class com.neurotec.licensing.NLicense
achl
 
Posts: 3
Joined: Nov 02, 2018 02:35

Re: NLicense.obtainComponents Report an error

Postby vaidasz » Nov 02, 2018 12:49

achl wrote:
Code: Select all
try {
         // Obtain license.
         if (!NLicense.obtainComponents("/local", 5000, components)) {
            System.err.format("Could not obtain licenses for components: %s%n", components);
            System.exit(-1);
         }

What is the problem?
Could not initialize class com.neurotec.licensing.NLicense


Hello,

Please provide full exception message.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 591
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: NLicense.obtainComponents Report an error

Postby achl » Nov 05, 2018 02:56

vaidasz wrote:
achl wrote:
Code: Select all
try {
         // Obtain license.
         if (!NLicense.obtainComponents("/local", 5000, components)) {
            System.err.format("Could not obtain licenses for components: %s%n", components);
            System.exit(-1);
         }

What is the problem?
Could not initialize class com.neurotec.licensing.NLicense


Hello,

Please provide full exception message.

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.licensing.NLicense
at com.neurotec.tutorials.biometrics.VerifyFace.main(VerifyFace.java:33)

Unable to load library 'NCore': Native library (win32-x86-64/NCore.dll) not found in resource path ([file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/charsets.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/deploy.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/access-bridge-64.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/cldrdata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/dnsns.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/jaccess.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/jfxrt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/localedata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/nashorn.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunec.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunjce_provider.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunmscapi.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunpkcs11.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/zipfs.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/javaws.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jce.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jfr.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jfxswt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jsse.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/management-agent.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/plugin.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/resources.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/rt.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Tutorials/Biometrics/Java/verify-face/out/production/classes/, file:/D:/Neurotec_Biometric_10_0_SDK/Tutorials/Common/Java/utils/out/production/classes/, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-core.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-licensing.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-gui.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-media.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-media-processing.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics-client.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics-gui.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-devices.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/jna.jar, file:/C:/Users/LENOVO/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar, file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202018.1.1/lib/idea_rt.jar, file:/C:/Users/LENOVO/.IntelliJIdea2018.1/system/groovyHotSwap/gragent.jar, file:/C:/Users/LENOVO/.IntelliJIdea2018.1/system/captureAgent/debugger-agent.jar])
achl
 
Posts: 3
Joined: Nov 02, 2018 02:35

Re: NLicense.obtainComponents Report an error

Postby vaidasz » Nov 05, 2018 09:53

achl wrote:
vaidasz wrote:
achl wrote:
Code: Select all
try {
         // Obtain license.
         if (!NLicense.obtainComponents("/local", 5000, components)) {
            System.err.format("Could not obtain licenses for components: %s%n", components);
            System.exit(-1);
         }

What is the problem?
Could not initialize class com.neurotec.licensing.NLicense


Hello,

Please provide full exception message.

Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.licensing.NLicense
at com.neurotec.tutorials.biometrics.VerifyFace.main(VerifyFace.java:33)

Unable to load library 'NCore': Native library (win32-x86-64/NCore.dll) not found in resource path ([file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/charsets.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/deploy.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/access-bridge-64.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/cldrdata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/dnsns.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/jaccess.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/jfxrt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/localedata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/nashorn.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunec.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunjce_provider.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunmscapi.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunpkcs11.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/zipfs.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/javaws.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jce.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jfr.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jfxswt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jsse.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/management-agent.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/plugin.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/resources.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/rt.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Tutorials/Biometrics/Java/verify-face/out/production/classes/, file:/D:/Neurotec_Biometric_10_0_SDK/Tutorials/Common/Java/utils/out/production/classes/, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-core.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-licensing.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-gui.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-media.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-media-processing.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics-client.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics-gui.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-devices.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/jna.jar, file:/C:/Users/LENOVO/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar, file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202018.1.1/lib/idea_rt.jar, file:/C:/Users/LENOVO/.IntelliJIdea2018.1/system/groovyHotSwap/gragent.jar, file:/C:/Users/LENOVO/.IntelliJIdea2018.1/system/captureAgent/debugger-agent.jar])


Hello,

The error message means that 64bits native libraries could not be found. They could be found at Neurotec_Biometric_9_0_SDK\Bin\Win64_x64. Ensure that native libraries are loaded by your application. If you use IDE, you need to specify working directory to SDK\Bin\Win64_x64.
Vaidas Z
Neurotechnology
vaidasz
Neurotechnology
 
Posts: 591
Joined: Apr 30, 2010 06:57
Location: Vilnius, Lithuania

Re: NLicense.obtainComponents Report an error

Postby achl » Nov 06, 2018 08:42

Hello,

Please provide full exception message.[/quote]
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.neurotec.licensing.NLicense
at com.neurotec.tutorials.biometrics.VerifyFace.main(VerifyFace.java:33)

Unable to load library 'NCore': Native library (win32-x86-64/NCore.dll) not found in resource path ([file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/charsets.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/deploy.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/access-bridge-64.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/cldrdata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/dnsns.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/jaccess.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/jfxrt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/localedata.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/nashorn.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunec.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunjce_provider.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunmscapi.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/sunpkcs11.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/ext/zipfs.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/javaws.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jce.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jfr.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jfxswt.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/jsse.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/management-agent.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/plugin.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/resources.jar, file:/C:/Program%20Files/Java/jdk1.8.0_181/jre/lib/rt.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Tutorials/Biometrics/Java/verify-face/out/production/classes/, file:/D:/Neurotec_Biometric_10_0_SDK/Tutorials/Common/Java/utils/out/production/classes/, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-core.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-licensing.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-gui.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-media.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-media-processing.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics-client.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-biometrics-gui.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/neurotec-devices.jar, file:/D:/Neurotec_Biometric_10_0_SDK/Bin/Java/jna.jar, file:/C:/Users/LENOVO/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar, file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202018.1.1/lib/idea_rt.jar, file:/C:/Users/LENOVO/.IntelliJIdea2018.1/system/groovyHotSwap/gragent.jar, file:/C:/Users/LENOVO/.IntelliJIdea2018.1/system/captureAgent/debugger-agent.jar])[/quote]

Hello,

The error message means that 64bits native libraries could not be found. They could be found at Neurotec_Biometric_9_0_SDK\Bin\Win64_x64. Ensure that native libraries are loaded by your application. If you use IDE, you need to specify working directory to SDK\Bin\Win64_x64.[/quote]

Thanks a lot
achl
 
Posts: 3
Joined: Nov 02, 2018 02:35


Return to Public

Who is online

Users browsing this forum: No registered users and 2 guests