Re: Need help in compiling java program

Gan Zhang <[email protected]> Fri, 15 Apr 2022 02:56:15 +0000
Newsgroups gmane.comp.lang.as400.java
Message-ID <[email protected]>
Java -version could tell you which java are you using. 
Java -Xdump:java:events=vmstop -version would help to generate a javacore file, which can tell you more. 

If your VRM is still in service, suggest you report it to IBM.

-- 
Best regards,
 
GAN ZHANG
Team/Tech Lead - PASE(AIX), Java on IBM i
Phone: 86-10-82452719
E-mail: [email protected]
J9 on i: https://www.ibm.com/support/pages/java-ibm-i

On 2022/4/15, 6:26 AM, "JAVA400-L on behalf of Singing like that" <[email protected] on behalf of [email protected]> wrote:

    Hi,

    I am trying to compile the simple hello world java program in QSH but I am
    getting this error ( error reading
    /QIBM/UserData/Java400/ext/sqljdbc42.jar; error in opening zip file). We
    have JDK 1.8 installed. Any input on this would be appreciated. Thanks

    this is exact cmd i am trying in QSH,

    -rwxrwxrwx  1 RXSHAIK  0                  9761 Apr 12 15:10
    AWSV4Auth_bk.class
    -rwxrwxrwx  1 RXSHAIK  0                  8525 Apr 12 16:42 AWSV4Auth.class

    -rwxrwxrwx  1 RXSHAIK  0                 14273 Apr 12 11:37 AWSV4Auth.java

    -rwxrwxrwx  1 RXSHAIK  0                  1020 Apr 11 12:54 Caller.java

    -rwxrwxrwx  1 RXSHAIK  0                   150 Apr 14 18:02 hello.java

    -rwxrwxr--  1 RXSHAIK  0                  6287 Mar 16 18:14 NON_HOT_PO.xlsx

    -rwxrwxrwx  1 RXSHAIK  0                  1756 Apr 11 12:26 ObjJava.class

    -rwxrwxrwx  1 RXSHAIK  0                  1034 Apr 11 12:54 ObjJava.java

    -rwxrwxr--  1 RXSHAIK  0               4623028 Mar 17 09:46 po_sum.xlsx

    -rwxrwxrwx  1 RXSHAIK  0                  3462 Apr 11 12:26 PgmJava.class

    -rwxrwxrwx  1 RXSHAIK  0                  3272 Apr 11 12:54 PgmJava.java

    $

    javac hello.java

    error: error reading /QIBM/UserData/Java400/ext/sqljdbc42.jar; error in
    opening zip file
    1 error

    $

    -- 

    Regards by


    *Nirvan Chakravarthi*
    -- 
    This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
    To post a message email: [email protected]
    To subscribe, unsubscribe, or change list options,
    visit: https://lists.midrange.com/mailman/listinfo/java400-l 
    or email: [email protected]
    Before posting, please take a moment to review the archives
    at https://archive.midrange.com/java400-l .

    Help support midrange.com by shopping at amazon.com with our affiliate
    link: https://amazon.midrange.com 

-- 
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/java400-l.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com