Jump to content

Recommended Posts

Posted

Received this error from both available source builds:

  • forge-1.7.10-10.13.4.1492-1.7.10-src -- latest available at time of writing
  • forge-1.7.10-10.13.4.1448-1.7.10-src -- recommended build at time of writing

13:11:32.809  [org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler] Compiling with JDK Java compiler API.

...

13:11:32.866 [ERROR] [org.gradle.BuildExceptionReporter] > Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

 

[spoiler=end of log]13:11:30.592 [iNFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :recompMinecraft (Thread[main,5,main]) started.

13:11:30.598 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :recompMinecraft

13:11:30.599 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':recompMinecraft'

13:11:30.614 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':recompMinecraft' is up-to-date

13:11:31.866 [iNFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':recompMinecraft' (up-to-date check took 1.247 secs) due to:

No history is available.

13:11:31.871 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':recompMinecraft'.

13:11:31.878 [iNFO] [org.gradle.api.internal.changedetection.changes.RebuildIncrementalTaskInputs] All input files are considered out-of-date for incremental task ':recompMinecraft'.

 

[The call to compiler was right here, but is clipped due to it's enormous size exceeding the limits of a forum post]

 

13:11:32.809 [iNFO] [org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler] Compiling with JDK Java compiler API.

13:11:32.815 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':recompMinecraft'

13:11:32.820 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :recompMinecraft FAILED

13:11:32.827 [iNFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :recompMinecraft (Thread[main,5,main]) completed. Took 2.229 secs.

13:11:32.832 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 2 mins 3.108 secs, idle: 0.212 secs

13:11:32.841 [ERROR] [org.gradle.BuildExceptionReporter]

13:11:32.847 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.

13:11:32.853 [ERROR] [org.gradle.BuildExceptionReporter]

13:11:32.857 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:

13:11:32.861 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':recompMinecraft'.

13:11:32.866 [ERROR] [org.gradle.BuildExceptionReporter] > Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

13:11:32.872 [ERROR] [org.gradle.BuildExceptionReporter]

13:11:32.876 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:

13:11:32.880 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':recompMinecraft'.

13:11:32.884 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

13:11:32.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

13:11:32.893 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)

13:11:32.897 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)

13:11:32.901 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)

13:11:32.905 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)

13:11:32.910 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)

13:11:32.914 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)

13:11:32.917 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

13:11:32.921 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296)

13:11:32.925 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)

13:11:32.929 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)

13:11:32.934 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)

13:11:32.938 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)

13:11:32.942 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)

13:11:32.947 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)

13:11:32.951 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

13:11:32.955 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)

13:11:32.959 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)

13:11:32.968 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)

13:11:32.972 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)

13:11:32.976 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)

13:11:32.980 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:148)

13:11:32.984 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:105)

13:11:32.988 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:85)

13:11:32.993 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:81)

13:11:32.996 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)

13:11:33.000 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)

13:11:33.004 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:39)

13:11:33.008 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29)

13:11:33.013 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)

13:11:33.017 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)

13:11:33.021 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)

13:11:33.025 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)

13:11:33.030 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)

13:11:33.034 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)

13:11:33.038 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)

13:11:33.042 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)

13:11:33.046 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)

13:11:33.050 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)

13:11:33.054 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)

13:11:33.058 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)

13:11:33.062 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)

13:11:33.066 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)

13:11:33.070 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)

13:11:33.074 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)

13:11:33.079 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)

13:11:33.085 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)

 

13:11:33.088 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.RuntimeException: Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

13:11:33.093 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.createCompileTask(Jdk6JavaCompiler.java:57)

13:11:33.097 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:44)

13:11:33.101 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler.execute(Jdk6JavaCompiler.java:38)

13:11:33.105 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:96)

13:11:33.108 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:49)

13:11:33.112 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:35)

13:11:33.116 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:29)

13:11:33.120 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.DelegatingJavaCompiler.execute(DelegatingJavaCompiler.java:20)

13:11:33.123 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:33)

13:11:33.128 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:24)

13:11:33.133 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:87)

13:11:33.137 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:65)

13:11:33.140 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:53)

13:11:33.144 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)

13:11:33.148 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:235)

13:11:33.152 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)

13:11:33.156 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:222)

13:11:33.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)

13:11:33.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)

13:11:33.169 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

13:11:33.173 [ERROR] [org.gradle.BuildExceptionReporter] ... 47 more

13:11:33.178 [ERROR] [org.gradle.BuildExceptionReporter]

13:11:33.182 [LIFECYCLE] [org.gradle.BuildResultLogger]

13:11:33.186 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED

13:11:33.190 [LIFECYCLE] [org.gradle.BuildResultLogger]

13:11:33.195 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 3 mins 15.971 secs

 

 

