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



> From: Chris_Bougher@xxxxxxxxxxxxx
> 
> Use this tool from ibm to check your toolbox version.
> 
> ftp://ftp.software.ibm.com/as400/products/javatoolbox/AboutToolbox/

It works nicely, and gives me:

Open Source Software, JTOpen 3.1, codebase 5722-JC1 V5R2M0.1

I don't like the fact that it's in package com.ibm.as400.access, so I
decompiled and recompiled it for the default package (I used dj, a very
nice shareware decompiler):

// Decompiled by DJ v3.2.2.67 Copyright 2002 Atanas Neshkov  Date:
1/22/2004 4:13:15 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check
often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   AboutToolbox.java

import java.io.PrintStream;
import java.lang.reflect.Field;

public class AboutToolbox
{

    public static void main(String args[])
    {
        System.out.println("\nAS/400 Toolbox for Java:\n");
        try
        {
            Class class1 =
Class.forName("com.ibm.as400.access.Copyright");
            Field field = class1.getDeclaredField("version");
            System.out.println(field.get(null));
            return;
        }
        catch(NoSuchFieldException _ex)
        {
            System.out.println("Your version of the AS/400 Toolbox for
Java is either:");
            System.out.println("  - Modification 0,");
            System.out.println("  - Modification 1, or");
            System.out.println("  - Modification 2 without PTF
SF57202\n");
            System.out.println("In order for \"AboutToolbox\" to more
precisely determine your level of the Toolbox, you need to have at least
Toolbox Modification 2 with PTF SF57202 or later.");
            return;
        }
        catch(Exception exception)
        {
            exception.printStackTrace();
            System.out.println("Unexpected Error Occurred: " +
exception);
            return;
        }
    }

    public AboutToolbox()
    {
    }
}


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.