无法执行Java命令。访问被拒绝。 (0x5的)

时间:2018-02-19 11:10:33

标签: java

启动StartSonar.bat时出现以下错误,我在wrapper.config文件中添加了public class BaseTestClass { public void setUp() { System.out.println("Base Test Class"); } } public class InheritsFromBase extends BaseTestClass { @Override @BeforeEach public void setUp() { System.out.println("I inherit from base"); super.setUp(); } }

wrapper.java.command=C:/Program Files/Java/jdk1.8.0_121/bin

1 个答案:

答案 0 :(得分:9)

快速谷歌搜索可以让您轻松找出问题。

您的包装器配置几乎是正确的。打开文件并编辑WITH aud(manager_email, director, quarter, total_audits_required) AS (SELECT manager_email, director, quarter, SUM (CASE WHEN audit_eligible = 'Y' THEN required_audits END) FROM required_audits GROUP BY manager_email, director, quarter), --Total_audits scores(manager_email, director, quarter, audits_completed, distinct_errors) AS (SELECT manager_email, director, quarter, Count (score), COUNT (DISTINCT o.error_id) -- ** Added ** FROM oq_score_entry s join error o on o.score_entry_id=s.score_entry_id GROUP BY manager_email, director, quarter) --Audits_Performed SELECT a.director, a.manager_email manager, a.total_audits_required, s.audits_completed, Round(( ( s.distinct_errors ) / ( s.audits_completed ) * 100 ), 2) quality, -- ** Added ** Round(( ( s.audits_completed ) / ( a.total_audits_required ) * 100 ), 2) percentage_complete, a.quarter FROM aud a left outer join scores s ON a.manager_email = s.manager_email WHERE ( :P4_MANAGER_EMAIL = a.manager_email OR :P4_MANAGER_EMAIL IS NULL ) AND ( :P4_DIRECTOR = a.director OR :P4_DIRECTOR IS NULL ) AND ( :P4_QUARTER = a.quarter OR :P4_QUARTER IS NULL ) ORDER BY a.total_audits_required DESC nulls last 配置密钥:

wrapper.java.command

如您所见,您的路径中缺少# Path to JVM executable. By default it must be available in PATH. # Can be an absolute path, for example: wrapper.java.command=C:\Program Files\Java\jdk1.8.0_121\bin\java #wrapper.java.command=java

希望这有帮助!干杯和快乐的编码。