Android Oracle Database JDBC6

后端 未结 1 1745
囚心锁ツ
囚心锁ツ 2021-01-26 17:18

Hi i want to create a connection to my Oracle database. i previously used ojdbc14.jar and everything was working fine, but the connection should be secure and i want to encrypt

1条回答
  •  说谎
    说谎 (楼主)
    2021-01-26 17:38

    Android's Java is different from Oracle's Java. One of the main differences is the class library that differs from the Java Standard Edition (SE).

    In your case that means that ojdbc6.jar won't run in Android's Java environment because certain Java SE classes are required but not available on Android. The error message mentions javax.management.MBeanServer. But I'm pretty sure that's not the only one.

    I don't think you can make ojdbc6.jar work on Android. It's already surprising that ojdbc14.jar works. So stay with it, or redesign your app to go via an intermediary server.

    0 讨论(0)
提交回复
热议问题