我只是想測試JAVACPP和我的日食中從網頁嘗試的第一個例子中,例如:一旦JavaCPP問題編譯
http://code.google.com/p/javacpp/ (LegacyClass和LegacyLibrary)
爲I型:
javac -cp libs\javacpp.jar:. src\LegacyLibrary.java
進入命令行,我得到了以下錯誤消息:
src\LegacyLibrary.java:1: error: package com.googlecode.javacpp does not exist import com.googlecode.javacpp.*;
src\LegacyLibrary.java:2: error: package com.googlecode.javacpp.annotation does not exist import com.googlecode.javacpp.annotation.*;
src\LegacyLibrary.java:4: error: cannot find symbol @Platform(include="LegacyLibrary.h")
symbol: class Platform src\LegacyLibrary.java:5: error: cannot find symbol @Namespace("LegacyLibrary")
symbol: class Namespace src\LegacyLibrary.java:7: error: cannot find symbol public static class LegacyClass extends Pointer { symbol: class Pointer location: class LegacyLibrary src\LegacyLibrary.java:13: error: cannot find symbol public native @ByRef String get_property(); public native void set_property(String property); symbol: class ByRef location: class LegacyClass src\LegacyLibrary.java:16: error: cannot find symbol public native @ByRef String property(); public native void property(String property); symbol: class ByRef location: class LegacyClass src\LegacyLibrary.java:8: error: cannot find symbol static { Loader.load(); }
symbol: variable Loader location: class LegacyClass 8 errors
我爲什麼得到它?
是否可以使用沒有* .cpp和* .h文件的JavaCPP,但只有一個* .dll文件? 或者我需要什麼來使用這個庫?
我沒有嘗試它,但它是有道理的。 –