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
0
votes
1 answer

Java WTK cannot use StringTokenizer

Initially, I was trying to parse a String into parts and found split method. Then I realized that I cannot use it, because the compiler does not support most of the functions and methods. I thought I found a solution here which suggests…
Burak
  • 2,251
  • 1
  • 16
  • 33
0
votes
0 answers

unsafe.compareAndSwapObject replacing an array that is being iterated in another thread

I am trying to implement logic that will allow me to update an array in one thread using sun's unsafe.compareAndSwapObject utility while safely iterating over that same array, in a different thread. I believe that the CopyOnWriteArrayList does what…
0
votes
1 answer

Java Hot Deployment (Sun JDK Vs IBM JDK) - Adding method/changing signature

I was reading this blog and it says that Sun JDK does not support hot deployment in case of method signature changes/new method gets added in classes etc. I also looked at bug detail on Sun's site. In the bug detail I could see a link for Sun's…
Vicky
  • 5,380
  • 18
  • 60
  • 83
0
votes
4 answers

How do i find out the Structure of a Java Object?

I am working with the HttpExchange class, and want to use the getAttribute function to get the POST parameters. If i just call the function and print the results it works. But there has to be some better way to access the returned object and get the…
Flo
  • 1,660
  • 4
  • 21
  • 34
0
votes
0 answers

is there any python module to submit job in sun engine queuing system

I am working on running shell script in sun engine grid system using "qsub" command. I want to do similar thing using python. So instead of calling qsub directly from command prompt. I need a python module which help me to submit jobs in sub engine…
0
votes
1 answer

How does SGE (Sun Grid Engine) Monitor VMEM (Virtual Memory) Usage for Jobs?

SGE enables users to set limits on virtual memory/vmem usage (e.g. the h_vmem argument for a job submission). But how exactly does SGE monitor VMEM usage and send a kill signal if it is exceeded? Does it poll at some frequency? Add up some kernel…
evolvedmicrobe
  • 2,672
  • 2
  • 22
  • 30
0
votes
1 answer

Java sun.net.HttpServer writing to OutputStream throws IOException "An established connection was aborted by the software in your host machine"

I have a HttpServer which is serving files using the following code inside my Handler's handle() function. The file is read 100% fine from the local disk and the bytes[] array is filled correctly. As soon as I try to write those bytes to the…
Mikepote
  • 6,042
  • 3
  • 34
  • 38
0
votes
2 answers

pyephem sun apparent-diameter

I am using PyEphem to compute Right ascension and declinaison of the sun in order to determine the astronomic azomut of a target with a theodolite. As I cannot aim at the center aof the sun with my theodolite, I need to correct the azimut of the…
0
votes
1 answer

Using sun.misc in a Maven project, Access Restriction warning

I am attempting to handle system signals in my Java application such that USR1 and USR2 will trigger specific debugging / diagnostic workflows in a running environment. Using the following main App: package org.test.signals; import…
Matt Clark
  • 27,671
  • 19
  • 68
  • 123
0
votes
1 answer

Unzipping zipped dstream packages

How to unzip the .dstream.Z package in Sun Solaris. I tried all the methods as under gunzip # gunzip pkg@1821417@27528.dstream.Z gzip: pkg@1821417@27528.dstream.Z: not in gzip format unzip # unzip pkg@1821417@27528.dstream.Z Archive: …
root
  • 15
  • 4
0
votes
0 answers

Why member of a class of it's own type ,getting infinite recursion

I am creating a custom map. This is a class of node class HashNode { K key; V value; HashNode next; public HashNode(K key, V value) { super(); this.key = key; this.value = value; this.next…
Ajay Kumar Jaiswal
  • 352
  • 1
  • 6
  • 24
0
votes
0 answers

The method list(String) in the type FtpClient is not applicable for the arguments ()

I have this line of code in my project: TelnetInputStream list = client.list(); where client is of type sun.net.ftp.FtpClient. Due to some changes in my development environment, I get an error in the above mentioned line of code: The method…
annie
  • 177
  • 2
  • 3
  • 15
0
votes
1 answer

Generating Thread Dump on Sun JDK with Timestamp

I need to generate the Thread dumps on Sun Solaris machine for my application which is using Sun's Java5. I am generating Thread Dump using the following command: kill -QUIT pid But the thread dumps generated using this does not log the timestamp…
Sandeep Jindal
  • 14,510
  • 18
  • 83
  • 121
0
votes
0 answers

How to generate a com.sun.tools.javac.code.Type to use in a com.sun.tools.javac.code.Symbol.VarSymbol

I'm trying to generate a method with parameters and modifying an existing class at compile time to add the method. This works fine until I try to add a parameter to my method. The generated code looks correct: public static java.lang.String…
bramhaag
  • 135
  • 1
  • 1
  • 18
0
votes
1 answer

Bash: Issue using cat and tr to replace strings with a comma

My goal is to create a bash file that counts the lines in about 16 files, each having a date, and send the following (16 times) to a .csv file. So far, I've managed to count the lines, but the .csv file is messy and needs to be trimmed and made…
CK37
  • 11
  • 4