Some things that I noticed:

  • %JAVA_HOME% is reported in the command window as JAVA_HOME=C:/Users/Public/AngleWyrm/prog/eclipse/jre and that folder contains the JDK 7u80 for windows i586 (x32) which works in eclipse.
  • From the log at 13:11:32.809: [iNFO] [org.gradle.api.internal.tasks.compile.jdk6.Jdk6JavaCompiler] Compiling with JDK Java compiler API.

It seems to be attempting to use jdk6 compiler, but there's no java 6 installed on my system. My PC has an admin-installed JRE8, and a manually pointed-to (via JAVA_HOME) extracted and unpacked JDK7.

 

Does it seem possible that the compiler call is not using the JAVA_HOME variable throughout? Is there a config file option or setting to force the use of JDK7 instead? Would it help?

 

Link to post on minecraftforum.net

Posted

%JAVA_HOME% is reported in the command window as JAVA_HOME=C:/Users/Public/AngleWyrm/prog/eclipse/jre and that folder contains the JDK 7u80 for windows i586 (x32) which works in eclipse.

...

It seems to be attempting to use jdk6 compiler, but there's no java 6 installed on my system. My PC has an admin-installed JRE8, and a manually pointed-to (via JAVA_HOME) extracted and unpacked JDK7.

The JAVA_HOME must point directly at the JDK folder.

 

In case it wasn't clear, the .../eclipse/jre folder (JAVA_HOME) is the unzipped & unpacked JDK7. Am I missing something?

Posted

This is how JDK7 is in my eclipse/jre folder:

 

@if "%DEBUG%"=="" echo off
rem Homebrew JDK Installer by AngleWyrm
rem Hard-coded for starting pass

rem Expectations:
set HOME=C:/Users/Public/AngleWyrm/prog
set UNZIP="%HOME%/toolbox/7zip/7za.exe"
set GRADLE_USER_HOME=%HOME%/projects/artifacts/gradle

set JAVA_HOME=%HOME%/eclipse/jre
if not exist %JAVA_HOME% do md %JAVA_HOME%
set UNPACK="%JAVA_HOME%/bin/unpack200.exe"
set PATH=%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin;%PATH%
echo Paths set. JAVA_HOME=%JAVA_HOME%

rem Remove old jdk installation and extract tools.zip to jdk
rem if exist jdk rd jdk /S /Q

%UNZIP% x -o%JAVA_HOME% %HOME%/downloads/tools.zip 

%UNPACK% -r "%JAVA_HOME%/lib/tools.pack" "%JAVA_HOME%/lib/tools.jar"

%UNPACK% -r "%JAVA_HOME%/jre/lib/charsets.pack" "%JAVA_HOME%/jre/lib/charsets.jar"
%UNPACK% -r "%JAVA_HOME%/jre/lib/deploy.pack" "%JAVA_HOME%/jre/lib/deploy.jar"
%UNPACK% -r "%JAVA_HOME%/jre/lib/javaws.pack" "%JAVA_HOME%/jre/lib/javaws.jar"
%UNPACK% -r "%JAVA_HOME%/jre/lib/jfxrt.pack" "%JAVA_HOME%/jre/lib/jfxrt.jar"
%UNPACK% -r "%JAVA_HOME%/jre/lib/jsse.pack" "%JAVA_HOME%/jre/lib/jsse.jar"
%UNPACK% -r "%JAVA_HOME%/jre/lib/plugin.pack" "%JAVA_HOME%/jre/lib/plugin.jar"
%UNPACK% -r "%JAVA_HOME%/jre/lib/rt.pack" "%JAVA_HOME%/jre/lib/rt.jar"
echo Finished converting *.pack files to *.jar files

echo.
echo gradlew.bat setupDecompWorkspace eclipse --refresh-dependencies
pause
[/Code]

 

If you have another way that doesn't involve admin install rights, I'm all ears!

Posted

Windows: Set environment variables for the JDK.

  • Go to Control Panel\System and Security\System, and click on Advanced System Settings on the left-hand side.
  • Click on Environment Variables.
  • Under System Variables, click New.
  • For Variable Name, input JAVA_HOME.
  • For Variable Value, input something similar to C:\Program Files\Java\jdk1.7.0_51 exactly as shown (or wherever your Java JDK installation is), and click Ok.
  • Scroll down to a variable named Path, and double-click on it.
  • Append ;%JAVA_HOME%\bin EXACTLY AS SHOWN and click Ok. Make sure the location is correct; double-check just to make sure.

That method requires administrator priveleges in order to access system settings, and thus it's not a portable solution.

 

I've got a pathsetup.bat that sets the environment variables within the console that will launch the gradlew install process, which is sufficient to then type 'javac' from the command line and get a usage report.

 

A note from the error log:

[ant:javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6

[ant:javac] 1 warning

:downloadMcpTools

:downloadClient

:downloadServer

:mergeJars

So somewhere along the lines the flag "-source 1.6" is inserted into the stream.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.