JNI and -AA


 
Thread Tools Search this Thread
Operating Systems HP-UX JNI and -AA
# 1  
Old 07-31-2007
JNI and -AA

Hi, I have a Hello World program using JNI taken from this site.
HP Unix - Java - Using Java 2 JNI on HP-UX

It builds fine and runs fine.

But if I add -AA to my compile line, I get this error.
error: java.lang.UnsatisfiedLinkError: libaCCImpl.sl: Unresolved external

Here are my build lines:
aCC -AA +DA2.0W +z +u4 -c -D_HPUX -D_POSIX_C_SOURCE=199506L -I${JAVA_HOME}/include -I${JAVA_HOME}/include/hp-ux aCCImpl.cpp

aCC +DA2.0W -b -o libaCCImpl.sl aCCImpl.o -lstd -lstream -lCsup -lm

Can someone tell me how to resolve this problem?


uname -a
HP-UX hp11i B.11.11 U 9000/800 524736557 unlimited-user license

Last edited by cactuar; 08-01-2007 at 01:25 PM.. Reason: removing personal folder names
# 2  
Old 07-31-2007
I don't think you've posted the complete error. Can you do that? And in the mean time, also check if you have the library file available.

Last edited by blowtorch; 08-01-2007 at 10:26 PM.. Reason: requested by o/p
# 3  
Old 08-03-2007
Hi, I am posting the answer I got from someone.

I had to link in -lstd_v2 -lCsup_v2 -lm for -AA.
Apparently -lstd -lstream -lCsup -lm are for -AP.

Thanks!
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Programming

Problems with JNI and currentTimeMillis function

Hello, I have a technical problem: I work on AIX 7.1 with Java 1.7 (32 and 64 bit) and I make an application that intercepts certain functions related to time. In this application there is a Java JNI agent with whom I can intercept the Java "getLastModifiedTime" no problem but I am unable to... (5 Replies)
Discussion started by: steph311
5 Replies

2. AIX

JNI program work with jdk 5 but not jdk6 on aix 5.3

My JNI program work with jdk 5 but not jdk6 on aix 5.3. i.e. I compiled & tested my program with jdk 5 and it worked. Then with the same files & directory, I run jdk6 (I installed both jdk5 & 6) and it failed. Why? jdk5 is ok: $ /usr/java5_64/jre/bin/java -d64 -jar... (0 Replies)
Discussion started by: TsanChung
0 Replies

3. Programming

Setting environment variable using JNI call

I have function declaration in Java and same function definition written in C programming language.. A JNI call from Java is made to a fuction...Function would set the environment variable { putenv(cEnvString1);} using C-built -in function ..and later return the encrypted string... putenv is... (6 Replies)
Discussion started by: shafi2all
6 Replies

4. Solaris

JNI 1560 in different speed PCI slots

I've got lots of scsi transport errors on the E2900 - the HBA was replaced once out of curiosity but the problem still exists. Feb 15 07:03:11 ivsdbch2 scsi: WARNING: /ssm@0,0/pci@18 ,600000/SUNW,jfca@1,1/fp@0,0/ssd@w5005076300c889cb,4 (ssd21): Feb 15 07:03:11 ivsdbch2 SCSI transport... (1 Reply)
Discussion started by: kiem
1 Replies

5. HP-UX

create thread C with JNI function with JAVA

Hello, J create a thread C with a JNI function via JAVA. J have the following message (but not in each time): Someone has an idea ? Thank. Unexpected Signal : 4 occurred at PC=0x78C103E0 Function= Library=(N/A) NOTE: We are unable to locate the function name... (0 Replies)
Discussion started by: AUBERT
0 Replies
Login or Register to Ask a Question