jar xvf <one jar file name> could help to extract the .class files
bundled. If the JAR file have the source code available , then you should
have them as well, if no, then you may need other tools to do some kind of
As for the IDE or other application to include your jar file, you can just
add the JAR file or the folder you just extracted into the class path (
somewhere in IDE's setting ).

Best regards.
Gavin, Zhang Gan --
IBM i J9 Team Lead,
Email: zhanggan@xxxxxxxxxx
Phone: +86-10-82452719
Address: 1/F, 28, ZhongGuanCun Software Park, No.8 Dong Bei Wang West
Road, Haidian District, Beijing P.R.China 100193
J9 on i:

----- Original message -----
From: Glenn Bruckner <glenn.bruckner@xxxxxxxxx>
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>
To: "java400-l@xxxxxxxxxxxx" <java400-l@xxxxxxxxxxxx>
Subject: New to Java on iSeries.
Date: Fri, Dec 8, 2017 12:33 AM


We currently have a JAVA program that is being called from an RPG
program to connect to a UPS website to perform package rating. The
program is building an XML object to pass to the website and parsing the
returned XML to pass the rates back to our RPG program. The Java
program was written many years ago and the user id, access key and URL
are all hardcoded.

A few weeks ago, we had trouble with the webservice call because UPS is
working on updating their servers to use TLS 1.1 and above. Beginning
January 1st, one will only be able to connect using TLS 1.1 or higher.

Our system administrator installed Java 7, both 32 and 64 bit, on our
iSeries partitions per the recommendation from IBM.
Our iSeries partitions are running OS Version 7.1

I updated our CL program that starts the JVM using the cacerts,
java.security and java.policy from the JDK70 folders(copied to another
folder) and tested the program. All seems to be working well.

The dilemma is now the business has asked that we make some changes to
the program. From what I see, it appears that we only have the JAR
I have been unable to find the source/class files used to create the JAR
I have downloaded the JAR file to my PC and been examining the contents
via a Java decompile utility.

Is there a way to extract the classes from the JAR?
Do I have to use a JAR de-compile tool and manually create the classes?
Is there a way to import the JAR file into an IDE like Eclipse or
IntelliJ to be able to make the required changes?


"Notice: This e-mail and any files transmitted are confidential and may
also be privileged. This communication is intended solely for the use of
the individual or entity to which it is addressed. If you are the
intended recipient of this information, please treat it as confidential
information and take all necessary action to keep it secure. If you are
not the intended recipient, you are hereby notified that any use,
dissemination, forwarding, or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify the sender at once by reply e-mail and destroy all copies of the
original message."
This is the Java Programming on and around the IBM i (JAVA400-L) mailing
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives


Visible links
1. https://w3-connections.ibm.com/profiles/html/profileView.do?key=d77158d7-c5cd-4e6e-a90d-23dddc9cbaba&lang=en
2. https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20i%20Technology%20Updates/page/Java%20on%20IBM%20i
3. https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.midrange.com_mailman_listinfo_java400-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=JeVN2-r9SydCh-zc-JxOL4qp87Z-EfylZHHy05Zwh5Q&m=zQwA3hqDYiYXMqbLQeGjBpKh3X1wxJOV5Lg1P4yRi94&s=lRT5oEASAkK_OqMjwkwC-O1f-kLqEqHK_xjhYqr2T_M&e=
4. https://urldefense.proofpoint.com/v2/url?u=https-3A__archive.midrange.com_java400-2Dl&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=JeVN2-r9SydCh-zc-JxOL4qp87Z-EfylZHHy05Zwh5Q&m=zQwA3hqDYiYXMqbLQeGjBpKh3X1wxJOV5Lg1P4yRi94&s=p8l2LMhzoy4qLOAHYHbhW6JjBACLvFDK_yxUQdWw1XI&e=

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.