OpenJDK

Why is JavaFX is not included in OpenJDK 8 on Ubuntu Wily (15.10)?

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've downloaded OpenJDK 8 today via sudo apt-get install openjdk-8-jdk and it seems like JavaFX is not included in it. > java -version openjdk version "1.8.0_66-internal" OpenJDK Runtime Environment (build 1.8.0_66-internal-b17) OpenJDK Server VM (build 25.66-b17, mixed mode) I've installed E(fx)clipse in latest Eclipse (Eclipse Mars) too, but I'm still getting message javafx couldn't be resolved . 回答1: According to the packages list in Ubuntu Wily Xenial there is a package named openjfx . This should be a candidate for what you're looking

How to patch OpenJDK 9 with Jigsaw integrated?

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Before Jigsaw it was quite easy to replace one or several classes in OpenJDK (to perform some test or make a contribution). I could copy an original file from OpenJDK source, for example, java/util/ArrayList.java into src/java/util/ , add any changes I want, then compile it normally (outputting to mypatch directory): $ javac.exe src\java\util\ArrayList.java -d mypatch After that I could launch JVM with -Xbootclasspath/p to replace original ArrayList with the patched one: $ java -Xbootclasspath/p:mypatch MyTestClass However this does not work

What is the correct target for the JAVA_HOME envrionment variable for a Linux OpenJDK Debian-based distribution?

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In Windows, JAVA_HOME must point to the JDK installation folder (so that JAVA_HOME/bin contains all executables and JAVA_HOME/libs contains all default jar libraries). If I download Sun's JDK bundle and installs it in Linux, it is the same procedure. However, I need to use Kubuntu's default OpenJDK package. The problem is that all executables are placed in /usr/bin . But the jars are placed in /usr/share/java . Since they are not under the same JAVA_HOME folder I'm having trouble with Grails and maybe there will be trouble with other

Ubuntu: OpenJDK 8 - Unable to locate package

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I just installed Ubuntu, and this is my first time working in a Linux environment, so bear with my noobishness here. Anyway, I downloaded the Java 8 JDK directly from Oracle, but I understand there's also an OpenJDK for Java 8 as well. I have two questions. What is the difference between the Oracle version and OpenJDK. Pros/Cons? When I try and get OpenJDK 8, I can't. I'm pasting the terminal command and the error message I get here, hoping for advice. Again, very new to Linux, been on my first Linux distro ever for less than an hour here

JavaFX packaging: NoClassDefFoundError

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I package a JavaFX application using maven and OpenJDK 1.8 The relevant part from my pom.xml: <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> <mainClass>ui.Main</mainClass> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> Now importantly this used to work . I know

Maven error :Perhaps you are running on a JRE rather than a JDK?

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've never worked with Maven before and I am following the instructions here. When I run the command mvn integration-test -Pamp-to-war It initially downloaded a whole bunch of dependencies, and in the end it showed, COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? [INFO] 1 error I am on ubuntu 13.04. If there's anything you want me to tell you, let me know. Thanks. EDIT When I do echo $JAVA_HOME I

Unable to install rJava in R 3.0 in Ubuntu 13.04

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am not able to call rJava package in R 3.0 . I got the following message Error: package ‘rJava’ was built before R 3.0.0: please re-install it I am getting error when I tried to re-install rJava package. I have provided the output of R CMD javareconf Java interpreter : /usr/bin/java Java version : 1.7.0_21 Java home path : /usr/lib/jvm/java-7-openjdk-i386/jre Java compiler : /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javac Java headers gen.: /usr/lib/jvm/java-7-openjdk-i386/jre/../bin/javah Java archive tool: /usr/lib/jvm/java-7-openjdk

JavaFX and OpenJDK

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to decide whether I could switch to JavaFX for the user interface of my Java application. Most of my users would be using the Oracle JRE, which has JavaFX integrated these days. However, some are using OpenJDK (on linux). This (old) question suggests that OpenJDK deals very badly with JavaFX. According to this question, the alternative OpenJFX will only be fully integrated into OpenJDK in version 9. So my question is twofold: Is the JavaFX support in OpenJDK still so bad? If so, are there any Linux distributions that already offer

centos卸载openjdk,安装sun的jdk

拈花ヽ惹草 提交于 2019-12-03 00:31:12
先找出来 root@ demo soft]# rpm -qa | grep jdk java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64 [root@ demo soft ]# rpm -qa | grep gcj [root@ demo soft ] 然后卸载。 [root@ demo soft ] rpm -e --nodeps java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86_64 [root@ demo soft ] rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.66.1.13.0.el6.x86_64 然后安装。 安装简单,把bin执行后把jdk放在想放的地方。 配profile. 来源: oschina 链接: https://my.oschina.net/u/83064/blog/346664

ubuntu16下编译openjdk8

匿名 (未验证) 提交于 2019-12-03 00:29:01
一、下载源码: https: //pan .baidu .com /s/ 1 MPjDhvoV8NMxzNx8Qz0wVw 二、安装openjdk7(boot jdk) sudo add -apt -repository ppa:openjdk -r /ppa sudo apt -get update sudo apt -get install openjdk - 7 -jdk 三、安装部分依赖包 sudo apt -get install libx11 -dev libxext -dev libxrender -dev libxtst -dev libxt -dev sudo apt -get install libcups2 -dev sudo apt -get install libfreetype6 -dev sudo apt -get install libasound2 -dev sudo apt -get ccache 四、进入openjdk 主目录 sh configure -- with -debug -level = slowdebug -- enable -debug -symbols ZIP_DEBUGINFO_FILES = 0 export LANG = C unset CLASSPATH unset JAVA_HOME 五、 sudo make all