Where is the source code for the java compiler? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for the source code of Sun's standard java compiler, javac.
jdk1.6.0_07 has a few classes that are related, but they are interfaces
(java.lang.Compiler and javax.tools.JavaCompiler). There's also some packages under com.sun.mirror.* and com.sun.source.*, which seem to be interfaces for representing the java abstract syntax tree.
But I can't find the compiler source - anyone know where it is?

Check this site The Java programming-language compiler (javac) group. The sources are in the Mercurial repositories.
jdk7/tl/langtools (for JDK 1.7)
jdk6/jdk6/langtools (for JDK 1.6)
In the header of the two sites I linked to you find download links for the sources (in bz2, zip and gz format)
There you have the sources in src\share\classes\com\sun\tools\javac\

It's here

Related

Hash Map Internals exhaustive details [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for internals of hash map.Some exhaustive detailed info about buckets, Node inside it, Map.Entry etc.
I cant find any online stuff which has exhaustive details about this. I tried going thru source of HashMap inside rt.jar but its too complex to handle.
Please suggest where will i be able to find in detail internal working of hash map.
Thanks
to the best of my knowledge, rt.jar does not contain sources.
However, OpenJDK is, well, an open source JDK implementation. This thread has the info on browsing its source code
This is the direct link to the class you were asking: http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/util/HashMap.java
The internal documentation is quite extensive.
Download JDK (not JRE) and look for a src.zip file at the root of the installation path. All source code is there.

Where is the source code for native java.lang.math methods in JDK 7? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Per the title, where is the source code for the native java.lang.math methods JDK 7?
Please don't point me to Where to find source code for java.lang native methods? this only answers for JDK 6.
Oracle no longer appears to provide source for native methods at all.
I looked in http://hg.openjdk.java.net/jdk7/hotspot/hotspot but there are thousands and thousands of files with no obvious relationship to the package structure of the Java core so I cannot see any way to find the java.lang.Math methods.
The Oracle-recommended reference implementation at OpenJDK has the native math methods in the following folder location:
jdk1.6\src\jdk\src\share\native\java\lang\fdlibm\src\*.c
You can start the browsing from StrictMath.c
For example, asin (redefined as jasin) is in e_asin.c
If just research, you can use OPENJDK7&8 instead.
you can download from OpenJDK Project.
you can attach to eclipse.

is there any open source exe solution for Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
looking for all in one free open source exe solution (for java ) that can be used to create an all-in-one EXE from one or more jars?
Edit:
An "all-in-one EXE" is an executable that does not require a JVM to run.
Check out the following
Winrun4J: http://winrun4j.sourceforge.net/
Launch4J: http://launch4j.sourceforge.net/
According to the project page, the GNU Compiler for Java enables the creation of native machine code.
You can try jsmooth.sourceforge.net

Java API Source Code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Where can I find the source code of the Java API?
Install the JDK. The sources for the public classes are packaged in src.zip.
OpenJDK code: Browse here
For example, if you looking for AWTUtilities.java, go here in the above link:
src› share› classes› com› sun› awt› AWTUtilities.java
OpenJDK project homepage where they have all the instructions of downloading and building it
OpenJDK Mercurial Repo hosted here
JDK Documentation here
You can also find them online at http://www.docjar.org/.
I'm not sure what you mean, but here is the API documentation
Source for OpenJDK implementation
Presumably you mean the core libraries?
http://openjdk.java.net/groups/core-libs/
You might this alternative useful too:
http://www.gnu.org/software/classpath/
If you only need to look up some classes, the following page is also a good source:
http://grepcode.com
It works for different versions of various libraries.

Where do I find the javax.crypto source code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Where do I find the javax.crypto source code?
--update
Thanks for the OpenJdk version, but what about the jdk6 version?
Download links
http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/tip/src/share/classes/javax/crypto (OpenJDK version)
http://download.java.net/jdk6/source/ (JDK6 version)
Most of the classes in there are apparently only interfaces; the security algorithms are often written natively (ie, C). Interfaces are here, for one place.

Categories