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

24 questions
7
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,553
  • 2
  • 19
  • 33
4
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
  • 273
  • 2
  • 14
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
  • 4,885
  • 9
  • 41
  • 76
3
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
  • 65,795
  • 24
  • 148
  • 294
2
votes
0 answers

Replacing native Method (not whole class) of java submit rt.jar package

I newbye and I'm very lost. I was reading this article: http://www.thegeekstuff.com/2013/08/hide-tomcat-version-number/ I want to do similar thing but to replace externally a method included in rt.jar file. Here an example of I want to…
LAT USU
  • 21
  • 2
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

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
  • 6,731
  • 5
  • 35
  • 58
1
vote
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
  • 6,731
  • 5
  • 35
  • 58
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
  • 366
  • 5
  • 24
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
  • 1
  • 9
1
vote
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
  • 22,487
  • 41
  • 197
  • 389
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
  • 14,337
  • 17
  • 76
  • 119
0
votes
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
  • 6,665
  • 12
  • 49
  • 95
0
votes
1 answer

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 equivalent on macOS should be classes.jar, found at…
Jonelund
  • 1
  • 1
1
2