Hi,
I have an issue felated to compilation, classes and USING keyword / packages.
I'm trying to compile a class located in a sub-directory.
This class contains a "USING" phrase referencing to itself :
If i open this cls file in a Progress Editor and use Check Syntax, it is Ok ("Syntax is correct.")
I've put the path of the file (C:\testCompileUsing\Classes\testClass.cls) to this file in my PROPATH. It is visible by the PROPATH (a SEARCH on file base name returns the correct complete path : "C:\testCompileUsing\Classes\testClass.cls".
But when I am trying to compile it I get error :
Here is the code I use to compile the class :
Any idea to achieve this (compiling a class USING itself) ?
Thanks in advance.
I have an issue felated to compilation, classes and USING keyword / packages.
I'm trying to compile a class located in a sub-directory.
This class contains a "USING" phrase referencing to itself :
Code:
/*testClasss.cls*/
USING testCompileUsing.Classes.testClass.
CLASS testClass :
END CLASS.
If i open this cls file in a Progress Editor and use Check Syntax, it is Ok ("Syntax is correct.")
I've put the path of the file (C:\testCompileUsing\Classes\testClass.cls) to this file in my PROPATH. It is visible by the PROPATH (a SEARCH on file base name returns the correct complete path : "C:\testCompileUsing\Classes\testClass.cls".
But when I am trying to compile it I get error :
Could not find class or interface testCompileUsing.Classes.testClass. (12886)
Here is the code I use to compile the class :
Code:
/*launcher_testCompileUsing.p*/
PROPATH = "".
PROPATH = "C:\testCompileUsing\Classes\".
MESSAGE REPLACE(PROPATH, ',', CHR(10)) SKIP(2)
"SEARCH('testClass.cls')='" + SEARCH('testClass.cls') + "'"
VIEW-AS ALERT-BOX.
COMPILE C:\testCompileUsing\Classes\testClass.cls SAVE.
Any idea to achieve this (compiling a class USING itself) ?
Thanks in advance.
Last edited: