Questions tagged [sun]

Sun Microsystems is a computer company, bought by Oracle in January 2010. It is most famous for its line of computers based on its own SPARC processors, the Solaris operating system and the invention of the Java platform.

Sun Microsystems, Inc. was a company that sold computers, computer components, computer software, and information technology services and that created the programming language, and the Network File System (NFS). Sun significantly evolved several key computing technologies, among them Unix, RISC Processors, Thin Client Computing, and virtualized computing. Sun was founded on February 24, 1982. At its height, Sun headquarters were in Santa Clara, California (part of Silicon Valley), on the former west campus of the Agnews Developmental Center.

More info:

http://en.wikipedia.org/wiki/Sun_Microsystems

http://www.oracle.com/us/sun/index.htm

240 questions
4
votes
2 answers

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

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…
Anand
  • 409
  • 3
  • 7
  • 15
4
votes
1 answer

Why does sun C++ compiler change symbol names when compiling with debug infos?

I have this source file: // ConstPointer.cpp const short * const const_short_p_const = 0; const short * const_short_p = 0; and compiled it with and without debug infos (SUN C++ Compiler 5.10): # CC ConstPointer.cpp -c -o ConstPointer.o # CC -g…
michael.kebe
  • 10,916
  • 3
  • 44
  • 62
4
votes
1 answer

Can I ask dtrace what probes are enabled?

If it matters, I am using Mac OS X, but I believe this would apply across OSs. If the answer is different per OS, I would be interested in learning about that as well. Let's say that I open a terminal window, enable a few probes, and start…
ericg
  • 8,413
  • 9
  • 43
  • 77
4
votes
1 answer

Lock analyser for Java application

I have two versions of a Java application which use different concurrency logic. I want to analyze and compare their performance (such amount of time a lock was acquired etc.) so that I can use the better one. I found out a tool IBM Lock Analyzer…
Abhishek Anand
  • 247
  • 2
  • 10
4
votes
3 answers

Why Sun's Arrays.sort implementation creates a clone of the input array?

Can someone please explain the following code? Source: Arrays.class, public static void sort(T[] a, Comparator c) { T[] aux = (T[])a.clone(); if (c==null) mergeSort(aux, a, 0, a.length, 0); else …
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
4
votes
2 answers

How to get source code of native C language library used in java 1.4?

I want to see implementation of java.util.zip.CRC32. But within this class its using native c library functions for core implementation.How can I get the native source code. I can see the java.util.zip.CRC32 source code, but this doesn't have the…
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
4
votes
2 answers

Time from sun's position and observer's location

I have satellite imagery with the latitude, longitude, and position of the sun (azimuth, zenith, and elevation), but no time-stamp. Short of using an astronomy almanac, is there a way to calculate the time from the sun's position and image…
4
votes
2 answers

Unblock PIN of SmartCard via Java (SunPKCS11)

i try to unblock or change a pin on smartcard tokens via java. Writing and reading smartcard-certificates via SunPKCS11-Wrapper is no big deal but i cannot see any C_setPIN or C_initPIN-methods in the PKCS11-wrapper-class. So is there a way to…
Dano
  • 239
  • 3
  • 10
4
votes
2 answers

The import sun cannot be resolved

I have a little problem while compiling an Android application with Eclipse. It says : The import sun cannot be resolved Actually I want to use the NotImplementedException Class from the package sun.reflect.generics.reflectiveObjects Do you have…
EdRbt
  • 329
  • 1
  • 6
  • 17
3
votes
2 answers

Java Possible FileChannel.map Bug

So I'm trying to read in a very large file using a mapped FileChannel. The file exceeds 2GB. A snippet of code is: long fileSize = 0x8FFFFFFFL; FileChannel fc = new RandomAccessFile("blah.huge",…
poy
  • 10,063
  • 9
  • 49
  • 74
3
votes
4 answers

Where can I find JDK6 source repository?

On the JDK6 source page the repository link is broken, and the location that is described in readme doesn't exist. I know that there is also OpenJDK repository, but as I understand, it isn't the same. I know how to download source files, but I'm…
Max Yankov
  • 12,551
  • 12
  • 67
  • 135
3
votes
3 answers

What arguments can be made to a client/boss for SUN Teamware -> modern SCM migration?

The team where I work still uses SUN Teamware for Source Code Management (SCM). I've worked with it for a while now (over 10 months) and I don't have any particular complaints about it. Teamware has been used to manage Sun’s largest source trees,…
3
votes
1 answer

how to use sun.audio with java 9

i am working on adapting my desktop app to run with jre9 i get java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: sun/audio/AudioStream i had some other problems with sun API that i resolved by adding the jvm…
Efi G
  • 937
  • 8
  • 15
3
votes
2 answers

Java Base64 Sun to JDK8

I have a bunch of strings in the DB which were encoded with the sun.misc.BASE64Encoder a while ago. Now I wanna decode (and encode further strings) with java.util.Base64. The difference between these two is that the Sun one added a new line string…
Georgian
  • 8,795
  • 8
  • 46
  • 87
3
votes
0 answers

difference between com.sun.xml.bind jaxb-impl.jar and javax.xml jaxb-impl.jar

What is the difference between jaxb-impl.jar with maven groupId javax.xml and a jaxb-impl.jar with maven groupId com.sun.xml.bind?
pranav
  • 163
  • 1
  • 3
  • 12