Missing jjs on Mac OS

Marcelo Rodrigues Costa marcelorjava at gmail.com
Sun May 11 22:18:41 UTC 2014


This worked for me:

*Install the JDK8 and create an alias for your JDK's jjs (Nashorn
Interpreter), e.g., if you create a file called test.js, you can run the
program with:*

*$ jjs test.js*

*Mac OS = alias
jjs=’/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/jjs’*


http://stackoverflow.com/questions/15306892/nashorn-in-jdk8-b80

Cheers,


2014-05-08 13:23 GMT+01:00 Ben Evans <benjamin.john.evans at gmail.com>:

> Ok - thanks Jim.
>
> Ben
>
> On Thu, May 8, 2014 at 1:20 PM, Jim Laskey (Oracle)
> <james.laskey at oracle.com> wrote:
> > Ben,
> >
> > You have to take it up with Apple.  java, javac et al links were 'built'
> into the OS when Apple controlled Java on Mac OS X.  What you have now are
> ghosts from the past.  jjs has been added since Apple handed java
> maintenance over to Oracle.  What you have now are ghosts from the past.
>  Currently, each user has to manually (cd /usr/bin/ ;  ln -s
> $JAVA_HOME/bin/jjs jjs) .
> >
> > Cheers,
> >
> > -- Jim
> >
> >
> >
> > On May 8, 2014, at 9:01 AM, Ben Evans <benjamin.john.evans at gmail.com>
> wrote:
> >
> >> Hi,
> >>
> >> It's great having JDK 8 as the "system JDK" on Mac now, but it looks
> >> like the current packaging doesn't put jjs into this directory:
> >>
> >> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/
> >>
> >> which is the location that files from /usr/bin should target.
> >>
> >> Is there somewhere more official I should report this? Details of my
> >> use case below:
> >>
> >> Thanks,
> >>
> >> Ben
> >>
> >> Mac OS 10.7.5
> >>
> >> $ java -version
> >> java version "1.8.0_05"
> >> Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
> >> Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
> >>
> >> $ which java
> >> /usr/bin/java
> >
>



-- 
Marcelo Rodrigues


More information about the nashorn-dev mailing list