OpenJDK

Where are fonts defined/installed for Openjdk Java on linux

拥有回忆 提交于 2019-12-24 09:24:13
问题 Installed Oracle 8 jdk on Ubuntu, within jre/lib it has various fontProperties files plus a fonts dir containing fonts. But when installed OpenJdk 8 there is no such fonts folder on font files within jre/lib. So where does it get its fonts from, does it come with any fonts on depen on the system having some fonts installed somewhere else. Update Based on advise from gerynix fc-list returns no fonts GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() gives java.lang

Migrating to OpenJDK from Oracle JDK [closed]

柔情痞子 提交于 2019-12-24 05:28:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm working on migrating my project from Oracle JDK to open JDK. As a part of the development I also want to replace all my Oracle licensed jars with equivalent open source license jars. Now there are quite a lot of it. The project is maven built and all the dependencies are in the pom file. I was wondering if

file.listFiles() on OpenJDK7 OS X broken on file names that contain a euro symbol

你离开我真会死。 提交于 2019-12-23 20:32:28
问题 It seems that the following file.listFiles() is broken on OpenJDK 7 on OS X. This code snippet will print "This file has a euro symbol...does't exist". final String pathname = System.getProperty("user.home") + "/folderThatContainsAFileWithTheEuroSymbol/"; final File folder = new File(pathname); for (File file : folder.listFiles()) { if (!file.exists()) { System.out.println("This file has a euro symbol in its name, it exists and yet file.exists says it doesn't exist"); } } It seems to be a

OpenJDK和JDK区别

喜你入骨 提交于 2019-12-23 15:56:42
使用过LINUX的人都应该知道,在大多数LINUX发行版本里,内置或者通过软件源安装JDK的话,都是安装的openjdk,那么到底什么是openjdk,它与sun jdk有什么关系和区别呢? 历史上的原因是,openjdk是jdk的开放原始码版本,以GPL协议的形式放出。在JDK7的时候,openjdk已经成为jdk7的主干开 发,sun jdk7是在openjdk7的基础上发布的,其大部分原始码都相同,只有少部分原始码被替换掉。使用JRL(JavaResearch License,Java研究授权协议)发布。 至于openjdk6则更是有其复杂的一面,首先是openjdk6是jdk7的一个分支,并且尽量去除Java SE7的新特性,使其尽量的符合Java6的标准。 关于JDK和OpenJDK的区别,可以归纳为以下几点: 授权协议的不同: openjdk采用GPL V2协议放出,而JDK则采用JRL放出。两者协议虽然都是开放源代码的,但是在使用上的不同在于GPL V2允许在商业上使用,而JRL只允许个人研究使用。 OpenJDK不包含Deployment(部署)功能: 部署的功能包括:Browser Plugin、Java Web Start、以及Java控制面板,这些功能在Openjdk中是找不到的。 OpenJDK源代码不完整: 这个很容易想到

Java process hanging on IOUtils. Suspected deadlock

流过昼夜 提交于 2019-12-23 12:55:43
问题 I have a java process that is hanging in a call to IOUtils.toString with the following code: String html = ""; try { html = IOUtils.toString(someUrl.openStream(), "utf-8"); // process hangs on this line } catch (Exception e) { return null; } It can't reproduce this reliably. It's part of a web crawler and so executes this line thousands of times successfully but ultimately causes the process to hang here after a few days. Output from jstack: 2013-09-25 09:09:36 Full thread dump OpenJDK 64-Bit

How to hide TieredCompilation warning?

末鹿安然 提交于 2019-12-23 09:25:57
问题 I'm using Linux Mint and OpenJDK. java -version shows this: java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK Client VM (build 24.79-b02, mixed mode, sharing) Whenever I run a Java-based app like lein , I get this warning: OpenJDK Client VM warning: TieredCompilation is disabled in this release. It's irrelevant to my interests, so I'd rather not see it in the command output. How can I hide or disable it? 回答1: The problem is in Leiningen.

windows10编译OpenJDK8

允我心安 提交于 2019-12-22 23:29:58
Windows10编译OpenJDK8 前言 本文基于win10(64位)编译openjdk8,碰到各种问题被卡住,最终还好编译完成,总结如下,希望对你有帮助 1. 环境准备 Windows 10 oracleJDK8 官方下载地址: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 选择windows x64下载 需要登录,可以查看这篇: https://blog.csdn.net/Virgil_K2017/article/details/90260880 Openjdk8源码 一篇我的博客有下载链接: https://blog.csdn.net/qq_23091073/article/details/83178848 官方下载链接: http://hg.openjdk.java.net 如何从官方下载: https://www.cnblogs.com/haimishasha/p/9909055.html Cygwin 官方下载链接: http://www.cygwin.com/setup-x86_64.exe 安装帮助博客: https://blog.csdn.net/u010356768/article/details/90756742 推荐一个工具apt

interpreting jstack output

杀马特。学长 韩版系。学妹 提交于 2019-12-22 10:15:51
问题 I have a java process loading a lot of data from a bunch of .csv files into a Neo4j database using the BatchInserter . I was using: OpenJDK 7 Ubuntu 12.04 Neo4j 2.0 M3 After loading the first 164 GB (according to ls -lh ) the folder size stopped increasing but the process kept running, no memory was released, and CPU was still at 100% (all according to htop ). The loading process is single threaded, only the JVM is using more than 1 thread - I guess by the ParallelGC . I'm not sure how to

Eclipse won't open in Linux Mint and Java won't open in different directories

不羁的心 提交于 2019-12-22 09:22:15
问题 I had Installed Eclipse in /opt/eclipse in Linux Mint 18.2 cinnamon with openjdk-9 (please don't tell me switch over oracle jdk). Whenever I click on Eclipse icon this window shows up: Here is the content of that window: JVM terminated. Exit code=1 /usr/bin/java -Dosgi.requiredJavaVersion=1.8 -Dosgi.instance.area.default=@user.home/eclipse-workspace -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi.requiredJavaVersion=1.8 -Xms256m -Xmx1024m --add-modules=ALL-SYSTEM -jar

Can anyone interpret this C++ code (from OpenJDK6) into plain English?

五迷三道 提交于 2019-12-22 07:51:14
问题 Here's a code snippet from OpenJDK6's hotspot/src/share/vm/prims/unsafe.cpp (starting on line 1082): // JSR166 ------------------------------------------------------------------ UNSAFE_ENTRY(jboolean, Unsafe_CompareAndSwapObject(JNIEnv *env, jobject unsafe, jobject obj, jlong offset, jobject e_h, jobject x_h)) UnsafeWrapper("Unsafe_CompareAndSwapObject"); oop x = JNIHandles::resolve(x_h); oop e = JNIHandles::resolve(e_h); oop p = JNIHandles::resolve(obj); HeapWord* addr = (HeapWord *)index