Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cm

John Reppy <[email protected]> Thu, 19 Mar 2009 13:43:37 -0500
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
I'm not sure how your program is interacting with SML, but a CM file is
a "compilation manager" specification (similar to an Ant file in the  
Java
world).  The usual way to refer to the SML/NJ library is

	$/smlnj-lib.cm

(the "$" tells CM to look in the standard place for the smlnj-lib.cm  
file).

	- John

On Mar 18, 2009, at 12:49 PM, 00jt wrote:

>
> Hi everyone, i am not an SML programmer, but i am supposed to be  
> using some
> .sml and .cm files with my Java GUI.
>
> I have a file "myCM.cm"
>
> that has this:
> ----------------------
> Group is
>
> 	smlnj-lib.cm
>              ...
> -----------------------
> And this part works if i run my command from the command line (or  
> a .bat
> file).
> But Java is weird with its environment/PATH variables, and says  
> "cannot find
> smlnj-lib.cm".
>
> I figured i could help java out by giving the absolute path to the
> smlnj-lib.cm... so i changed it:
>
> -------------------
> Group is
>
> 	C:/sml/lib/smlnj-lib.cm
>             ...
> -------------------
>
> But now, i get an error from CM (in my GUI and on the Command line):
>      "!* CM error: don't know source class name /sml/lib/smlnj-lib.cm"
>
> Does CM not like to have absolute paths for a class name? is there a  
> way to
> do that?
> I am also trying to get Java to understand where the PATH is, but if  
> I could
> just change this one part in the CM, i believe everything would work.
>
> Any help would be great, Thanks
>
> -00JT
>
>
> -- 
> View this message in context: http://www.nabble.com/%21*-CM-error%3A-don%27t-know-source-class-name--sml-lib-smlnj-lib.cm-tp22584767p22584767.html
> Sent from the SML/NJ mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM)  
> are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly  
> and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based  
> development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> Smlnj-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/smlnj-list
>


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com