sun

Are invisible references still an issue in recent JVMs?

流过昼夜 提交于 2019-12-03 08:27:38
问题 I was reading Java Platform Performance (sadly the link seems to have disappeared from the internet since I originally posed this question) and section A.3.3 worried me. I had been working on the assumption that a variable that dropped out of scope would no longer be considered a GC root, but this paper appears to contradict that. Do recent JVMs, in particular Sun's 1.6.0_07 version, still have this limitation? If so, then I have a lot of code to analyse... I ask the question because the

Are invisible references still an issue in recent JVMs?

白昼怎懂夜的黑 提交于 2019-12-02 22:12:30
I was reading Java Platform Performance (sadly the link seems to have disappeared from the internet since I originally posed this question) and section A.3.3 worried me. I had been working on the assumption that a variable that dropped out of scope would no longer be considered a GC root, but this paper appears to contradict that. Do recent JVMs, in particular Sun's 1.6.0_07 version, still have this limitation? If so, then I have a lot of code to analyse... I ask the question because the paper is from 1999 - sometimes things change, particularly in the world of GC. As the paper is no longer

unable to import org.sun.management.OperatingSystemMXBean in java class?

巧了我就是萌 提交于 2019-12-01 05:24:57
问题 I see the org.sun.management in JRE System library but I am unable to import in my eclipse. Any reasons why it is allowed. even maven compilation fails here are the screenshots. I am using Java 8. I am trying to do this: if (operatingSystemBean instanceof com.sun.mananagement.OperatingSystemMXBean) { }) 回答1: Eclipse is preventing you from accessing Sun's proprietary implementation details as that won't be portable across other JVMs. You can change the project settings so that Eclipse will

com.sun.awt package usage

眉间皱痕 提交于 2019-11-30 20:24:19
I found a java code and want to use it in my project. It contains these imports that my JDK does not have : import com.sun.awt.AWTUtilities; import com.sun.jna.Native; import com.sun.jna.platform.WindowUtils; I referred to sun site and found this download page : http://www.oracle.com/technetwork/java/javase/downloads/index.html Is it necessary to download all JDK and JRE and replace it from SUN website? My JDK is version 6 and is up to date. Thank you all josefx JNA is an additional library and not part of the standard api, you have to download it ( here ) and include it in your classpath. The

Where can I find old versions of the JDK and JRE? [closed]

梦想与她 提交于 2019-11-30 10:47:01
问题 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 . To test compatibility, I need to find old versions of the JRE and JDK. Where can I find download links to these files? 回答1: Here you can find all sorts of old download links. JDK, JRE, and even different libraries! http://www.oracle.com/technetwork/java/archive-139210.html 回答2: Historical Java releases are

javac: 错误:找不到或无法加载主类 com.sun.tools.javac.Main

余生长醉 提交于 2019-11-30 06:12:07
安装java jdk 有个基本常识 就是安装后要配置 java_home ,path和classpath, 而且安装路径不能有 空格。方法网上多的是,这里变不加赘述。 我在安装的时候出现了一个很难发现的问题(— -)——如题所述。在网上找了 很久,重新设置了很多次路径,电脑也重启了,就是没用。 原因:jdk和jre安装在同一个文件夹,jre覆盖了jdk的jre文件夹(总共两个哦)。 导致jre文件夹消失了一个!!所以安装java的时候要注意选择路径。或者干脆 使用默认路径。 然后path就都不用设置了,因为已经设置过了,除非你么设置或者换了文件夹安装了。 来源: oschina 链接: https://my.oschina.net/u/264056/blog/79374

com.sun.awt package usage

£可爱£侵袭症+ 提交于 2019-11-30 05:32:37
问题 I found a java code and want to use it in my project. It contains these imports that my JDK does not have : import com.sun.awt.AWTUtilities; import com.sun.jna.Native; import com.sun.jna.platform.WindowUtils; I referred to sun site and found this download page : http://www.oracle.com/technetwork/java/javase/downloads/index.html Is it necessary to download all JDK and JRE and replace it from SUN website? My JDK is version 6 and is up to date. Thank you all 回答1: JNA is an additional library and

Is it safe to distribute tools.jar along with a Java application bundle?

你离开我真会死。 提交于 2019-11-29 15:48:53
Although tools.jar is not a component in JRE, but it comes with all major implementations of JDK such as Oracle JDK and OpenJDK. Not being standard component of JRE means that when I distribute a Java application which uses tools.jar , I have to distribute it along with the application bundle OR include it in classpath. My questions are: Does tools.jar contain platform-dependent components that prevent it from being distributed across different platforms (Windows/Linux/OSX)? We already know that Oracle JDK does not allow distribution of tools.jar , but what about OpenJDK, can we distribute

Are there reliable alternatives to Sun's JVM for desktop & enterprise development?

喜你入骨 提交于 2019-11-29 13:53:22
With the recent announcements from Oracle side, we have started to work on a plan for phasing out migration from the Sun JVM to the whatever reliable and free alternative we will end up with. Open JDK will obviously become a major option, now that IBM has announced its focus on it, but it will take some time for that to be an alternative to Sun's existing JVMs, in terms of stability and reliability. Are there any JVM options out there, which are powering real life mission critical applications? IBM's JVM can't be used on other than IBM hardware as far as I know. If you know of any alternatives

Why does the Sun JVM continue to consume ever more RSS memory even when the heap, etc sizes are stable?

大城市里の小女人 提交于 2019-11-28 15:40:17
Over the past year I've made huge improvements in my application's Java heap usage--a solid 66% reduction. In pursuit of that, I've been monitoring various metrics, such as Java heap size, cpu, Java non-heap, etc. via SNMP. Recently, I've been monitoring how much real memory (RSS, resident set) by the JVM and am somewhat surprised. The real memory consumed by the JVM seems totally independent of my applications heap size, non-heap, eden space, thread count, etc. Heap Size as measured by Java SNMP Java Heap Used Graph http://lanai.dietpizza.ch/images/jvm-heap-used.png Real Memory in KB. (E.g.: