You are not logged in.

1

Thursday, May 26th 2005, 5:17pm

KDevelop link against jre/path [solved]

hello,

i'm playing around with jni and I'm creating a shared object.
I need to include some libs from the jre (like: -I/myjre/path/include/) and link against some awt stuff...
how can I use i.e. $JAVA_HOME within the include settings?

thanks in advance!

This post has been edited 1 times, last edit by "hephaistos6" (May 27th 2005, 7:02am)


anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Thursday, May 26th 2005, 8:33pm

You could try starting KDevelop in an enviroment with that variables set.

Cheers,
_
Qt/KDE Developer
Debian User

3

Friday, May 27th 2005, 7:02am

hmmm I must have tried more!

the correct statement that works is as follows:
-I$(JAVA_HOME)/include/linux/

I can remember I tried
-I$JAVA_HOME/include/linux/ and
-I($JAVA_HOME)/include/linux/

and got an error....

thank you!