How to use the license.jar

107 views
Skip to first unread message

marcht...@gmail.com

unread,
Nov 23, 2017, 2:18:16 AM11/23/17
to JNIWrapper Forum
Hello!

I am currently trying out JNI Wrapper and using an evaluation license. I received the distribution archive and license file through my email. I have extracted everything on my project lib folder with the license file and referenced them to my project build path. I tried to run my application and it returned a RuntimeException JNIWrapper license check failed: No valid license found. I have tried the solutions posted here in the forums but nothing seems to resolve my issue. One thing I noticed is I received a license.jar file instead of a JNIWrapper.lic. Thank you for any help in advance.

Best regards.

Anna Dolbina

unread,
Nov 23, 2017, 5:06:48 AM11/23/17
to marcht...@gmail.com, JNIWrapper Forum
Hi,

To configure the JNIWrapper licence, you need to add the license.jar to the class path of your application.

As described in the Programmer's Guide, the licence can be located inside any JAR file that is present in the class path:
https://www.teamdev.com/downloads/jniwrapper/docs/JNIWrapper-Programmer's-Guide.html#AEN172
The license.jar is a JAR file that already contains the licence in the required location, therefore, there is no need to modify the existing JARs or create a separate one yourself.

Could you please try this approach and let us know whether the issue is resolved?

Sincerely,
Anna


--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jniwrapper-forum+unsubscribe@teamdev.com.
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/jniwrapper-forum/05778892-5aed-484b-98c3-6875ec7e3ce5%40teamdev.com.

Message has been deleted

marcht...@gmail.com

unread,
Nov 24, 2017, 12:33:01 AM11/24/17
to JNIWrapper Forum, marcht...@gmail.com
Hello Anna,

Yes, I have added a classpath entry for the license.jar by adding it on my project's build path.




/ComboReaderTest/.classpath

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="ComboReaderTest/src"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/antlr.jar"/>
<classpathentry kind="lib" path="lib/jniwrap-3.13.jar">
<attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/ComboReaderTest/lib/javadoc/jniwrapper.zip!/"/>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="ComboReaderTest/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="lib/jniwrap-generator-3.13.jar"/>
<classpathentry kind="lib" path="lib/license.jar"/>
<classpathentry kind="lib" path="lib/slf4j-api-1.5.8.jar"/>
<classpathentry kind="lib" path="lib/slf4j-simple-1.5.8.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JGoodiesLibs"/>
<classpathentry kind="output" path="bin"/>
</classpath>

I placed the license.jar, jniwrap.dll and other JNI dependencies in one location which is the project's /ComboReaderTest/lib folder as described in Installation Instructions.

Directory of D:\Development\Workspace\Java\EM-Testlab\ComboReaderTest\lib
11/24/2017  10:42 AM    <DIR>          .
11/24/2017  10:42 AM    <DIR>          ..
07/05/2017  11:07 AM           435,563 antlr.jar
11/24/2017  10:41 AM    <DIR>          javadoc
09/22/2017  09:31 AM           163,807 jgoodies-forms-1.8.0-sources.jar
09/22/2017  09:31 AM           118,985 jgoodies-forms-1.8.0.jar
07/05/2017  11:10 AM           234,429 jniwrap-3.13.jar
07/05/2017  11:09 AM           191,989 jniwrap-generator-3.13.jar
07/05/2017  11:07 AM            55,288 jniwrap.dll
11/24/2017  10:39 AM               411 license.jar
07/05/2017  11:07 AM            29,090 slf4j-api-1.5.8.jar
07/05/2017  11:07 AM            12,019 slf4j-simple-1.5.8.jar
               9 File(s)      1,241,581 bytes
               3 Dir(s)  544,548,155,392 bytes free

 I also tried passing -Dteamdev.license.info=true into my debug configuration VM arguments to see the license debug information as described in Gathering Information about Licence Errors. This is my console log:

JNIWrapper license check failed: No valid license found. 
java.lang.RuntimeException: JNIWrapper license check failed: No valid license found. 
JNIWrapper license check failed: No valid license found. 
java.lang.RuntimeException: JNIWrapper license check failed: No valid license found. 

Anna Dolbina

unread,
Nov 24, 2017, 7:26:10 AM11/24/17
to March Torment, JNIWrapper Forum
Hi,

Could you please try downloading the current JNIWrapper version once more using the following direct link?
http://cloud.teamdev.com/downloads/jniwrapper/jniwrapper-3.12-cross-desktop-win_mac_linux.zip


Sincerely,
Anna


Reply all
Reply to author
Forward
0 new messages