[mtasc] compiler command string
Ron Wheeler
rwheeler at artifact-software.com
Tue Nov 9 00:05:47 CET 2004
I posted this on Sunday afternoon, which is not the best time even for a
dedicated crowd like this.
Anyone have any ideas about what I am missing? I really would like to get
this compiler to work.
Ron
-------------------
I am starting to test the compiler and can not get it to find my class
libraries.
The Main.as is in a directory and the imported classes are in a subdirectory
tree
under the main directory where main.as is held.
I am running the command from the directory where the Main.as exists.
The main program is
import com.artifact_software.ali.model.UserListObject;
class Main {
static public function run ():Boolean {
var testUserXML:String;
testUserXML=' some really long xml string ';
testUserlist = new UserListObject(testUserXML)
return true;
}
static public var computerIsOn:Boolean = Main.run();
}
The command line I tried is this
C:\eclipse\workspace\ALI\Artifact Learning Interface v1.1>c:\mtasc\mtasc
main.as -header 800:600:12 -v
Classpath : c:\mtasc/std/;c:\mtasc/;
Parsed c:\mtasc/std/Number.as
Parsed c:\mtasc/std/Object.as
Parsed c:\mtasc/std/Boolean.as
Parsed c:\mtasc/std/String.as
Parsed c:\mtasc/std/Array.as
Parsed c:\mtasc/std/Function.as
Parsed c:\mtasc/std/StdPresent.as
Parsed Main.as
Typing Main.run
Parsed c:\mtasc/std/TopLevel.as
Parsed c:\mtasc/std/MovieClip.as
Main.as:7: characters 1-13 : type error Unknown class testUserlist
If i try to add the current directory to the classpath, I get the following:
C:\eclipse\workspace\ALI\Artifact Learning Interface v1.1>c:\mtasc\mtasc
main.as
-header 800:600:12 -v -cp .
Classpath : ./;c:\mtasc/std/;c:\mtasc/;
Parsed c:\mtasc/std/Number.as
Parsed c:\mtasc/std/Object.as
Parsed c:\mtasc/std/Boolean.as
Parsed c:\mtasc/std/String.as
Parsed c:\mtasc/std/Array.as
Parsed c:\mtasc/std/Function.as
Parsed c:\mtasc/std/StdPresent.as
Parsed ./Main.as
Typing Main.run
Parsed c:\mtasc/std/TopLevel.as
Parsed c:\mtasc/std/MovieClip.as
./Main.as:7: characters 1-13 : type error Unknown class testUserlist
More information about the mtasc
mailing list