[8:24]<Flogge> Hello [8:25]<Flogge> How can I achieve the following thing in helma: http://helma.pastebin.com/m4111f95a ? [8:26]<Flogge> var mkdp = new Packages.com.petebevin.markdown.MarkdownProcessor(); won't work [8:26]<Flogge> neither would var string = Packages.com.petebevin.markdown.MarkdownProcessor.markdown("Hallo"); [9:18]<simono> what the error you get Flogge ? [9:28]<Flogge> simono: TypeError: [JavaPackage com.petebevin.markdown.MarkdownProcessor] is not a function. [9:33]<simono> and the markdown processor package (jar) must be in helma's lib/ext directory [9:33]<Flogge> ah [9:33]<Flogge> hehe... I put it in lib [9:34]<Flogge> same problem [9:34]<Flogge> how do I create Java-Instances in Helma? [9:34]<simono> hm, not sure .. i think lib should work too [9:34]<simono> you are doing it right [9:34]<Flogge> wich one is correct? [9:35]<Flogge> var mkdp = new Packages.com.petebevin.markdown.MarkdownProcessor(); var string = mkdp.markdown("Hallo"); [9:35]<simono> try new Packages.com.petebevin.markdown.MarkdownProcessor.MarkdownProcessor() [9:35]<Flogge> or [9:35]<Flogge> var string = Packages.com.petebevin.markdown.MarkdownProcessor.markdown("Hallo"); [9:35]<Flogge> ok... [9:36]<Flogge> TypeError: [JavaPackage com.petebevin.markdown.MarkdownProcessor.MarkdownProcessor] is not a function. [9:37]<simono> you know about htis? https://developer.mozilla.org/en/Scripting_Java [9:42]<Flogge> hm [9:42]<Flogge> I can't find anything of use... [9:47]<Flogge> I am using Apache as a webserver [9:48]<Flogge> do I have to restart anything after adding the lib? [9:55]<Flogge> thats the source by the way: http://github.com/myabc/markdownj/blob/28c954299bba411b3832b3731e8d01fe44d6b6ea/src/java/com/petebevin/markdown/MarkdownProcessor.java [10:22]* simono is back [10:22]<simono> yes restart helma after you added it to your lib [10:23]<simono> and then this should work http://helma.pastebin.com/m1b16969e Flogge [11:03]<Flogge> Do I have to restart my apache if I'm not using the builtin server? [11:05]<Flogge> Dammit, my init.d-script hangs at "Shutting down httpd2" [11:05]<Flogge> :-D [11:09]<Flogge> I have restarted Apache but I am still getting the same "is not a function" message [11:11]<simono> no restarting helma should be sufficient [11:21]<Flogge> grrr, this is annoying [11:30]<simono> still no luck? works for me after restarting helma [11:39]<Flogge> nope... [11:39]<Flogge> althoug I don't think we're actually using helma [11:39]<Flogge> were jk-mounting antville into Apache [11:42]<simono> yeah thats helma. i had to restart it, did you try that? [11:42]<Flogge> yup [11:42]<simono> and this code http://helma.pastebin.com/m1b16969e gives you the "is not a function" error? [11:42]<Flogge> although its throwing up a BindException [11:43]<simono> sounds like another helma is still running on the same port [11:44]<simono> try killing all java procs related to helma and restart it [11:46]<Flogge> wohoo [11:46]<Flogge> now its working [11:47]<Flogge> stupid helmactl didn't stop the old processes [11:47]<simono> :) [11:54]<Flogge> wohoooo [11:54]<Flogge> awesome [11:55]<Flogge> I've added a as="markdown"-Parameter