Questions tagged [rt.jar]

rt.jar contains all of the compiled class files for the base Java Runtime environment.

rt.jar contains all of the compiled class files for the base Java Runtime environment.

Resources

26 questions
13
votes
2 answers

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?
Joseph_Marzbani
  • 1,796
  • 4
  • 22
  • 36
6
votes
2 answers

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 instance,sun.misc.GC. Also, our application uses…
Anoop Deshpande
  • 514
  • 1
  • 6
  • 23
4
votes
2 answers

InetAddress java 8 is not getting the hostname

InetAddress.getLocalHost().getHostName() is no more getting the name of the HostName since I switched to java 8 ... with the jdk1.8 the InetAddress.getLocalHost().getHostName() returns "localhost". Before (when I was using jdk1.6) it gives me the…
Mohamed Taboubi
  • 6,663
  • 11
  • 55
  • 87
4
votes
3 answers

Why is rt.jar not part of the class path system property?

I use the system property java.class.path to find all jars and directories that belong to the classpath. At first sigth this seems to work great. But on closer inspection I found that when I execute my program with gradle there is no rt.jar in this…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
3
votes
2 answers

Is there any way to override library classes in a Java application

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 the local one supercede the library copy? The…
Dov
  • 8,000
  • 8
  • 46
  • 75
2
votes
0 answers

Eclipse XML Parser "Providers" conflicting with rt.jar

Please note: Although there are several questions on SO that paste in a similar exception & stack trace, this question is definitely not a dupe of any of them, as I'm trying to understand where my classloading is going awry. Hi, Java 8/Groovy…
smeeb
  • 27,777
  • 57
  • 250
  • 447
2
votes
2 answers

Reloading classes with maniupulated bytecode from rt.jar

I am currently trying to track method calls for learning purposes. The javagent I have implemented is a modified version of the implementation in this article. The programm adds to any method call logging instructions into the bytecode.…
1
vote
1 answer

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 ..." (hoping not 7 here) but to do that right javac also needs "-bootclasspath…
Ray Holme
  • 11
  • 2
1
vote
0 answers

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 are present in rt.jar, I can see the source, for…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
1
vote
1 answer

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 and compile to them. It is not possible to edit…
Dov
  • 8,000
  • 8
  • 46
  • 75
1
vote
0 answers

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
Ravipati Praveen
  • 446
  • 1
  • 7
  • 28
1
vote
3 answers

An invalid XML character (Unicode: 0x3) was found on unmarshalling after successful marshalling

I fully understand the error "An invalid XML character (Unicode: 0x3) was found" Caused by: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x3) was found in the element content of the document. at…
1
vote
1 answer

Android Studio - android.jar and rt.jar conflicts

I’m developing an Android Application with Android Studio 2.1.2. In one of the classes of an external library (in particular the Watson library of IBM Bluemix, com.ibm.watson.developer_cloud:java-sdk:3.0.1) I need to import these three…
Dieghitus
  • 55
  • 3
  • 9
1
vote
0 answers

error: cannot find symbol 'MENU_SELECTION_MANAGER_LISTENER_KEY'

I compile jdk source codes (jdk-7u79-linux-x64.tar.gz) and encounter the following error. jdk_src/javax/swing/MenuSelectionManager.java:66: error: cannot find symbol Object o =…
SparkAndShine
  • 17,001
  • 22
  • 90
  • 134
0
votes
1 answer

How to include jmods with R8 in Android?

With older JDK versions I included rt.jar in R8 configuration with -libraryjars /lib/rt.jar In order to meet requirements of various java libraries not Android-specific (NOTE this doesn't mean that whole rt.jar will be included in App,…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
1
2