Compiling java upgrade programs

 4 Replies
 0 Subscribed to this topic
 10 Subscribed to this forum
Sort:
Author
Messages
chad208
New Member Send Private Message
Posts: 0
New Member

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
Send Private Message
Posts: 3351
Are you making your changes and compiling from the ugsrc directory?
Thanks for using the LawsonGuru.com forums!
John
chad208
New Member Send Private Message
Posts: 0
New Member
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
New Member Send Private Message
Posts: 0
New Member
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
Basic Member Send Private Message
Posts: 9
Basic Member
Where is classpath located?

Where did you enter this data
CLASSPATH=/lawson/law9/dev9/ugsrc