Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-4744

devstudio.product_master Job on Jenkins is failing: cannot find javac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 12.10.0.AM1
    • 12.10.0.AM1
    • build
    • None
    • NEW

      Console log:
      https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/Devstudio/view/devstudio_master/job/devstudio.product_master/3640/console

      8:20:58 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (install) on project installer: An Ant BuildException has occured: The following error occurred while executing this line:
      18:20:58 [ERROR] /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/build.xml:82: Unable to find a javac compiler;
      18:20:58 [ERROR] com.sun.tools.javac.Main is not on the classpath.
      18:20:58 [ERROR] Perhaps JAVA_HOME does not point to the JDK.
      18:20:58 [ERROR] It is currently set to "/qa/tools/opt/x86_64/openjdk-1.8.0.191.b12/jre"
      18:20:58 [ERROR] around Ant part ...<ant antfile="build.xml">... @ 4:28 in /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/target/antrun/build-main.xml
      18:20:58 [ERROR] -> [Help 1]
      18:20:58 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (install) on project installer: An Ant BuildException has occured: The following error occurred while executing this line:
      18:20:58 /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/build.xml:82: Unable to find a javac compiler;
      18:20:58 com.sun.tools.javac.Main is not on the classpath.
      18:20:58 Perhaps JAVA_HOME does not point to the JDK.
      18:20:58 It is currently set to "/qa/tools/opt/x86_64/openjdk-1.8.0.191.b12/jre"
      18:20:58 around Ant part ...<ant antfile="build.xml">... @ 4:28 in /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/target/antrun/build-main.xml
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      18:20:58     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
      18:20:58     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
      18:20:58     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
      18:20:58     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
      18:20:58     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      18:20:58 Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: The following error occurred while executing this line:
      18:20:58 /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/build.xml:82: Unable to find a javac compiler;
      18:20:58 com.sun.tools.javac.Main is not on the classpath.
      18:20:58 Perhaps JAVA_HOME does not point to the JDK.
      18:20:58 It is currently set to "/qa/tools/opt/x86_64/openjdk-1.8.0.191.b12/jre"
      18:20:58 around Ant part ...<ant antfile="build.xml">... @ 4:28 in /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/target/antrun/build-main.xml
      18:20:58     at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:342)
      18:20:58     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      18:20:58     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
      18:20:58     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
      18:20:58     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
      18:20:58     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
      18:20:58     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      18:20:58 Caused by: org.apache.tools.ant.BuildException: The following error occurred while executing this line:
      18:20:58 /mnt/hudson_workspace/workspace/devstudio.product_master/sources/product/installer/build.xml:82: Unable to find a javac compiler;
      18:20:58 com.sun.tools.javac.Main is not on the classpath.
      18:20:58 Perhaps JAVA_HOME does not point to the JDK.
      18:20:58 It is currently set to "/qa/tools/opt/x86_64/openjdk-1.8.0.191.b12/jre"
      18:20:58     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException (ProjectHelper.java:508)
      18:20:58     at org.apache.tools.ant.taskdefs.Ant.execute (Ant.java:418)
      18:20:58     at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:288)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)
      18:20:58     at org.apache.tools.ant.Task.perform (Task.java:348)
      18:20:58     at org.apache.tools.ant.Target.execute (Target.java:357)
      18:20:58     at org.apache.tools.ant.Target.performTasks (Target.java:385)
      18:20:58     at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1337)
      18:20:58     at org.apache.tools.ant.Project.executeTarget (Project.java:1306)
      18:20:58     at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:313)
      18:20:58     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      18:20:58     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
      18:20:58     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
      18:20:58     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
      18:20:58     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
      18:20:58     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      18:20:58 Caused by: org.apache.tools.ant.BuildException: Unable to find a javac compiler;
      18:20:58 com.sun.tools.javac.Main is not on the classpath.
      18:20:58 Perhaps JAVA_HOME does not point to the JDK.
      18:20:58 It is currently set to "/qa/tools/opt/x86_64/openjdk-1.8.0.191.b12/jre"
      18:20:58     at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:108)
      18:20:58     at org.apache.tools.ant.taskdefs.Javac.compile (Javac.java:1058)
      18:20:58     at org.apache.tools.ant.taskdefs.Javac.execute (Javac.java:882)
      18:20:58     at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:288)
      18:20:58     at sun.reflect.GeneratedMethodAccessor62.invoke (Unknown Source)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)
      18:20:58     at org.apache.tools.ant.Task.perform (Task.java:348)
      18:20:58     at org.apache.tools.ant.Target.execute (Target.java:357)
      18:20:58     at org.apache.tools.ant.Target.performTasks (Target.java:385)
      18:20:58     at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1337)
      18:20:58     at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets (SingleCheckExecutor.java:38)
      18:20:58     at org.apache.tools.ant.Project.executeTargets (Project.java:1189)
      18:20:58     at org.apache.tools.ant.taskdefs.Ant.execute (Ant.java:416)
      18:20:58     at org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:288)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.apache.tools.ant.dispatch.DispatchUtils.execute (DispatchUtils.java:106)
      18:20:58     at org.apache.tools.ant.Task.perform (Task.java:348)
      18:20:58     at org.apache.tools.ant.Target.execute (Target.java:357)
      18:20:58     at org.apache.tools.ant.Target.performTasks (Target.java:385)
      18:20:58     at org.apache.tools.ant.Project.executeSortedTargets (Project.java:1337)
      18:20:58     at org.apache.tools.ant.Project.executeTarget (Project.java:1306)
      18:20:58     at org.apache.maven.plugin.antrun.AntRunMojo.execute (AntRunMojo.java:313)
      18:20:58     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      18:20:58     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      18:20:58     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
      18:20:58     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
      18:20:58     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
      18:20:58     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
      18:20:58     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
      18:20:58     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
      18:20:58     at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      18:20:58     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      18:20:58     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      18:20:58     at java.lang.reflect.Method.invoke (Method.java:498)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      18:20:58     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      18:20:58 [ERROR] 
      18:20:58 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      18:20:58 [ERROR] 
      18:20:58 [ERROR] For more information about the errors and possible solutions, please read the following articles:
      18:20:58 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      18:20:58 [ERROR] 
      18:20:58 [ERROR] After correcting the problems, you can resume the build with the command
      18:20:58 [ERROR]   mvn <goals> -rf :installer
      

              jkopriva@redhat.com Josef Kopriva
              jkopriva@redhat.com Josef Kopriva
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: