PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 04/13/2011 9:38 AM by  Ron Martinez
Compiling java upgrade programs
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
chad208
Advanced Member
(67 points)
Advanced Member
Posts:25


Send Message:

--
09/11/2008 10:20 AM

    I need to make a modification to one of the Java upgrade programs Lawson has provided for our 8.0.3 to 9.0.0.4 upgrade.  However, I am finding I do not know how to even compile the original delivered program.

    I have tried issuing the "javac PR96X.java" command, however, am receiving errors (see below).  It appears to me from reading the errors it can not import the package "upgrade" on the first line which is causing the majority of these errors.  Can anyone provide any insight as to how I can recompile the Lawson delivered java upgrade programs?  Thank you in advance.

    PR96X.java:1: package upgrade does not exist
    import upgrade.*;
    ^
    PR96X.java:14: cannot find symbol
    symbol  : class UGFile
    location: class PR96X
        UGFile sPDH = new UGFile("PREMDEDHST",        5000);
        ^
    PR96X.java:14: cannot find symbol
    symbol  : class UGFile
    location: class PR96X
        UGFile sPDH = new UGFile("PREMDEDHST",        5000);
                          ^
    PR96X.java:18: cannot find symbol
    symbol  : class UGFile
    location: class PR96X
        UGFile tPDH = new UGFile("PREMDEDHST",      true,  false, null);
        ^
    PR96X.java:18: cannot find symbol
    symbol  : class UGFile
    location: class PR96X
        UGFile tPDH = new UGFile("PREMDEDHST",      true,  false, null);
                          ^

    John Henley
    Private
    Private
    Senior Member
    (9803 points)
    Senior Member
    Posts:3285


    Send Message:

    --
    09/11/2008 10:34 AM
    Are you making your changes and compiling from the ugsrc directory?
    Thanks for using the LawsonGuru.com forums!
    John
    chad208
    Advanced Member
    (67 points)
    Advanced Member
    Posts:25


    Send Message:

    --
    09/11/2008 10:59 AM
    Hi John, I am making my changes inside of the ugsrc directory and am also issuing the "javac PR96X.java" command from there. I have tried to compile the original lawson delivered source code as well as my modified version with the same errors listed previously.
    chad208
    Advanced Member
    (67 points)
    Advanced Member
    Posts:25


    Send Message:

    --
    09/11/2008 11:59 AM
    Looks like I got it. I changed my CLASSPATH to be the ugsrc directory (ie. CLASSPATH=/lawson/law9/dev9/ugsrc) and got it to compile.
    Ron Martinez
    Private
    Private
    Basic Member
    (15 points)
    Basic Member
    Posts:9


    Send Message:

    --
    04/13/2011 9:38 AM
    Where is classpath located?

    Where did you enter this data
    CLASSPATH=/lawson/law9/dev9/ugsrc
    You are not authorized to post a reply.