我的Java类是这样的;
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) {
;
}
}
}
我看到带有 jdk7 的 javac 出现以下错误。
ld.so.1: javac: fatal: relocation error: file
/jdk7/jre/lib/sparc/libzip.so: symbol JNU_GetStringPlatformChars: referenced symbol not found
为什么会发生?