sun

Sun, Audio-player and Sound I/O

我是研究僧i 提交于 2019-12-17 14:56:33
问题 I have a few questions related to Sun, Audio-player and Sound Input/Output Why is the sun.audio.AudioPlayer package not part of the Java API? Some info is here instead: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6b14/sun/audio/AudioPlayer.java Yet it is still part of the default JDK build I am using. I have tried using JMF and spent half the day screw balling around with it, to no real avail. I managed to import the jmf.jar into Eclipse I tried a demo script and it

difference between Sun JDK and open JDK

人盡茶涼 提交于 2019-12-14 01:28:23
问题 I am running into errors such as the following: Exception in thread "Thread-1" java.lang.IncompatibleClassChangeError: Found class com.sun.image.codec.jpeg.JPEGImageEncoder, but interface was expected I have built my JAR's using Sun JDK and I am running on OpenJDK . I am kind of stuck with this environment. Is there an easy way around this? Do I have to compile and run the code on OpenJDK ? 回答1: com.sun.image.codec.jpeg.JPEGImageEncoder by the name is a Sun-specific package so there's no

JavaBeans Introspector does not correctly find property with interface hierarchy type

本秂侑毒 提交于 2019-12-13 02:11:41
问题 I read the JavaBeans specs but I found nowhere this behavior. Is it a bug ? testPropertyType fails because expects Data class testPropertyReadable succeed because DefaultBean.getMyData returning Data method exists testPropertyWritable fails because no DefaultBean.setMyData(Data) method does not exists Tested on JavaSE 6 import java.beans.BeanInfo; import java.beans.Introspector; import java.beans.PropertyDescriptor; import org.junit.Test; public class DefaultBeanTest { @Test public void

Where can I get (matching) sources for com.sun.jndi.ldap.* packages?

老子叫甜甜 提交于 2019-12-12 12:07:07
问题 I am on JDK6_u26 and don't find com.sun.jndi.ldap package sources as part of sources.zip. I believe they could be available from OpenJDK6 project, but I am not sure; and I am reading that the sources don't match the binaries in some cases. Can someone shed some light as to how to get the sources (and if possible,exact matching the JDK binary build) for these packages for attaching them in the debugger? A URL link/pointer would be great... Thanks a lot in advance! 回答1: See here, "Java SE 6 JDK

really weird ghosty shadows using three.js

只谈情不闲聊 提交于 2019-12-11 20:19:17
问题 I'm using three.js to make some solar system, all my objects are sphere (suns and planets), but I found this really weird and ghosty square shadow: Another ghost shadow seems to be that, the shadow that sphere A casts on sphere B, appears on both the front and back side of sphere B, like this: I am so confused since I don't really remember create any square stuff and I've checked my code for like million times without any finding. Finally, I dismissed all the lights in the world, and set the

PCC-S-02015, unable to open include file

蹲街弑〆低调 提交于 2019-12-11 10:23:16
问题 I am trying to compile a C++ application on SUN server using the compiler Sun C++ 5.9 SunOS_sparc Patch 124863-01. It seems that the Pro*C++ compiler is not able to identify some system header files like vector , list ... I am new to C++ and I am wondering if the compiler could not find the header file itself, or it cannot identify it since it was specified without .h extension. I checked also the pcscfg.cfg configuration file (below) which should point to the system header files for pro*C

Why does jProfiler show Unsafe.park/unpark as using CPU cycles?

谁说我不能喝 提交于 2019-12-10 14:58:56
问题 We're running a service using quite a lot of ExecutorServices. When profiling the service using jProfiler 7.1 (sampling, Runnable), we can see that sun.misc.Unsafe.park + unpark is currently the calls using most of the CPU time in the hotspot. http://i.stack.imgur.com/wT2Cj.jpg This is puzzling. Park and unpark should be blocking, hence not use any CPU cycles (or at least a low amount). Is this some sort of bug from the jprofiler (i.e. not detecting it, because it's in the sun.misc package?)

How can I suppress java compiler warnings about Sun proprietary API [duplicate]

不想你离开。 提交于 2019-12-08 15:58:47
问题 This question already has answers here : Suppress javac warning “…is internal proprietary API and may be removed in a future release” (6 answers) Closed 6 months ago . I'm using the encode() method from the sun.misc.BASE64Encoder package. How do I suppress the compiler warnings that it generates? sun.misc.BASE64Encoder is Sun proprietary API and may be removed in And as a followup, why don't I see this warning in Eclipse? 回答1: You could switch to a different Base64 implementation, e.g., http:

What's the effect of -server option for the HotSpot JVM?

时光毁灭记忆、已成空白 提交于 2019-12-08 12:02:09
问题 I cannot find any clear documentation about the exact effect of passing the -server option when launching a sun HotSpot JVM. Can anybody sum-up what it does? 回答1: With -server the JVM will compile hotspots (i.e. parts of the code that are often executed) more aggressively, and as a consequence the compiler will take more time to do so. This is not a problem since you only use this option when your processes run for extended periods of time (e.g. on a server). When using -client, the

How to do thread dump on Out Of Memory Error [duplicate]

我的梦境 提交于 2019-12-08 02:41:15
问题 This question already has answers here : how to generate thread dump java on out of memory error (6 answers) Closed 6 years ago . I know that -XX:+HeapDumpOnOutOfMemoryError will enable heap dump on OutOfMemoryError. Is there anything similar for thread dump? I need this in case when error happens on server - I don't have access to process itself when it happens 回答1: The exact point of execution where an OutOfMemoryError is raised is very much random (unless you have a single threaded