OpenJDK

jps not working

霸气de小男生 提交于 2019-12-06 17:48:20
问题 I have installed java-1.6.0-openjdk-devel. $java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.3) (rhel-1.48.1.11.3.el6_2-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) when typing jps into command prompt $jps -bash: jps: command not found I do not believe it is an openjdk error because I have used it around 6 months back on the same system and it worked fine. Also, it works fine on my laptop. 回答1: You just have to put $JAVA_HOME/bin in your $PATH

openjdk: how to add site to exception list

被刻印的时光 ゝ 提交于 2019-12-06 17:06:02
问题 I would like to run an applet on my server and currently it is being blocked by Java security. On my development machine I was able to open control panel and to add a site to the exception list but now on my production server I don't have connected display. Is there any conf file I could use? I don't mind moving to different JAVA vendor. Thanks 回答1: You can add your sites at this file; ${user.home}/.java/deployment/security/exception.sites Every url should be in separate line. To log/trace

Java audio Clip cannot be closed when using Linux PulseAudio

送分小仙女□ 提交于 2019-12-06 08:22:36
问题 I'm trying to play a sound in a Java application but the application never actually terminates because the PulseAudio Eventloop thread is left running even after trying to close the Clip instance used for playing the sound: import java.io.File; import java.io.IOException; import javax.sound.sampled.AudioFormat; import javax.sound.sampled.AudioInputStream; import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Clip; import javax.sound.sampled.DataLine; import javax.sound.sampled

windows下编译openjdk(openj9)过程

前提是你 提交于 2019-12-06 08:22:24
请严格按照如下顺序和参数,有些很隐蔽的坑,没必要浪费时间自己去试 1.首先安装cygwin最新64位版本,运行时设置网易镜像,设置说明如下 http://mirrors.163.com/.help/cygwin.html 链接镜像后后安装包如下(在category模式下搜索并安装,以空格区别每一个包): binutils make m4 cpio awk file zip unzip procps-ng diffutils curl wget 同时必须安装Devel目录中所有包,时间会有点长 2.llvm 安装 64位 切记安装到 d:\LLVM 路径需要无空格 下载地址 http://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe cygwin 的.bashrc末尾增加如下 export PATH="/cygdrive/d/LLVM/bin:$PATH" 3.nasm 安装 切记安装到D:\NASM 路径需要无空格 下载地址 https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/ cygwin 的.bashrc末尾增加如下 export PATH="/cygdrive/d/NASM:$PATH" 3.Windows JDK 10 下载地址 https://cn.azul.com

How do I disallow particular SSL protocols in Jetty?

瘦欲@ 提交于 2019-12-06 08:15:24
问题 I have a web application running on Jetty 6 + Open JDK 7 on Debian 6.0.7. I have a security requirement to accept a TLS handshake but not an SSLv3.0 handshake when a client initiates an HTTPS connection. In my jetty.xml I set the protocol to TLS: <New class="org.mortbay.jetty.security.SslSocketConnector"> <Set name="protocol">TLS</Set> ... With this configuration, the web server still appears to accept an SSLv3.0 handshake. This has been verified with the 'sslscan' tool and running 'curl

Java: Fonts look garbled on Linux, but fine on windows

妖精的绣舞 提交于 2019-12-06 05:46:28
问题 I'm writing a java application that renders PDF documents to images, and when I run it on windows it works fine. But when I render the PDF on Linux, the standard fonts look a bit garbled, like there would be a few pixels missing on the right side of some characters. I only tested it on a fresh install of Ubuntu 9.04 with OpenJDK 6, but I'm quite sure I have seen similar issues before on Linux. I also tried to open the PDF with other Java PDF applications, like the SwingLabs PDFRenderer and

Eclipse: LD_LIBRARY_PATH, OpenJDK and libjpeg

南笙酒味 提交于 2019-12-06 04:22:13
On my development machine (Linux) I have not set LD_LIBRARY_PATH at all, as the libraries I'm using are either in default directories or I've added them to ld.conf . But when I'm using Eclipse, my LD_LIBRARY_PATH is set to: "/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client: /usr/lib/jvm/java-6-openjdk/jre/lib/i386: /usr/lib/xulrunner-1.9.2.17: /usr/lib/xulrunner-1.9.2.17" (added line breaks for readability). I don't mind xulrunner ones, but the OpenJDK causes my apps to load /usr/lib/jvm/java-6-openjdk/jre/lib/i386/libjpeg.so instead of /usr/lib/libjpeg.so Which lead to subsequent fail, as the

Java reflection to set static final field fails after previous reflection

不羁的心 提交于 2019-12-06 02:55:38
In Java, it turns out that field accessors get cached, and using accessors has side-effects. For example: class A { private static final int FOO = 5; } Field f = A.class.getDeclaredField("FOO"); f.setAccessible(true); f.getInt(null); // succeeds Field mf = Field.class.getDeclaredField("modifiers" ); mf.setAccessible(true); f = A.class.getDeclaredField("FOO"); f.setAccessible(true); mf.setInt(f, f.getModifiers() & ~Modifier.FINAL); f.setInt(null, 6); // fails whereas class A { private static final int FOO = 5; } Field mf = Field.class.getDeclaredField("modifiers" ); mf.setAccessible(true); f =

unbuntu16.04安装geoserver运行环境

ぐ巨炮叔叔 提交于 2019-12-06 02:34:39
1.下载并上传 在windows下载 geoserver 2.15.1 Platform Independent Binary版本, 是zip文件,然后使用xfile将zip上传到/usr/geoserver文件夹下 2.使用unzip解压geoserver压缩包 apt-get install unzip unzip /usr/geoserver/geoserver-2.15.1.bin.zip 3.下载openjdk apt-get update apt-get install openjdk-8-jdk java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) 4.后台运行geoserver即可 运行bin下的startup.sh即可,这里使用nohub命令后台运行 nohup /usr/geoserver/geoserver-2.15.1/bin/startup.sh & 然后通过domain.com:8080/geoserver/web访问,默认账号密码 admin geoserver

Java入门——在Linux环境下安装JDK并配置环境变量

为君一笑 提交于 2019-12-06 01:08:50
Java入门——在Linux环境下安装JDK并配置环境变量 摘要:本文主要说明在Linux环境下JDK的安装,以及安装完成之后环境变量的配置。 安装 使用已下载的压缩包进行安装 在Java的官网上下载需要的版本: https://www.oracle.com/technetwork/java/javase/downloads/index.html 因为是在Linux环境上安装,所以要下载 .tar.gz 后缀的文件,才能在Linux系统里进行解压缩。 注意下载的压缩包要和Linux系统的位数相匹配,可以通过 cat /proc/version 命令查看系统的版本。 使用工具将下载好的文件上传到装有Linux系统的电脑上。 将压缩包的内容解压缩到 /opt 目录: 1 [root@localhost opt]# tar -zxvf jdk-8u91-linux-x64.tar.gz 等待解压缩完成,至此,Java在Linux上就安装完成了。 使用yum命令进行安装 使用 yum search jdk 命令查看可用安装包: 1 [root@localhost opt]# yum search jdk 2 已加载插件:fastestmirror 3 Loading mirror speeds from cached hostfile 4 * base: mirrors.tuna