× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Have a look at JD-GUI. You can feed it the .jar file and it will create a
source .zip file if you select "Save all sources". Of course, comments are
not available. Also, it doesn't do 100% but it will get you started.

HTH,
Gary

-----Original Message-----
From: JAVA400-L [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Glenn
Bruckner
Sent: Thursday, December 7, 2017 8:33 AM
To: java400-l@xxxxxxxxxxxx
Subject: New to Java on iSeries.

Hi,

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 file.
I have been unable to find the source/class files used to create the JAR
file.
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?

Thanks,
Glenn


******************************************************************
"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
list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at https://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.