27 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
21
views
How to propagate SAXExcetion while validating xml using javax.xml.validation.Validator
public boolean validateXML() throws Exception {
sepaRTLogger.info("Entered validateXML()");
Schema schema = listOfXSDs.get(xmlVersion);
sepaRTLogger.debug("...
0
votes
1
answer
287
views
How to include jmods with R8 in Android?
With older JDK versions I included rt.jar in R8 configuration with
-libraryjars <java.home>/lib/rt.jar
In order to meet requirements of various java libraries not Android-specific (NOTE this ...
2
votes
1
answer
2k
views
downloading rt.jar from prior java releases
Due to apache-tomcat 10 requirements, I need the "rt.jar" from Java 8 (possibly 7).
I need to compile my current stuff (I am on jdk 11) using "javac -source 8 -target 8 ..." (...
0
votes
1
answer
1k
views
Compilation of the Java 8 JDK source code with javac command line compiler
Could you please advise how the JDK source files can be compiled with debug information using Javac.
I am using the following command:
javac -J-Xms16m -J-Xmx1024m -source 8 -target 8 -sourcepath d:\...
16
votes
3
answers
15k
views
JDK 14 doesn't have rt.jar with it. Where are bootstrap classes then?
The only jar file I could find inside JAVA-HOME/lib was a file called jrt-fs.jar which is only 105 KB in size.
So where are Runtime (bootstrap) classes then?
1
vote
0
answers
197
views
Seeing source code of sun.misc which is part of rt.jar
I was checking LockSupport.class (from eclipse, which is part of rt.jar) and came to know this class internally uses sun.misc.Unsafe for its implementation.
In general, for most of the packages which ...
7
votes
2
answers
17k
views
How get rt.jar dependencies in java 11?
We are planning to migrate our project from java 8(currently running on tomcat 7) to java 11, since rt.jar file is no longer available,
and tomcat startup needs classes from sun.misc package for ...
0
votes
1
answer
177
views
Proguard for java obfuscation, migrate from windows to mac, cannot find classes.jar
I'm migrating a java project from Windows to macOS 10.13.6 (High Sierra). I want to use ProGuard, triggered from an ant script. On Windows I added rt.jar as input to ProGuard. I've learned that the ...
0
votes
0
answers
815
views
Maven Compile cannot find jars from rt.jar
i have the following dependency in my app as I need some classes from rt.jar.
<dependency>
<groupId>com.sun</groupId>
<artifactId>rt</artifactId>
...
0
votes
1
answer
3k
views
space is replaced by %20 in file path while creating file and file is created at new location
I have installed my software in below mention path.
i am getting resulting path of directory created at different location as my installation path contains space. can some one help me how to resolve ...
1
vote
1
answer
809
views
Building OpenJDK Library from source?
I want to experiment with changes to the java library in java.lang, and possibly eventually other packages. This means instead of using rt.jar, I want to be able to separate out at least java.lang ...
Dov's user avatar
- 8,654
0
votes
1
answer
2k
views
Where is sun.misc.FloatingDecimal?
src.zip in the jdk1.8.0_144 contains Float.java
That in turn refers to sun.misc.FloatingDecimal. I cannot find that anywhere in src.zip? Can anyone tell me where it is? I can find the source listed ...
Dov's user avatar
- 8,654
4
votes
2
answers
14k
views
Is there any way to override library classes in a Java application [duplicate]
I am using Eclipse and Netbeans, now preferring Netbeans. If developing a system class that is in the java library (such as FileReader) is there any way to add that class into an application and have ...
Dov's user avatar
- 8,654
1
vote
0
answers
135
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
1
answer
118
views
Issue related to JRE9
In JRE 8, most of the internal files are present in rt.jar or tools.jar, but in JRE 9 these jar files have been removed. In JRE 8 my code was using WindowsIconFactory.class which is a part of rt.jar. ...