我正在尝试在Azure Devops中建立管道。在SonarQube发布步骤a中,收到以下错误:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.String.<init>(String.java:166)
at org.apache.commons.codec.binary.Hex.encodeHexString(Hex.java:161)
at org.sonar.core.hash.SourceLin
我安装了java 12,我在power shell中输入java version检查是否安装了。它给了我:
PS C:\Users\17692> java -version
java : The term 'java' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct a
我已经在eclipse中使用以下选项签出了一个maven项目:
Import > Maven > Check out Maven Projects from SCM
当我尝试使用以下命令构建项目时:
Project > Clean
我得到以下错误:
Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
堆栈跟踪:
java.lang.IllegalArgumentException: Path must include project and resou
我正在使用Apache作为电子邮件服务器,用于Mac塞拉利昂-v10.12.3上的开发。
当我尝试以超级用户的身份启动/运行它时
sudo ./run.sh
我得到以下错误:
ERROR: JAVA_HOME not found in your environment.
Please, set the JAVA_HOME variable in your environment to match the
location of the Java Virtual Machine you want to use.
当我尝试在没有sudo的情况下运行它时,我会得到以下内容:
Using PHOEN
我试图查看包含两个自定义视图的xml布局的预览(没有什么复杂的.主要是包装纸)。我得到了以下错误:
The following classes could not be instantiated:
- com.app.view.widget.SlidingSwipeRefreshLayout (Open Class, Show Exception, Clear Cache)
- com.app.view.widget.BetterViewAnimator (Open Class, Show Exception, Clear Cache)
java.lang.ClassFormatError:
当尝试在CircleCI上运行以下代码时
fun getJsonFromCloudStorage(): ByteArrayInputStream {
val blobId = BlobId.of("my-company", "creds/my-company-creds.json")
val storage = StorageOptions.getDefaultInstance().service
val get = storage.get(blobId)
return get.getContent().inputStream()
我家里刚买了一台新电脑。我整晚都在尝试在我的Windows7 64位机器上安装JDK 8u11。我知道我下载了正确的64位版本。我知道我的计算机上已经有了JRE,因为java -version在cmd中返回java version "1.8.0_11"。我可以在Add/Remove Programs列表中看到JRE和JDK。但是,我的集成开发环境没有识别到JDK已经安装,当我在cmd中输入javac时,我得到'javac' is not recognized as an internal or external command, operable program
我在Windows上安装了最新版本的Weka
我试着从命令行运行weka的一个特性:
java weka.core.converters.TextDirectoryLoader -dir text_example > text_example.arff
这是对此的引用:
但是weka会返回这个错误:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
Exception in thread "main" java.lan
我正在尝试修改一些旧的构建脚本,以与Tomcat6的RPM安装一起运行,并且我遇到了以下情况:
java.lang.IllegalArgumentException: Document base /var/lib/tomcat6/webapps/host-manager does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.
我刚刚开始学习基本的java,因为我显然需要它能够为“我的世界”编写bukkit插件,我被困在了下面的问题上。
我已经在文件夹c/test中做了HelloWorldApp.java,但是它不会想要它应该做的事情。任何帮助都是好的,请尽量减少任何编码等。
我就是这样调用它的:
C:\Users\Matthew\Desktop>cd C:\test
C:\test>javac HelloWorldApp.java
'javac' is not recognized as an internal or external command,
operable program
系统: MAC El Capitan 10.11.6 / MATLAB 2016b学生版
我现在正尝试使用MATLAB按照这里的指令()将MATLAB代码转换为JAVA包。
第一步:安装JDK的适当版本。我下载了Java1.7.0_79-B15,并将/Applications/MATLAB_R2016b.app/sys/java/jre/maci64中的jre文件夹替换为来自/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home.的jre文件夹这一步是为了确保我下载的是MATLAB使用的JAVA版本。我还在MATLAB中通
我有一个春季启动代码的git,其中两个属性在application.properties中加密,当我在shell/CMD文件中使用解密密钥时,如下所示
@ECHO OFF
SET ENCRYPT_KEY=******
java -jar ./target/*****AppName-1.0.jar
Jar运行得非常好,没有任何问题,但是当我在eclipse中使用环境变量中的相同键并尝试在eclipse中运行应用程序时--它会给出这个错误
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorSt
在IntelliJ中运行我的robolectric测试时,我得到:
Warning: an error occurred while binding shadow class: ShadowGeoPoint
Warning: an error occurred while binding shadow class: ShadowItemizedOverlay
Warning: an error occurred while binding shadow class: ShadowMapController
Warning: an error occurred while binding sha
我在初始化h2o时遇到此错误
h2o.init() H2O尚未运行,正在启动...
Error in .h2o.startJar(ip = ip, port = port, name = name, nthreads = nthreads, :
Your java is not supported: java version "1.7.0_80"
Please download the latest Java SE JDK from the following URL:
https://www.oracle.com/technetwork/java/javase/dow
问题是,我安装了一个较新的JDK,我需要更改到那个JDK的路径,而不是73版本,但是我在IDE中找不到任何地方来这样做。
Error:
Severity Code Description Project File Line Suppression State
Error JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.8.0_73 MinecraftMod2 EXEC 0
如果"java -jar“是从命令行运行的,有没有办法从java程序中设置本地dos变量,这样在退出java之后,它仍然可以出现在同一个会话中?
示例
(cmd)
c:\java package.Class
/*then in program you do something like
'System.setVariable("name","value");'
*/
// java exited
echo %name%
value