jre

Eclipse - Mac Os Default JRE missing

匿名 (未验证) 提交于 2019-12-03 02:14:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The list of installed JRE's is empty, when I click "add" the only options I'm given are - Execution Environment Description, Standard 1.1.x VM, Standard VM. There's no option for a MacOS Default JRE and choosing standard VM results in the usual "Standard VM not supported on MacOS". Eclipse Galileo, Mac OS X 10.5.8. Any suggestions much appreciated 回答1: I just had the same problem and I was able to fix it. I had installed Eclipse for PHP (PDT) because I couldn't get PDT to work with Eclipse classic. I then found out that with the new install,

Resolving javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error?

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Edit :- Tried to format the question and accepted answer in more presentable way at mine Blog Here is the original issue:- I am getting this error detailed message sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target cause javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid

Change JRE in NetBeans project

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have a NetBeans project which is using the JRE 1.4 environment which means I can't use generics. How can I change the project to use 1.6 (?) so I can use generics. 回答1: In the Project tab, Right Click on the Project and select Properties .In the Library category select Java Platform JDK 1.6 . Then, in the Source category select Source/Binary Format JDK6 . This assumes that you installed JDK 1.6 and NetBeans knows about this. JDK 1.6 must be known to NetBeans as a Java Platform. From the menu select Tools->Java Platform Manager.

Eclipse will not open due to environment variables [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: Eclipse - no Java (JRE) / (JDK) … no virtual machine 33 answers I just rebooted my computer without changing anything. Suddenly I can't open eclipse. Instead, I get this error message: TinyPic image of JRE error dialog http://i46.tinypic.com/34rd4as.gif And I see all my environment variables have been erased. Java , javac , mvn obviously don't work. What do I do now, how do I fix this ? For those unfortunate souls who can't get to tinypic.com from work :-) ┌―――――――――――――――――――――――――――――――――――――――――――

How to bundle a JRE with Launch4j?

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have Launch4J on my computer and it's a great program. One of its features I'm interested in is the ability to bundle a JRE in the general .EXE file. However, I can't find any documentation that describes how to go about doing this. How do I bundle a JRE with the EXE? Plus, where do I get a compact, portable JRE to run? The download links on Oracle are for the installer packages. 回答1: After some attempts i finally get a workaround to bundle the jre in my application: I package my app as a zip file with the following folders inside:

Unable to locate tools.jar

匿名 (未验证) 提交于 2019-12-03 02:01:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am building a project in Java. I have this error: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar I have installed a JDK and the folder: C:\Program Files\Java\jre6\lib is in my system but the file tools.jar is not there. 回答1: Yes, you've downloaded and installed the Java Runtime Environment (JRE) instead of the Java Development Kit (JDK). The latter has the tools.jar, java.exe, javac.exe, etc. 回答2: In case this is still an issue for anyone, I have a bit of clarification on the previous answers. I

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

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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

JavaFX on Linux is showing a “Graphics Device initialization failed for : es2, sw”

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've just started coding/testing JavaFX stuff on Linux and I'm facing an error at time to start a simple app. I found many people concerning about that in Foruns but I could find a clear explanation about the reasons why it happens. I'd like to understand what is missing in my scenario to get it working. Any suggestion will be really apreciated. Env info: java version "1.8.0-ea" Java(TM) SE Runtime Environment (build 1.8.0-ea-b123) Java HotSpot(TM) Client VM (build 25.0-b65, mixed mode) Linux MYServer 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15

Execution failed for task app:transformClassesWithDesugarForDebug error on Android Studio 3.0 Beta 2

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have migrated my project from Android Studio 2.3.3 to Android Studio 3.0 Beta 2 and now my project won't run. I get the following message in the console: Error:Execution failed for task ':app:transformClassesWithDesugarForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/pq/.gradle/caches/transforms-1/files-1.1

Reducing size of JRE

匿名 (未验证) 提交于 2019-12-03 01:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We bundle the Java 6 JRE with our application installer so that it can be run on any machine, but this makes the application a little bit heavier. So we are planning to reduce the size of the JRE. If anyone has done this sort of task, can you please provide guidance to move forward with this? 回答1: Look at the README file in the JRE directory. The 'Optional Files and Directories' section lists a number of files that can be removed from the Oracle/Sun JRE if you are packaging it with your application. I use an Ant buildfile to copy the JRE