0

私のプロジェクトで問題が発生する前に感謝します。私のプロジェクトはAndroidでアプリを作成し、アプリは会社のデータベースに接続できますが、これは接続されていません

これは私のスクリプトです

 package mas.ganteng;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Mas Ganteng Indonesia
 */
     public class ConnectedAccessActivity {
 Connection conn;
 String url="jdbc:odbc:JavaMsAccess";
 String user="";
 String pass="";
 public Connection getConnection(){
 try {
 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 conn=DriverManager.getConnection(url,user,pass);
 System.out.println("Connected!!!");
 } catch (SQLException ex) {
 Logger.getLogger(ConnectedAccessActivity.class.getName()).log(Level.SEVERE, null, ex);
 } catch (ClassNotFoundException ex) {
 Logger.getLogger(ConnectedAccessActivity.class.getName()).log(Level.SEVERE, null, ex);
 }
 return conn;
 }
 public static void main(String [] args){
 ConnectedAccessActivity acc=new ConnectedAccessActivity();
 acc.getConnection();
 }

}

そしてそれはEclipseのコンソールです

    Invalid layout of java.lang.String at value
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (javaClasses.cpp:124), pid=3848, tid=3876
#  fatal error: Invalid layout of preloaded class
#
# JRE version:  (8.0-b104) (build )
# Java VM: Java HotSpot(TM) Client VM (25.0-b46 mixed mode windows-x86 )
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# D:\My Android\ConnectedAccess\hs_err_pid3848.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

このバグについて教えてください?????

4

1 に答える 1