草庐IT

install-configuration

全部标签

windows-7 - 在 Windows 7 (x64) 上安装 JAI 1.1.3 时出现 "JRE 1.3 or higher must be installed!"/"JDK 1.3 or higher must be installed!"错误

我收到这些错误...严重:必须安装JRE1.3或更高版本!严重:必须安装JDK1.3或更高版本!...在Windows7(x64)上安装JAI(Java高级成像)1.1.3时,JRE7(1.7)安装在“C:\ProgramFiles\Java\jre7”和JDK7(1.7)在“C:\ProgramFiles\Java\jdk1.7.0”。正在关注http://download.java.net/media/jai/builds/release/1_1_3/INSTALL.html#Windows,具体来说,这是我所做的:访问过:http://download.java.net/medi

java - 在 Spring Context @Configuration 中运行一个无效的设置方法

我希望在我的Spring上下文中执行几个设置方法。我目前有以下代码,但它不起作用,因为我说它们是beans并且没有返回类型。@Configuration@ComponentpublicclassMyServerContext{...//Works@BeanpublicUserDatauserData(){UserDatauserData=newAWSUserDataFetcher(urlUtil()).fetchUserData();returnuserData;}//Doesn'twork@BeanpublicvoidsetupKeyTrustStores(){//SetupTrus

java - 使用 Spring @Configuration 注释注入(inject) bean 列表

我有一个Springbean,在SpringBean中我依赖于其他bean的列表。我的问题是:我怎样才能注入(inject)一个通用的bean列表作为该bean的依赖项?例如一些代码:publicinterfaceColor{}publicclassRedimplementsColor{}publicclassBlueimplementsColor{}我的bean:publicclassPainter{privateListcolors;@ResourcepublicvoidsetColors(Listcolors){this.colors=colors;}}@Configuratio

java - 什么是 spring-boot-configuration-processor ?为什么人们将图书馆排除在外?为什么它在依赖树中不可见?

简介所以我注意到jhipster项目的gradle文件中有如下一行:annotationProcessor("org.springframework.boot:spring-boot-configuration-processor"){excludegroup:'com.vaadin.external.google',module:'android-json'}https://github.com/jhipster/jhipster-sample-app-gradle/blob/9e9c3db8f3bedba4b1efd85ecb6ff3f12a5f596a/build.gradle#

java - Spring,使用@Configuration 和@Bean 注解

我有一个代码:@ConfigurationpublicclassBeanSample{@Bean(destroyMethod="stop")publicSomeBeansomeBean()throwsException{returnnewSomeBean("somebeanname1");}classSomeBean{Stringname;publicSomeBean(Stringname){this.name=name;}publicvoidstop(){System.out.println("stop");}}publicstaticvoidmain(String[]args)th

npm install一直卡在 sill idealTree buildDeps

当npminstall命令在安装过程中卡在sillidealTreebuildDeps阶段时,可能的原因包括网络延迟、镜像源问题或缓存问题。以下是一些可能的解决方法:检查镜像源:打开命令提示符(cmd)窗口。输入命令npmconfiggetregistry以查看当前的npm镜像地址。如果当前地址是https://registry.npmjs.org/,这通常在国外,可能会导致安装缓慢或卡顿。输入命令npmconfigsetregistryhttps://registry.npm.taobao.org来更换为国内的镜像源。再次输入npmconfiggetregistry命令,以确认是否已成功

java - 如何修复 "Run Configuration Error: [No Rails found in SDK]"?

我正在查看一个Rails项目,我希望能够在Ubuntu15.10下使用IntelliJ15.0.3(完整版)进行处理。项目使用“bundleinstall”构建。Rails使用“railss”从命令行运行。IntelliJ(和RubyMine8.0.3)不想启动Rails,而是提示“[在SDK中找不到Rails]”。我在Ubuntu中尝试过默认的ruby​​。我尝试编译Ruby2.3.0并将其安装在我自己的主文件夹中。ruby二进制文件旁边有一个rails二进制文件。gem已安装。我不能在这个项目中使用jruby,因为需要带有原生扩展的gem。我怀疑我可能遇到了Ruby插件中的错误。有

installation - 剥离 JRE 以与应用程序捆绑在一起——我可以省略什么?

我一直在通过简单地将文件从$JAVA_HOME/jre复制到我的应用程序分发版来将JRE与我的应用程序捆绑在一起。这可能违背了Java的精神,但它通过确保我的应用程序在其测试过的JRE版本上运行(包括位数;我使用一些JNI要求JRE是32位版本)来减少潜在问题).它工作正常,但整个发行版有点大,所以可能会遗漏一些不必要的文件?实际上,$JAVA_HOME/jre/README.txt包含以下建议:ThefilesthatmakeuptheJavaSERuntimeEnvironmentaredividedintotwocategories:requiredandoptional.Opt

解决jenkins连接节点报错java.io.IOException: Java not found on xxx. Install Java 8 or Java 11 on the Agent.

目录详细信息解决办法详细信息[SSH]Checkingjavaversionof/usr/local/java/bin/javaCouldn'tfigureouttheJavaversionof/usr/local/java/bin/javabash:line1:/usr/local/java/bin/java:Nosuchfileordirectoryjava.io.IOException:Javanotfoundonhudson.slaves.SlaveComputer@17f9d599.InstallJava8orJava11ontheAgent.athudson.plugins.ssh

java - 避免 Eclipse 中多个 Java 版本的 "no JREs installed in the workspace that are strictly compatible"警告

我知道已经有很多关于此警告的问题,但我的问题有点不同。我知道我可以在我的pom.xml中使用此配置修复它org.apache.maven.pluginsmaven-compiler-plugin1.71.7这消除了警告,但前提是我在Eclipse中安装并配置了Java7。例如,如果我只有Java8,我仍然会看到警告,除非我将上面配置中的版本更改为1.8:BuildpathspecifiesexecutionenvironmentJavaSE-1.7.TherearenoJREsinstalledintheworkspacethatarestrictlycompatiblewiththi