0
我的Java类是这样的;javac因错误而失败JNU_GetStringPlatformChars:未找到引用的符号
import oracle.sqlj.runtime.Oracle;
import sqlj.runtime.ref.DefaultContext;
class Test
{
public static void main (String args[]) throws SQLException
{
Connection conn=null;;
PreparedStatement ps=null;
Oracle.connect(TestInstallCreateTable.class, "connect.properties");
conn = DefaultContext.getDefaultContext().getConnection();
try {
ps = conn.prepareStatement("DROP TABLE SALES");
ps.executeUpdate();
} catch (SQLException e) {
;
}
}
}
我看到以下javac与jdk7的错误。
ld.so.1: javac: fatal: relocation error: file
/jdk7/jre/lib/sparc/libzip.so: symbol JNU_GetStringPlatformChars: referenced symbol not found
为什么会发生?
您是否包含了所有导入?看起来你错过了一些。 – david99world
在usr/lib /中是否有ld.so? – gks
我看到32位模式下的故障。 – sunmoon