Running SML with java program, errors

jt pe <[email protected]> Mon, 1 Feb 2010 13:06:21 -0600
Newsgroups gmane.comp.lang.sml.smlnj
Message-ID <[email protected]>
--===============1390641378160354504==
Content-Type: multipart/alternative;
	boundary="_37814a7b-2918-4477-a0bb-e849f8cc7a5c_"

--_37814a7b-2918-4477-a0bb-e849f8cc7a5c_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I am trying to run a .sml program through java.
First i tried using a simple bat file to run it..

{// inside bat file
=20
    // Setting variables
    SET WorkingDir =3D "C:\foo\"
    SET SML =3D "C:\sml\bin\.run\run.x86-win32.exe"
    SET  SML_LOAD =3D "C:\sml\bin\.heap\sml.x86-win32"
=20
=20
    CD =3D%WorkingDir%
=20
     // command to run:
     %SML%   @SMLload=3D%SML_LOAD%  foo.sml
}

Anyhow=2C it works just fine with the bat command.
But=2C when I try it in java it gives me an error:
   !* CM error: ML-Lex failed: ml-lex target_tokens.spec

I believe everything on the Java side is working.. (i am asking Java forums=
 as well) I can run other SML code from java. (though the other examples do=
 not utilize "@SMLload=3D" or ""C:\sml\bin\.run\run.x86-win32.exe"")

Does any one know of any issues that may be arising due to calling the prog=
ram through java?
Thanks
-JT



 		 	   		 =20
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/201469229/direct/01/=

--_37814a7b-2918-4477-a0bb-e849f8cc7a5c_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Verdana
}
--></style>
</head>
<body class=3D'hmmessage'>
I am trying to run a .sml program through java.<div><br></div><div>First i =
tried using a simple bat file to run it..</div><div><br></div><div><br></di=
v><div><span class=3D"Apple-style-span" style=3D"font-family: arial=2C helv=
etica=2C sans-serif=3B "><pre class=3D"jive-pre" style=3D"font-size: 10pt=
=3B font-family: Monaco=2C Courier=2C 'Courier New'=2C monospace=3B margin-=
top: 1em=3B margin-right: 2em=3B margin-bottom: 0.5em=3B margin-left: 2em=
=3B color: rgb(68=2C 68=2C 68)=3B overflow-x: auto=3B overflow-y: auto=3B w=
idth: 650px=3B padding-top: 10px=3B padding-right: 10px=3B padding-bottom: =
10px=3B padding-left: 1em=3B background-color: initial=3B border-top-width:=
 1px=3B border-right-width: 1px=3B border-bottom-width: 1px=3B border-left-=
width: 2px=3B border-top-color: rgb(238=2C 238=2C 238)=3B border-right-colo=
r: rgb(238=2C 238=2C 238)=3B border-bottom-color: rgb(238=2C 238=2C 238)=3B=
 border-left-color: rgb(204=2C 204=2C 204)=3B border-top-style: solid=3B bo=
rder-right-style: solid=3B border-bottom-style: solid=3B border-left-style:=
 solid=3B background-image: url(http://forums.sun.com/images/quote-backgrou=
nd-1.gif)=3B background-attachment: initial=3B background-origin: initial=
=3B background-clip: initial=3B background-position: initial initial=3B bac=
kground-repeat: initial initial=3B "><code class=3D"jive-code jive-java" st=
yle=3D"font-family: Monaco=2C Courier=2C 'Courier New'=2C monospace=3B colo=
r: rgb(68=2C 68=2C 68)=3B "><font color=3D"navy" style=3D"font-size: 12px !=
important=3B font-family: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'N=
imbus Sans L'=2C sans-serif !important=3B ">{</font><font color=3D"darkgree=
n" style=3D"font-size: 12px !important=3B font-family: Arial=2C Helvetica=
=2C FreeSans=2C Luxi-sans=2C 'Nimbus Sans L'=2C sans-serif !important=3B ">=
// inside bat file</font>
&nbsp=3B
    <font color=3D"darkgreen" style=3D"font-size: 12px !important=3B font-f=
amily: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimbus Sans L'=2C sa=
ns-serif !important=3B ">// Setting variables</font>
    SET WorkingDir =3D <font color=3D"red" style=3D"font-size: 12px !import=
