cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

JLink adding external libraries to classpath

diesunddas2
1-Visitor

JLink adding external libraries to classpath

Hi guys,

I try to use .jar files within my jlink application.

What I did is to add those to the java_app_classpath within the protk.dat file.

eg.

java_app_classpath ./apps/Library.jar; ./apps/classes

java_app_classpath ./apps/Library.jar ./apps/classes

but neither did work, as soon as I'm calling a class within the .jar a ClassNotFoundException is thrown.

Would be really glad if anybody knows how to handle this.

Regards

3 REPLIES 3

Hi Paul,
you can add jar files by using the config.pro option add_java_class_path.
Use the option once for each jar library like:

add_java_class_path <full path=">\xxx.jar
add_java_class_path <full path=">\yyy.jar

Regards,
Bjarne



Paul Benoe <diesunddas2@web.de>
09-03-2010 21:59
Please respond to
Paul Benoe <diesunddas2@web.de>


To
-
cc

Subject
[proecus] - JLink adding external libraries to classpath






Hi guys,

I try to use .jar files within my jlink application.
What I did is to add those to the java_app_classpath within the protk.dat
file.
eg.
java_app_classpath ./apps/Library.jar; ./apps/classes
java_app_classpath ./apps/Library.jar ./apps/classes

but neither did work, as soon as I'm calling a class within the .jar a
ClassNotFoundException is thrown.

Would be really glad if anybody knows how to handle this.

Regards

Site Links: View post online View mailing list online Send new post
via email Manage your subscription Use of this email content is
governed by the terms of service at:

Hi,

thanks, that's good if you have multiple auxiliary applications using the same libraries.

in the meantime I figured a rather strange looking syntax for the protk.dat by dividing two libs with a ".;"

java_app_classpath /apps/lib1.jar.;./apps/lib2.jar

Thanks again,

Regards

jfelkins
13-Aquamarine
(To:diesunddas2)

Hello Paul

Add the additional jar files at the end or your java_app_classpath using semi colons in your protk.dat file as shown below.

java_app_classpath C:\project\jar\appJar.jar;C:\foldername\lib.jar;C:\folderName\lib2.jar



In Reply to Paul Benoe:

Hi guys,

I try to use .jar files within my jlink application.

What I did is to add those to the java_app_classpath within the protk.dat file.

eg.

java_app_classpath ./apps/Library.jar; ./apps/classes

java_app_classpath ./apps/Library.jar ./apps/classes

but neither did work, as soon as I'm calling a class within the .jar a ClassNotFoundException is thrown.

Would be really glad if anybody knows how to handle this.

Regards

Announcements


Top Tags