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.
249
questions
0
votes
0
answers
16
views
Google checksyle vs Sun checkstyle in CheckStyle
I am trying to add checkstyle to my project. I use maven plugin to add
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</...
-1
votes
1
answer
8
views
IPMI temperature sensor precision/type
When I query the T_AMB sensor of a Sun Server X4-L using IPMI, using the rmcp interface in a simple python-ipmi based program (which uses the GetSensorReading IPMI command to get a sensor reading ...
0
votes
1
answer
30
views
How do I total sum of several columns based on argument python
I have been trying to get the total value of all columns based on an argument, but it didn't work out.
import numpy as np
np.random.seed(100)
NO= pd.DataFrame({'TR':'NO', 'A': np.random.randint(1, 10,...
0
votes
1
answer
37
views
Cannot Import sun.net.* [duplicate]
I'm trying to compile a java code from Java 1.8 to Java 18 but I'm getting the error the type sun.net is not accessible
I've read some stuff online that sun.* cannot be used anymore. Is this related ...
0
votes
1
answer
54
views
replacement for sun.reflect.ReflectionFactory newConstructorForSerialization
there is a project that uses newConstructorForSerialization(Class<?> incomingArgument, Object.class.getDeclaredConstructor()) to get a constructor that is later used to create objects before ...
0
votes
0
answers
28
views
why Java in vscode does not have sun.audio
Im trying seacrh in google but not have any information and i can accept if vscode cant use playaudio
(my project just a class work)
0
votes
1
answer
122
views
Failed to collect dependencies at org.bouncycastle:bc-fips:jar:1.0.2.3
I got an error when I try to build my project using Jenkins
> [ERROR] Failed to execute goal on project luwak-task-storage: Could not resolve dependencies for project
> com.trendmicro.luwak:...
1
vote
0
answers
35
views
XACML Obligations in sun's XACML implementation
I have been following the guide on how to use the PDP and PEP of the sun's XACML on http://sunxacml.sourceforge.net/guide.html#using-apis, I created a basic PDP component with:
...
-2
votes
1
answer
166
views
How to solve java import com.sun.nio.zipfs.ZipFileSystem?
I'm solving dependencies for an open source java project and I can't find to what jar this import belongs, maybe it's a special JDK it belongs to?
import com.sun.nio.zipfs.ZipFileSystem;
Could you ...
1
vote
0
answers
70
views
What is the alternative of AuthCacheValue and AuthCacheImpl in Java11
AuthCacheValue and AuthCacheImpl were present in sun.net package till jdk 1.8
But now while trying to use the same in jdk 11, it seems the package is no longer visible. Any leads would be highly ...
2
votes
1
answer
58
views
When to use java.* and jdk.* packages
I'm using IntelliJ and JDK 11. In the library packages, I see two types of package naming. java.* and jdk.* like shown in the below image:
The jdk.* packages have sun.* packages inside them. What ...
0
votes
0
answers
166
views
What are the look and feel themes that do not use the sun class?
Unfortunately there is no solution to correct the sun class problem with the integration of look and feel. So I'm looking for design look and feel that don't use the sun class.
Exception in thread &...
-1
votes
1
answer
25
views
Which Proguard version do I need for the Sun Java Wireless Toolkit 2.5
In order to obfuscate my J2MEWTK project I am being instructed to do the following:
However this link is now dead and lacks detail, where can I find a version of Proguard that works with the Sun ...
1
vote
1
answer
307
views
How to calculate SUN coordinates in ECEF (geocenter) frame?
I want to find the python library in which I may obtain the SUN coordinates in ECEF (Eart-Centered, Earth-Fixed) frame - geocenter coordinates. I try using jplephem, pyephem etc. but none of them ...
0
votes
0
answers
1k
views
How to update and avoid "sun.net.www.protocol.https.Handler is internal proprietary API and may be removed in a future release"
I have a piece of code I am upgrading that has the following...
// TODO: Handler needs replaced
url = new URL(null, clientUrl, new sun.net.www.protocol.https.Handler());
But this throws a warning ...
0
votes
3
answers
114
views
Bug in Java when printing factorial recursive method? Output printed before 'printing command'
I am currently learning java and at point of learning recursive. I tried these two identical methods but one of them in my opinion is acting strange. Is it a bug in Java? Or is it just me who can't ...
0
votes
1
answer
817
views
Installing Anaconda or Python on Sun Solaris 11.4 with Sparc architecture
I am trying to install Python or anaconda on Sun solaris 11.4 system with Sparc architecture. Somebody has idea on the python or anaconda installer compatible to same
2
votes
1
answer
107
views
Java built-in Adjacency List
I was reading this which consists of old java packages such as sun packages. I find some of them useful.
On of them is sun.security.provider.certpath.Vertex, which represents a Vertex and following ...
0
votes
1
answer
598
views
Random Walk in a 3D spherical coordinates system-Python
I am currently attempting to map and show the path of a photon from the center of the sun until it reaches the surface and is emitted. I also want to show the time taken for this to happen.
So far ...
0
votes
1
answer
3k
views
com sun tools jar not found even if it exists in openjdk 11 lib folder
In my openjdk 11 lib folder i have placed tools.jar C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\lib\tools.jar.
But while building project with mvn install command i get the following error
...
0
votes
1
answer
138
views
Where does the tmpname function write temporary files in a Sun Solaris environment?
I am in a Unix environment (Sun Ultra 5 with gcc v.2.95.3) and I am trying to understand where my compiler writes temporary files using the tmpnam function. I am aware that this works is deprecated ...
0
votes
0
answers
326
views
is there a replacement for Sun's package in android studio
I made an android project that imports into the sun package. the sun package that I use is sun.security.jca.GetInstance. I know if this sun package cannot be used, is there a substitute for this ...
0
votes
1
answer
64
views
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 ...
0
votes
0
answers
138
views
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 ...
1
vote
0
answers
1k
views
How to fix "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException"
I'm trying to hit an API from AWS EC2 and I'm getting Exception
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
But ...
-1
votes
1
answer
2k
views
How can I fix a "unable to find valid certification path to requested target" error using conda installed Java? [duplicate]
I was using the command yesterday and it worked perfectly. I may have installed a different perl or ava but I'm not sure why this would cause the error. I've looked at the other examples of this on ...
-2
votes
1
answer
546
views
Java11, what shall MalformedByteSequenceException be replaced with?
I'm moving a project to Java11
I already changed sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl with java.lang.reflect.ParameterizedType (as specified here), now is the turn of ...
0
votes
0
answers
57
views
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 ...
0
votes
1
answer
692
views
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? ...
1
vote
0
answers
629
views
How do I upload a file using the Java HttpServer API?
EDIT: I tried this using a multiple file upload, and I got 3 of 4 uploaded files, so it seems that the upload mechanism is only setting the offset too high for the first file.
I found a method for ...
1
vote
1
answer
1k
views
Thread hung at sun.nio.ch.FileDispatcherImpl.size0(Native Method)
In my java application, I need to copy the content of a directory from one to another. But sometimes (very rare) the copyDirectory stuck forever and the code does not execute after that. Which result ...
1
vote
0
answers
98
views
SUN minor code 309 meaning
I've got the following stacktrace:
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 309 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.workerThreadThrowableFromRequestWork(...
0
votes
1
answer
314
views
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 ...
0
votes
2
answers
46
views
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 ...
1
vote
0
answers
106
views
JavaFX Sun's InputEventUtils in JDK10
I am trying to build a library under JDK 10. The library was made with JDK 8.
public DockEvent(Object source, EventTarget target, EventType<? extends DockEvent> eventType,
double x, ...
0
votes
1
answer
2k
views
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:
...
1
vote
1
answer
849
views
Where download sun.* Java source? [closed]
I am supporting a project that uses Java 6 and need to go deep into the Java source (sun.net.www.protocol.http.HttpURLConnection to be precise). However src.zip attached in Java JDK folder does not ...
3
votes
1
answer
2k
views
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 ...
0
votes
1
answer
46
views
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
# ...
0
votes
0
answers
188
views
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, V> {
K key;
V value;
HashNode<K, V> next;
public HashNode(K key, V value) {
super();
...
0
votes
0
answers
217
views
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 ...
7
votes
6
answers
6k
views
java.lang.AssertionError thrown by compiler when adding generated method with parameters
I am modifying an existing class using internal sun APIs (com.sun.tools.javac) with an annotation processor. I am able to generate and add a MethodDecl to a ClassDecl using the following code:
JCTree....
0
votes
0
answers
838
views
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 ...
0
votes
1
answer
138
views
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 ...
18
votes
2
answers
25k
views
Accessing com.sun.tools.javac.util from Java 9
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 ...
0
votes
2
answers
294
views
java CORBA Server limiting the number of connection
I have a CORBA Server developed using Java (Oracle/Sun)... I do not know why, but the server is limiting the number of connection to 240. The application itself does not have any limitation... so i ...
1
vote
0
answers
63
views
How to add new rendering hint in RenderingHints.java
How to add new rendering hint in RenderingHints.java or by extending it.
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b27/java/awt/RenderingHints.java
0
votes
0
answers
37
views
How to replace a few specific lines of code stemming from com.sun.image.codec.jpeg.*
I am just getting into 3D modeling, like really just getting into it.
JPEGImageEncoder jie = JPEGCodec.createJPEGEncoder(bos);
JPEGEncodeParam param = jie.getDefaultJPEGEncodeParam(bImage);
...
1
vote
1
answer
1k
views
How to I access this particular class?
The class in question is sun.security.tools.KeyTool and I'm using OpenJDK 7. I keep getting "cannot find symbol" though, and I'm no Java expert so I can't figure out through documentation why that ...
0
votes
1
answer
66
views
How to start nethack on solaris 11.3? [closed]
I downloaded this package from the package manager: http://pkg.oracle.com/solaris/beta/info/0/pkg%3A%2F%2Fsolaris%2Fgames%2Fnethack@3.4.3,5.11-0.151.0.1%3A20101105T054109Z