Re: JDBC for Oracle on AIX 4.2 ?

From: Mats Olsson <matso_at_dtek.chalmers.se>
Date: 1998/01/02
Message-ID: <68hbhf$ht2$1_at_nyheter.chalmers.se>#1/1


In article <68ca3h$8fa$2_at_usenet.kreonet.re.kr>, Kim Do-Hyung <dynaxis_at_ivory.kaist.ac.kr> wrote:
>In comp.lang.java.advocacy Kim Do-Hyung <dynaxis_at_ivory.kaist.ac.kr> wrote:
>
>: on my RS/6000 AIX 4.2 machine except that I should call
>: DriverManager.registerDriver() explicitly.
>
>Oops... The cause of the problem was not Driver.registerDriver() but a feature
>of JDK 1.1.2 on my AIX machine. Make a Class.newInstance() call or equivalent
>and will suffice. It seems that until a new instance is created, the static
>initializer(static { }) for the driver class won't called.

[Quoted]     Of course not. Any static's are only run when the class they belong to is loaded, and they are only loaded when they are needed - like when you first create an object using it.

    /Mats Received on Fri Jan 02 1998 - 00:00:00 CET

Original text of this message