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 <[email protected]>: > Ok - thanks Jim. > > Ben > > On Thu, May 8, 2014 at 1:20 PM, Jim Laskey (Oracle) > <[email protected]> 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 <[email protected]> > 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
