Using Nashorn on a web app platform

Edmond Kemokai ekemokai at gmail.com
Mon Mar 31 20:37:43 UTC 2014


Hi Jim,

Thanks for the follow-up.

I went ahead and installed and tested with JDK 8, so far it seems to work
as expected...it seems my problem was using jdk-7.

By the way if you want to try it, you'll need to

*create a new App,
*for new app, change the scripting engine for Javascript as demonstrated
here: https://s3.amazonaws.com/crudzilla/nashorn.gif
*restart HiveMind
*create a new script with type Javascript
*write any suitable Javascript snippet
*right-click and select test
*click run

-Edmond




On Mon, Mar 31, 2014 at 2:36 PM, Jim Laskey (Oracle) <
james.laskey at oracle.com> wrote:

> Edmond,
>
> With JDK8, ASM has been included in the JDK.  This allows, Lambda, JSR-292
> and Nashorn to share the same version of ASM.  Would you describe what
> issue you are running into?
>
> Cheers,
>
> -- Jim
>
>
>
>
> On Mar 31, 2014, at 3:24 PM, Edmond Kemokai <ekemokai at gmail.com> wrote:
>
> > Hi Folks,
> >
> > I am the developer of HiveMind (crudzilla.com), it is a web app platform
> > for the JVM. It is a combination of a container (jetty), middle-ware and
> a
> > dev environment.
> >
> > The platform uses JSR-223 so that a users can use many of the scripting
> > engines available for various languages on the JVM.
> >
> > Currently it uses Rhino for Javascript, I attempted to integrate Nashorn
> > but it seems Nashorn doesn't include ASM and including ASM separately
> > creates other conflicts.
> >
> > The Groovy jar for instance includes ASM by changing the package names
> thus
> > eliminating conflict...perhaps Nashorn should be packaged this way as
> well?
> >
> >
> > Here is a quick screencast showing usage:
> > http://crudzilla.com/assets/img/info-graphics/lang-demo.gif
> >
> > -Edmond
>
>


-- 
"talk trash and carry a small stick."
PAUL KRUGMAN (NYT)

"I believe god invented man, because he was disappointed in the monkey"
Mark Twain

"Beware of geeks bearing formulas"
Warren Buffett


More information about the nashorn-dev mailing list