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



Lim,

A while back I wrote a CL program to "zip" and "unzip" a library. The CL to create the "zip" file can be found here:

http://code.midrange.com/index.php?id=1de1cf2e47

The CL to "unzip" the library can be found here:

http://code.midrange.com/index.php?id=e1103643a6

I front ended the CL with a cmd to prompt for the parameters but the base CL should work file for you. At least, you should see the basic approach to use.

Hope this helps.

Pete Helgren

Lim Hock-Chai wrote:
Yes, copy it to stream file and then jar it seems to be working.
However, I'm not able to un-jar it, it does not do anything.

Below is what I did to un-jar:
Jar -x test1.jar

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter Levy
Sent: Monday, November 27, 2006 4:34 PM
To: Midrange Systems Technical Discussion
Subject: Re: FW: help with jar

I justed tried this:

CPYTOSTMF FROMMBR('/QSYS.LIB/MYLIB.LIB/MYSAVF.FILE')
TOSTMF('/home/MyDir/MYSAVF.savf')

and then ran jar over the to-stream-file. Seemed to work fine though I
didn't un-jar it to see if it worked.

Lim Hock-Chai wrote:
I've been trying to jar a SAVF file to a ifs directory without any success. Can anybody help? below is what I got: jar -cf test1.jar /qsys.lib/palhc.lib/test.FILE

java.io.FileNotFoundException: Function not allowed.
/qsys.lib/palhc.lib/test.FILE
        at java.lang.Throwable.<init>(Throwable.java:195)

        at java.lang.Exception.<init>(Exception.java:41)

        at java.io.IOException.<init>(IOException.java:40)

        at
java.io.FileNotFoundException.<init>(FileNotFoundException.java:46)

        at sun.tools.jar.Main.addFile(Main.java:613)

        at sun.tools.jar.Main.create(Main.java:413)

        at sun.tools.jar.Main.run(Main.java:143)

        at sun.tools.jar.Main.main(Main.java:904)


Save File TEST exists in PALHC library. Not sure why it keeps telling

me that file not found.
thanks.



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.