In the structure of the previous OPENJDK source research Note (vii) –java code file (. Class), we have a general idea of the structure of the Java bytecode file.
This article describes in detail how to read most of the details of a. class file.
1. Construct the file
Byte code file user.class
String userclass = "C:/user.class";
File File = new file (userclass);
2. Construct the input streamFileInputStream fin = new FileInputStream (file);
DataI
Like the author of the book, I compiled the OPENJDK 7. The process is also encountered a lot of pits, consulted a lot of information, tried to use JDK8,JDK7,JDK6, the final use of jdk7u71 compiled successfully, the following record the process, so that others can learn from. First, the preparatory work:
1. Install Xcode, download directly from the App Store, and command line tools
2. Download Ant,mac will bring Ant, in/usr/local/cellar/ant/1.9.7, if
Release date:Updated on:
Affected Systems:OpenJDKDescription:--------------------------------------------------------------------------------Bugtraq id: 55538Cve id: CVE-2012-4420
OpenJDK is a cooperation Platform for open source implementation of Java Platform, Standard Edition and related projects.
OpenJDK has a remote information leakage vulnerability. Attackers can exploit this vulnerability to leak
Solve the problem that Firefox + OpenJDK does not have a Java Plug-in Ubuntu. ubuntuopenjdk
If OpenJDK is installed, it is a pity that it does not have libnpjp2.so.
At this time, all the strange methods on the Internet struggle to be ineffective, but you can use the icedtea plug-in to solve this problem.
The version of icedtea depends on the OpenJDK version insta
Encounter Error Error:./gamma:relocation error:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/libjava.so:symbol JVM_ Findclassfromcaller, version sunwprivate_1.1 not defined in file libjvm.so with link time referenceModified files: Hotspot/make/linux/makefileRemove all Test_gamma from the file./gamma:relocation Error:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.36.x86_64/jre/lib/amd64/libjava.so:symbol JVM_ Findc
Reference: http://gleamynode.net/articles/2296/
In the blog, the OS is Ubuntu 11.10/12.04 32-bit. The environment in this article is Ubuntu 12.10 32-bit.
Environment Settings:
Ubuntu 12.10 32-bit
JDK 1.6 +
Create a directory named workspace under the $ home directory
Install the required package
Apt-Get install mercurial gawk g ++ libcups2-dev libasound2-dev libfreetype6-dev libx11-dev libxt-dev libxext-dev libxrender-dev libxtst-dev libfontconfig1-dev
Install hgforeset
/* ****************************************************************************** * ubuntu OPENJDK 7 Upgrade 8 * Description: * Dream really created a project today, and he wanted to use the latest version, my side of the OPENJDK is version 7, * So to upgrade to 8 version of the line. * 2016-9-1 Shenzhen Nanshan Ping Shan Village oz
Compiling androidl requires the use of openjdk-7, and using sudo apt-get install OPENJDK-7-JDK an error message appears.Online a number of methods, you can update the software source of the method to solve, the use of the#中国科技大学 源,验证OK。deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse deb h
-for-OSX to think about trying to install Xquartz to solve the problem.To establish a soft connection for X11 after installationsudo ln -s /usr/X11/include/X11 /usr/include/X113. Installing FreeTypeA friend who compiles openjdk under Linux may have encountered a requirement to install FreeType, and then install and add the installation directory to the environment variable. But OS X is not the same, FreeType is not practical to install separately. Alt
), the other code is OPENJDK.Note: I'm using Jdk8u40 's Javac code to modify it, so if you want to do it yourself, you need to install JDK8 (the Java compiler is bootstrap, written entirely in Java).Because a lot of people on the Javac code is not familiar (actually I just touch the next day only, also not familiar), so a little more:The main class of the OpenJDK Javac Run is Com.sun.tools.javac.Main, which runs the class directly and takes the file n
1. Install ubuntu Desktop on physical machine or VM
You can download Ubuntu 16.04.2 LTS (recommend) from Https://www.ubuntu.com/download/desktop 1.1. Use source of USTC, it's faster in
sudo cp/etc/apt/sources.list/etc/apt/sources.list.bak
sudo sed-i ' s/archive.ubuntu.com/mirrors.ustc.edu.cn/g ' /etc/apt/sources.list
1.2. Update system
sudo apt-get update
sudo apt-get-y dist-upgrade
sudo apt-get autoclean
reboot
2. Install Tools
2.1. Install Vim
sudo apt-get install vim
2.2 Install
Before installing, check if the system comes with OPEN-JDKCommand:Rpm-qa |grep JavaRpm-qa |grep JDKRpm-qa |grep GCJIf no information is entered, no installation is indicated.If the installation can use RPM-QA |grep java | Xargs rpm-e--nodeps Bulk unload All files with Java The key word for this command is JavaFirst retrieve the list containing JavaYum List java*Retrieving the list of 1.8Yum List java-1.8*Install all files for 1.8.0Yum Install java-1.8.0-open
#进入系统的terminal to view the current JDK version:Shell>java-version#查看安装包Shell>rpm-qa|grep Java#将上条命令查出来的结果卸载掉 and see if the uninstallation was successfulShell>rpm-e--nodeps ... java ...Sehll>java-version#下载jdk安装包, Address: http://www.oracle.com/technetwork/java/javase/downloads/ Java-archive-downloads-javase6-419409.html#jdk-6u21-b07-oth-jpr#将下载的文件jdk -6u21-linux-x64-rpm.bin into the/usr/java directoryShell>mkdir/usr/javaShell>cd/usr/java#查看jdk Permissions for -6u21-linux-x64-rpm.binShell>list-l
1. Place your tar version of the JDK 2. Run the command: sudo gedit ~/.BASHRC To set the environment variable with gedit edit ~/.BASHRC: Export Java_home=/your/path/to/jdkexport jre_home= $JAVA _home/jreexport classpath=.: $JAVA _home/lib: $JRE _home/ Libexport Path=${java_home}/bin: $PATH 3. Run the command: sudo update-alternatives--install/usr/bin/java java/your/path/to/jdk/bin/java 300sudo update-alternatives--install /usr/bin/javac Javac/your/path/to/jdk/bin/javac 300 4. Run the command to
Compiling openjdk in Windows is a difficult process...
Platform: WindowsXP + cygwin, openjdk version: openjdk7, compiler: vs2010
Openjdk7 is selected because openjdk6 does not support vs2010. openjdk7 considers vs2010.
I will not detail the process because it is a long one. Similar to code download and cygwin installation, please follow the compilation instructio
error Because the Redis service is self-booting, it will not start again, so loading the configuration file is a failure. There is also no Redis boot small box (below the picture, slowly looking down), note that the Windows version of the Redis installation, the default boot loaded configuration file is redis.windows-service.conf, as shown in:2. Invalid passwordAlthough the password is set in the configuration file (redis.windows.conf), the password
Create the installation directory sudomkdir/usr/lib/jvm3, decompress the file package tarzxvf./jdk-7u25-linux-x64.tar.gz-C/usr/lib/jvm4, configure the environment variable gedit ~ /. Bashrc under the file... 1. download JDK from the official network.
SummaryClass inheritance Relationships
Java.lang.Object
java.util.abstractmap
java.util.hashmap
Defined
public class treemap
extends abstractmap
implements Navigablemap, Cloneable, Serializable
Points
1) differs from Hashtable in that it
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.