[melt-help] MELT dc.jar Help
Ted Kaminski
tedinski at cs.umn.edu
Wed Jan 25 13:39:28 CST 2012
parse is declared in dc (it's a parser, as you might guess):
http://code.google.com/p/silver/source/browse/tutorials/dc/Main.sv#11
The standard library function can be found under 'grammars/core' from
silver's root. Here's implode:
http://code.google.com/p/silver/source/browse/grammars/core/String.sv#3
Ted
On Wed, Jan 25, 2012 at 1:34 PM, Kristofer Von Ahnen <vonah001 at umn.edu>wrote:
> Mhm. Was the '/MELT Software/' the problem?
>
> And another quick question. In dc.sv we have two functions called:
>
> "implode(string, string)"
>
> and
>
> "parse(string, string)"
>
> Where can we find these methods? Are they in a different Silver file?
>
> Kris
>
>
> On Wed, Jan 25, 2012 at 1:16 PM, Ted Kaminski <tedinski at cs.umn.edu> wrote:
>
>> That path is what I meant. Thanks!
>>
>> Ted
>>
>>
>> On Wed, Jan 25, 2012 at 1:15 PM, Kristofer Von Ahnen <vonah001 at umn.edu>wrote:
>>
>>> I do, but what exactly do you mean by path to Silver? To what file?
>>>
>>> ~/Desktop/MELT/MELT Software/silver-0.3.4/jars
>>>
>>>
>>> On Wed, Jan 25, 2012 at 12:42 PM, Ted Kaminski <tedinski at cs.umn.edu>wrote:
>>>
>>>> Quick followup question: do you have spaces in the path to silver?
>>>>
>>>> Trying to diagnose the cause here...
>>>>
>>>> Ted
>>>>
>>>> On Wed, Jan 25, 2012 at 12:41 PM, Kristofer Von Ahnen <vonah001 at umn.edu
>>>> > wrote:
>>>>
>>>>> It works when I do "./silver-compile --onejar," thanks!
>>>>>
>>>>> Kris
>>>>>
>>>>>
>>>>> On Wed, Jan 25, 2012 at 12:23 PM, Ted Kaminski <tedinski at cs.umn.edu>wrote:
>>>>>
>>>>>> Silver's normal build mode results in a jar with a hard coded
>>>>>> absolute path to "SilverRuntime.jar". It looks like maybe you moved things
>>>>>> around after dc was built, and that path isn't valid anymore.
>>>>>>
>>>>>> Try just rebuilding the dc jar. If that doesn't fix it (are you
>>>>>> running on windows?) try using the '--onejar' flag when building dc.
>>>>>> (./silver-compile --onejar)
>>>>>>
>>>>>> Ted
>>>>>>
>>>>>> On Wed, Jan 25, 2012 at 12:18 PM, Kristofer Von Ahnen <
>>>>>> vonah001 at umn.edu> wrote:
>>>>>>
>>>>>>> I'm trying to run the dc.jar file with the following command while
>>>>>>> in the containing directory:
>>>>>>>
>>>>>>> java -jar dc.jar
>>>>>>>
>>>>>>>
>>>>>>> However, I'm getting this error message everytime I try:
>>>>>>>
>>>>>>> "Exceptin in thread "main" java.lang.NoClassDefFoundError:
>>>>>>> common/Node
>>>>>>> Caused by: java.lang.ClassNotFoundException: common.Node
>>>>>>> ...
>>>>>>> ...
>>>>>>> Could not find the main class: dc.Main. Program will exit."
>>>>>>>
>>>>>>> Any help would be much appreciated.
>>>>>>>
>>>>>>> Thanks!
>>>>>>> Kris Von Ahnen
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> melt-help mailing list
>>>>>>> melt-help at cs.umn.edu
>>>>>>> https://wwws.cs.umn.edu/mm-cs/listinfo/melt-help
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.umn.edu/archives/melt-help/attachments/20120125/8c4de7f5/attachment.html>
More information about the melt-help
mailing list