sun

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

霸气de小男生 提交于 2019-11-28 07:58:30
问题 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

Alternative to sun.misc.Signal

蹲街弑〆低调 提交于 2019-11-27 21:05:16
I started research to find an alternative to the sun.misc.Signal class, because it could be unsupported in upcoming JDKs (we're currently working on 1.6). When I build the project I get: warning: sun.misc.SignalHandler is Sun proprietary API and may be removed in a future release I came across multiple solutions but they don't fit my project e.g. in this question . This is unacceptable in my situation because: Signals are used not only for killing application The application is huge - every conceptual change of communication between modules/JVMs could take years to implement Thus, the

Accessing com.sun.tools.javac.util from Java 9

主宰稳场 提交于 2019-11-27 18:01:30
问题 I'm trying to access the List class from com.sun.tools.javac.util . This works fine with Java 8, but when switching to Java 9 I get the following error: Package 'com.sun.tools.javac.util' is declared in module "jdk.compiler", which does not export it to the unnamed module" . I tried adding requires jdk.compiler; to my module-info file, but this did not solve the issue. 回答1: In the longer run, the safe way to be dealing with such situation is to move away from using these internal APIs of the

The following artifacts could not be resolved: javax.jms:jms:jar:1.1

对着背影说爱祢 提交于 2019-11-27 17:22:26
I am trying to compile a maven project, but I systematically get the following error message: [ERROR]Failed to execute goal on project ...: Could not resolve dependencies for project ...:war:1.0.0: The following artifacts could not be resolved: javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1: Failure to find javax.jms:jms:jar:1.1 in http://mirrors.ibiblio.org/maven2/ was cached in the local repository, resolution will not be reattempted until the update interval of maven2-repository.ibiblio.mirror has elapsed or updates are forced -> [Help 1] I know about

Playing audio in java using Sun.audio

懵懂的女人 提交于 2019-11-27 15:58:22
I want just to perform a simple task. (I'm a java newbie). I want to play an audio clip when a button is clicked. here's the part of my code(which I did exactly by copying a tutorial from Youtube.) private void btnPlayActionPerformed(java.awt.event.ActionEvent evt) { InputStream in; try{ in=new FileInputStream(new File("C:\\Users\\Matt\\Documents\\dong.wav")); AudioStream timeupsound=new AudioStream(in); AudioPlayer.player.start(timeupsound); } catch(Exception e){ JOptionPane.showMessageDialog(null, e); } } But the problem is, this doesn't work. It throws and IOException saying: "could not

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

馋奶兔 提交于 2019-11-27 09:19:46
问题 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

Alternative to sun.misc.Signal

狂风中的少年 提交于 2019-11-26 20:20:13
问题 I started research to find an alternative to the sun.misc.Signal class, because it could be unsupported in upcoming JDKs (we're currently working on 1.6). When I build the project I get: warning: sun.misc.SignalHandler is Sun proprietary API and may be removed in a future release I came across multiple solutions but they don't fit my project e.g. in this question. This is unacceptable in my situation because: Signals are used not only for killing application The application is huge - every

Playing audio in java using Sun.audio

僤鯓⒐⒋嵵緔 提交于 2019-11-26 17:21:57
问题 I want just to perform a simple task. (I'm a java newbie). I want to play an audio clip when a button is clicked. here's the part of my code(which I did exactly by copying a tutorial from Youtube.) private void btnPlayActionPerformed(java.awt.event.ActionEvent evt) { InputStream in; try{ in=new FileInputStream(new File("C:\\Users\\Matt\\Documents\\dong.wav")); AudioStream timeupsound=new AudioStream(in); AudioPlayer.player.start(timeupsound); } catch(Exception e){ JOptionPane

It is a bad practice to use Sun's proprietary Java classes?

自闭症网瘾萝莉.ら 提交于 2019-11-26 03:14:41
问题 The compiler display warnings if you use Sun\'s proprietary Java classes. I\'m of the opinion that it\'s generally a bad idea to use these classes. I read this somewhere. However, aside from the warnings are there any fundamental reasons why you should not use them? 回答1: Because they are internal APIs: they are subject to change in a undocumented or unsupported way and they are bound to a specific JRE/JDK ( Sun in your case), limiting portability of your programs. Try to avoid uses of such