https://bugzilla.novell.com/show_bug.cgi?id=745571
https://bugzilla.novell.com/show_bug.cgi?id=745571#c1
Michal Vyskocil changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Michal Vyskocil 2012-02-09 14:09:46 UTC ---
Good point - the initial packaging was to make netbeans deps satisfied.
I have enabled it, update to the latest 3.4.0 and checked if that work on
trivial test
cat <<EOF > HelloWorld.java
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Platform;
/** Simple example of native library declaration and usage. */
public class HelloWorld {
public interface CLibrary extends Library {
CLibrary INSTANCE = (CLibrary) Native.loadLibrary(
(Platform.isWindows() ? "msvcrt" : "c"), CLibrary.class);
void printf(String format, Object... args);
}
public static void main(String[] args) {
CLibrary.INSTANCE.printf("Hello, World\n");
for (int i = 0; i < args.length; i++) {
CLibrary.INSTANCE.printf("Argument %d: %s\n", i, args[i]);
}
}
}
EOF
javac -cp /usr/share/java/jna.jar HelloWorld.java
java -cp /usr/share/java/jna.jar:. HelloWorld
Hello, World
forwarded by request 103613 to Factory
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.