JNA library not found
Java expertise: novice. I'm running the default Java setup in Ubuntu with OpenJDK 6. I am trying to compile a project on NetBeans but I am getting the error message: package com.sun.jna does not exist. I searched through Synaptic and saw that libjna-java was already installed. I reinstalled the package hoping that there was a dependency issue but that didn't work. The readme for libjna-java is:
jna
--------------
According to the current Debian policy for java [1], all jvm should
include /usr/lib/jni in their default library search path. Apparently
this is not the case; if libjnidispatch.so is not found when calling
jna, please add "-Djava.
invocation.
-- Yulia Novozhilova <email address hidden> Wed, 18 Jun 2008 15:44:48 +0400
[1] - http://
---------------
The -Djava.....bit might work from a java invocation, but it is rejected by javac, and I don't know how I would make that work from an IDE anyway.
I looked in /usr/lib/jni and libjnidispatch does exist there. I tried doing a couple things like this:
export LD_LIBRARY_
export.
but that hasn't helped me any. Is this a common issue for Ubuntu users or do you think I've messed up my Java environment somehow? Here is my PATH if it helps:
PATH=/usr/
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- onezeno
- Solved:
- Last query:
- Last reply: