OpenJDK

Intellij IDEA font smoothing in linux

蓝咒 提交于 2019-11-29 00:05:40
问题 I'm using IntelliJ IDEA on Arch Linux with KDE. OpenJDK version is 1.7.0_40. Whole IDE fonts (includes code editor) are rendered without any antialiasing and font smoothing. I set in idea.properties file idea.use.default.antialiasing.in.editor to true , and added in _JAVA_OPTIONS variable -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true without any effect. What else I can try to enable font smoothing? 回答1: Take a look here. I remember having the same problem when running IDEA, but after

Kali-Linux-配置开发环境

梦想与她 提交于 2019-11-28 23:23:14
本文主要讲解JDK、SDK、eclipse-adt、android studio、cpu模式TensorFlow 的安装配置。 update:2019-08-30 03:31:46 JDK 当前系统jdk为openjdk10,导致很多旧版工具无法使用。发现 /usr/lib/jvm 里面有其他版本。 用 sudo update-alternatives --config java 切换成最低的,保证兼容性。 $ sudo update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/lib/jvm/java-10-openjdk-amd64/bin/java 1101 auto mode 1 /usr/lib/jvm/java-10-openjdk-amd64/bin/java 1101 manual mode 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual

Is Sun Java really necessary for using Android SDK on Ubuntu 10.10? I prefer OpenJDK

点点圈 提交于 2019-11-28 22:49:46
I would prefer to just use openjdk-6-jdk (version 6b20-1.9.1-1ubuntu3). But I'm just starting the Android SDK installation, so if Sun (Oracle) Java is really needed, I suppose now is the time to install it. Any advice? I'm using JDK for working on Android and it's fine :) java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.1) (6b20-1.9.1-1ubuntu3) OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode) And eclipse plugin too :) I tried it and it is working. I built and ran my project without any errors. (If I encounter errors in the future, I'll know to try the Sun

bezier path widening

回眸只為那壹抹淺笑 提交于 2019-11-28 21:39:06
I have a bezier curve B with points S, C1, C2, E, and a positive number w representing width. Is there a way of quickly computing the control points of two bezier curves B1, B2 such that the stuff between B1 and B2 is the widened path represented by B? More formally: compute the control points of good Bezier approximations to B1, B2, where B1 = {(x,y) + N(x,y) (w/2) | (x,y) in C} B2 = {(x,y) - N(x,y) (w/2) | (x,y) in C}, where N(x,y) is the normal of C at (x,y). I say good approximations because B1, B2 might not be polynomial curves (I'm not sure if they are). The exact parallel of a bezier

JDK, JRE, Java: Version Confusion!

删除回忆录丶 提交于 2019-11-28 21:17:39
Although I'm not a real Java developer (yet), I feel like I should know this by now, but I'm still very confused. My question has two parts: What is the difference between the so-called (as I've seen it) "Sun JDK", OpenJDK, and GCJ ? At various times, I've seen each of the following thrown around, making it very confusing to understand which version numbers actually apply to what. Can someone please help me sort this out? Java 6 Java 1.6 JDK 6 JDK 1.6 JRE 1.6 JVM 11.0 Note: I do understand the difference between the JDK (Java Development Kit) and the Java Runtime Environment. I'm not totally

Collectors.toMap的问题

被刻印的时光 ゝ 提交于 2019-11-28 19:58:50
概述   虽然JDK9.0已经出来了,不过我们系统最近才开始全面引入JDK1.8,JDK1.8也已经出来了好久了,各方面都挺稳定的。最近在使用lambda表达式的Collectors.toMap方法时就遇到了一个问题。 大致源码如下: public class Test { public static void main(String[] args) { // initMemberList为获取数据的方法 List<Member> list = Test.initMemberList(); Map<String, String> memberMap = list.stream().collect(Collectors.toMap(Member::getId, Member::getImgPath)); System.out.println(memberMap); } } class Member { private String id; private String imgPath; // get set省略 } 运行程序,直接提示: Exception in thread "main" java.lang.NullPointerException at java.util.HashMap.merge(HashMap.java:1224) at java.util.stream

Ubuntu 上编译opencv_contrib模块

柔情痞子 提交于 2019-11-28 19:25:49
https://blog.csdn.net/ipfpm/article/details/81132144 【ubuntu】Ubuntu中Android SDK下载跟配置 android24的版本 (1) 安装ADNORID SDk环境 https://developer.android.com/studio 1.1 安装JAVA环境 https://cloud.tencent.com/developer/article/1162527 https://www.howtoing.com/how-to-install-java-with-apt-on-ubuntu-18-04 OpenJDK 8 Java 8是目前的长期支持版本,虽然公共维护在2019年1月结束,但仍然得到广泛支持。要安装OpenJDK 8,请执行以下命令: sudo apt install openjdk-8-jdk 验证这是与安装 java -version 也可以只安装JRE,你可以通过执行 sudo apt install openjdk-8-jre 。 OpenJDK 10/11 Ubuntu的存储库包含一个安装Java 10或11的软件包。在2018年9月之前,该软件包将安装OpenJDK 10.一旦Java 11发布,该软件包将安装Java 11。 要安装OpenJDK 10/11,请执行以下命令:

linux系统中安装jdk1.8

喜你入骨 提交于 2019-11-28 17:31:04
工具/原料 linux java 方法/步骤 在我们现在的系统上执行java -version命令,系统默认安装了jdk7和openjdk,但是这个不符合我们的要求,现在需要安装jdk8以上的版本。 使用rpm -qa | grep java 命令查询已经安装的jdk的包。 使用 rpm -e --nodeps 命令卸载这些默认安装的jdk版本。 使用tar -xzvf jdk-8u171-linux-x64.tar.gz命令解压缩jdk压缩包。 使用vim /etc/profile命令配置JAVA_HOME。 export JAVA_HOME=/root/jdk1.8 export PATH=$PATH:$JAVA_HOME/bin 使用 source /etc/profile 命令重新加载配置文件。 使用java -version重新查看jdk的版本。 来源: oschina 链接: https://my.oschina.net/u/3485980/blog/3016338

centos 7搭建jdk1.8环境教程

元气小坏坏 提交于 2019-11-28 17:30:40
目录 概述 环境准备 安装jdk 环境变量配置 测试安装结果 概述 最近在尝试tar.gz方式安装jdk1.8时踩了一点点坑,在此记录一下最终的搭建方案 环境准备 全新最小化安装的centos 7.5 jdk1.8 安装包 安装jdk 安装所需依赖包 安装需要root权限 yum --exclude=kernel* update -y yum -y install wget vim 删除系统自带的JDK 查看系统是否安装了jdk 查看yum方式安装的jdk yum list installed | grep java 查看rpm方式安装的jdk rpm -qa|grep java 如果输入以上命令无任何内容显示,则说明没有安装jdk,如果有java相关的内容显示,则走下一步进行卸载 卸载系统中自带jdk 卸载yum安装的 openjdk-1.7,自己根据上一步查询出来的结果替换下面命令的jdk名称 yum remove java-1.7.0-openjdk 卸载rpm安装的 openjdk-1.7,自己根据上一步查询出来的结果替换下面命令的jdk名称 rpm -e java-1.7.0-openjdk 下载jdk安装包 点击进入 oracle官网 找到jdk 1.8 下载链接,oracle网站经常变化,如果找不到可以留言,我看到后会回复最新下载地址 jdk1.8下载地址:

Linux开发环境搭建之Java开发环境JDK安装配置

大城市里の小女人 提交于 2019-11-28 17:29:43
这几天国产的Linux系统deepin15.5正式版发布了,基本上处于稳定了,受不了win10的各种卡顿和系 统封闭不能修改的诟病,果断下载了deepin系统格盘安装,在deepin上进行开发学习娱乐。本文将在系统 安装完成后配置JAVA环境(JDK),后续还会有在Linux上搭建开发环境的其他的文章,和大家一起学习交流。 一、环境准备 1.ORACLE JDK 64 jdk-8u151-linux-x64.tar.gz 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 本文使用的是jdk1.8.0_151版本 2.Linux桌面环境 Linux的桌面发行版很多,比如 Ubuntu,Arch,CentOS等,本文使用国产的发行版本deepin 二、环境安装 1.将刚下载的JDK安装包解压到自己安装的目录中:tar -zxvf jdk-8u151-linux-x64.tar.gz 2.配置环境变量:vim /etc/profile打开文件,配置自己的JDK安装目录的环境变量信息 export JAVA_HOME=/home/shuai/deve/javabox/jdk1.8.0_151 export JRE_HOME=$JAVA_HOME/jre export CLASSPATH=.: