Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cm
Matthias Blume <[email protected]> Fri, 20 Mar 2009 15:53:36 -0500
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
[ apologies if you see this twice; I am re-sending from a different sender address because the mailing list was holding me up for moderator approval ] What version of SML/NJ are you using? In newer versions, as John Reppy already pointed out, you specify the SML/NJ library as $/smlnj-lib.cm and CM should then find it wherever it was installed. If you absolutely must use an absolute Windows path, you can put it in double quotes: "C:\sml\lib\smlnj-lib.cm" Notice that you would have to use native Windows-style path syntax all the way through. Matthias 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