ant=3B font-family: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimbus =
Sans L'=2C sans-serif !important=3B ">"C:\foo\"</font>
    SET SML =3D <font color=3D"red" style=3D"font-size: 12px !important=3B =
font-family: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimbus Sans L'=
=2C sans-serif !important=3B ">"C:\sml\bin\.run\run.x86-win32.exe"</font>
    SET  SML_LOAD =3D <font color=3D"red" style=3D"font-size: 12px !importa=
nt=3B font-family: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimbus S=
ans L'=2C sans-serif !important=3B ">"C:\sml\bin\.heap\sml.x86-win32"</font=
>
&nbsp=3B
&nbsp=3B
    CD =3D%WorkingDir%
&nbsp=3B
     <font color=3D"darkgreen" style=3D"font-size: 12px !important=3B font-=
family: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimbus Sans L'=2C s=
ans-serif !important=3B ">// command to run:</font>
     %SML%   @SMLload=3D%SML_LOAD%  foo.sml
<font color=3D"navy" style=3D"font-size: 12px !important=3B font-family: Ar=
ial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimbus Sans L'=2C sans-serif =
!important=3B ">}</font></code></pre></span></div><div><br></div><div><br><=
/div><div>Anyhow=2C it works just fine with the bat command.</div><div><br>=
</div><div>But=2C when I try it in java it gives me an error:</div><div><br=
></div><div>&nbsp=3B&nbsp=3B&nbsp=3B!* CM error: ML-Lex failed: ml-lex targ=
et_tokens.spec</div><div><br></div><div><br></div><div>I believe everything=
 on the Java side is working.. (i am asking Java&nbsp=3Bforums&nbsp=3Bas we=
ll)&nbsp=3B</div><div>I can run other SML code from java. (though the other=
 examples do not utilize "@SMLload=3D" or "<span class=3D"Apple-style-span"=
 style=3D"font-family: Arial=2C Helvetica=2C FreeSans=2C Luxi-sans=2C 'Nimb=
us Sans L'=2C sans-serif=3B font-size: 12px=3B color: rgb(255=2C 0=2C 0)=3B=
 white-space: pre=3B ">"C:\sml\bin\.run\run.x86-win32.exe"<span class=3D"Ap=
ple-style-span" style=3D"color: rgb(0=2C 0=2C 0)=3B font-family: Verdana=3B=
 white-space: normal=3B font-size: 13px=3B ">")</span></span></div><div><sp=
an class=3D"Apple-style-span" style=3D"font-family: Arial=2C Helvetica=2C F=
reeSans=2C Luxi-sans=2C 'Nimbus Sans L'=2C sans-serif=3B font-size: 12px=3B=
 color: rgb(255=2C 0=2C 0)=3B white-space: pre=3B "><span class=3D"Apple-st=
yle-span" style=3D"color: rgb(0=2C 0=2C 0)=3B font-family: Verdana=3B white=
-space: normal=3B font-size: 13px=3B "><br></span></span></div><div><span c=
lass=3D"Apple-style-span" style=3D"font-family: Arial=2C Helvetica=2C FreeS=
ans=2C Luxi-sans=2C 'Nimbus Sans L'=2C sans-serif=3B font-size: 12px=3B col=
or: rgb(255=2C 0=2C 0)=3B white-space: pre=3B "><span class=3D"Apple-style-=
span" style=3D"color: rgb(0=2C 0=2C 0)=3B font-family: Verdana=3B white-spa=
ce: normal=3B font-size: 13px=3B "><br></span></span></div><div>Does any on=
e know of any issues that may be arising due to calling the program through=
 java?</div><div><br></div><div>Thanks</div><div><br></div><div>-JT</div><d=
iv><br></div><div><br></div><div><br></div><div><br></div> 		 	   		  <br /=
><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a hr=
ef=3D'http://clk.atdmt.com/GBL/go/201469229/direct/01/' target=3D'_new'>Sig=
n up now.</a></body>
</html>=

--_37814a7b-2918-4477-a0bb-e849f8cc7a5c_--


--===============1390641378160354504==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--===============1390641378160354504==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Smlnj-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smlnj-list

--===============1390641378160354504==--