我使用的是亚马逊ec2 Linux服务器。我在Jenkins管道输出中得到以下错误。
No compiler is provided in this environment Perhaps you are running on a JRE rather than a JDK
我尝试在服务器上运行该命令,它工作正常。我已经在全局工具配置中将JDK和MVN安装更新到我的linux路径,但是我仍然收到这个错误。
当我将ssh放入我的EC2实例并运行以下命令时,我的SpringServer.jar文件将执行,我可以通过访问myawsaccount:8080/times来访问Spring应用程序。当我在用户数据中指定以下命令时,我无法在myawsaccount:8080/times访问我的应用程序,我也不知道为什么。任何帮助都将不胜感激。
命令
#!/bin/bash --> only in user script
sudo su
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=acc
我有一个jenkins作业,它调用gradle脚本。在这项工作中,我首先有一个shell脚本:
此脚本应调整文件local.properties。如您所见,我还为Java添加了两个系统变量的导出。
在这个shell脚本之后,我像这样运行gradle
但在运行此作业时,我收到错误消息
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileProdReleaseJavaWithJavac'.
> Could no
我需要从源代码交叉编译这个OpenJava叉 -对于aarch64-linux-gnu devkit目标:为此我安装了java10.0.2作为主机JDK,然后运行“./”。
└─$ ./configure
...
configure: Potential Boot JDK found at /home/katya/java is incorrect JDK version (Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true); ignoring
configure: (Your B
编译代码时,在Jenkins中得到以下错误:
Error: JAVA_HOME is set to an invalid directory.
JAVA_HOME = "C:\Users\admin\.jenkins\tools\hudson.model.JDK"
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
在环境变量中,我将JAVA_HOME设置为:
C:\Program Files\Java\jdk1.8.
我有一个关于Jenkins中的Java构建的问题。
我解决的错误如下所示:
Unable to locate the Javac Compiler in: C:\Jenkins\jre\..\lib\tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting
我正在和jenkins一起构建一个多模块的maven项目,
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Failure executing javac, but could not parse the error
Fatal Error: Unable to find package java.lang in classpath or bootclasspath.
Java版本
java version "1.7.0_7
我刚刚拿起最新版本的Android SDK并开始尝试使用它。与几乎所有遇到这个问题的人不同,我运行的是Linux,即Linux Mint13。
sudo apt-get install ant
并在项目文件夹中运行:
ant debug
然而,它完全无法编译,最终产生了一个与设置JAVA_HOME有关的错误。我相应地修改了我的~/.bashrc文件并重新启动,但我仍然得到错误:
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-7-openjdk-amd64/jr