|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
!* CM error: don't know source class name /sml/lib/smlnj-lib.cmHi 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 |
|
|
Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cmI'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 > Smlnj-list@... > 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 _______________________________________________ Smlnj-list mailing list Smlnj-list@... https://lists.sourceforge.net/lists/listinfo/smlnj-list |
|
|
Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cmWhat 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 > Smlnj-list@... > 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 _______________________________________________ Smlnj-list mailing list Smlnj-list@... https://lists.sourceforge.net/lists/listinfo/smlnj-list |
|
|
Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cm[ 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 > Smlnj-list@... > 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 _______________________________________________ Smlnj-list mailing list Smlnj-list@... https://lists.sourceforge.net/lists/listinfo/smlnj-list |
|
|
Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cmThanks for the tips, ill look into it.
Earlier i tried just removing C: so i had: /sml/lib/smlnj-lib.cm and it seemed to be working. Thanks.
|
|
|
Re: !* CM error: don't know source class name /sml/lib/smlnj-lib.cmThanks for the tips, ill look into it.
Earlier i tried just removing C: so i had: /sml/lib/smlnj-lib.cm and it seemed to be working. Thanks.
|
| Free embeddable forum powered by Nabble | Forum Help |