× 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.



I have just spent some time looking thru the archives
for this problem but am having no luck :(
Apparently, something has happened recently to change
our environment and the Systems Programmer is away
at school.  I think that some PTF's were recently
applied.

We have a QSH command in a CL program to zip a file:

QSH        CMD('jar -cfM /MEMAIL/P55055/F55056.ZIP + 
             /MEMail/P55055/F55056.CSV')

and it's failing with a return code of "1".  So, 
I started QSHELL (STRQSH) and entered the JAR command
on a line, pressed enter and received a message that
the JAR command wasn't found -or- I assume that's what
the error is telling me:             

jar

java.lang.UnsatisfiedLinkError

      java/util/zip/ZipFile.<init>(Ljava/io/File;I)V+79 (ZipFile.java:110)

      java/util/jar/JarFile.<init>(Ljava/lang/String;)V+9 (JarFile.java:57)

 
sun/misc/URLClassPath$JarLoader.<init>(Ljava/net/URL;Ljava/net/URLStreamHand
ler;Ljava/util/HashMap;)V+36 (URLClassPath.java
:455)


After looking thru the archives I decided to set
the CLASSPATH environment variable as follows:

                         Display Environment Var (*SYS)

 

 Name  :   CLASSPATH                                          
 Value :   '/QIBM/ProdData/Java400/jdk12/bin:/QIBM/ProdData/Java400/ext'

Unfortunately, Qshell still can't find the JAR command.  
Have also tried changing the "jdk12" in the CLASSPATH 
to be "jdk13" and "jdk118".

I'm not sure I'm on the right path to solving this
problem.  Any help would be appreciated :)

Thanks,
Terry


                                                                      

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-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.