From d45350bdb17b664bb99072ec16b42d64c2ee3c30 Mon Sep 17 00:00:00 2001 From: Athijegannathan Sundararajan Date: Thu, 13 Aug 2015 19:09:18 +0530 Subject: [PATCH] 8133347: Add makefiles support and basic session, persistence history navigation with jline Reviewed-by: erikj, jlahoda, jlaskey --- jdk/make/launcher/Launcher-jdk.scripting.nashorn.gmk | 2 +- jdk/src/java.base/share/conf/security/java.policy | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/jdk/make/launcher/Launcher-jdk.scripting.nashorn.gmk b/jdk/make/launcher/Launcher-jdk.scripting.nashorn.gmk index 1a9f71c05af..efc2230ddd0 100644 --- a/jdk/make/launcher/Launcher-jdk.scripting.nashorn.gmk +++ b/jdk/make/launcher/Launcher-jdk.scripting.nashorn.gmk @@ -26,5 +26,5 @@ include LauncherCommon.gmk $(eval $(call SetupLauncher,jjs, \ - -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "jdk.nashorn.tools.Shell"$(COMMA) }')) + -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "jdk.nashorn.tools.jjs.Main"$(COMMA) }')) diff --git a/jdk/src/java.base/share/conf/security/java.policy b/jdk/src/java.base/share/conf/security/java.policy index aef0017be48..968cc4ff52e 100644 --- a/jdk/src/java.base/share/conf/security/java.policy +++ b/jdk/src/java.base/share/conf/security/java.policy @@ -23,6 +23,14 @@ grant codeBase "jrt:/jdk.scripting.nashorn" { permission java.security.AllPermission; }; +grant codeBase "jrt:/jdk.scripting.nashorn.shell" { + permission java.security.AllPermission; +}; + +grant codeBase "jrt:/jdk.internal.le" { + permission java.security.AllPermission; +}; + grant codeBase "jrt:/jdk.crypto.ucrypto" { permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*"; permission java.lang.RuntimePermission "accessClassInPackage.sun.nio.ch";