First step: See which packages are installed[Email protected] ~]# Rpm-qa | grep javaTzdata-java-2016g-2.el7.noarchPython-javapackages-3.4.1-11.el7.noarchJava-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64Java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64Java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64Java-1.7.0-openjdk
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
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
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
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
(Initialcapacity
Note that HASHMAP does not determine the capacity size according to the initialcapacity you specify, but instead finds a larger number and is 2 n Times Square.
Why do you have to be 2 n times? Hash
/** * Retrieve Object hash code and applies a supplemental hash function to the * result hash, which defends against R quality Hash functions. This are * critical because HASHMAP uses power-of-two length hash tables, that * otherwise encounter collisions for HASHC Odes that does n
Download installationEnter https://www.mercurial-scm.org/wiki/Mercurial download, Windows on the fool installed, after installation, command line into the installation directory, using the command HG version instructions installed successfully, such asNew sandboxWhat is a sandbox library? In addition to the project repository, there are a number of test libraries that can be used to run some test commands against mercurial without worrying about damage to development. It is possible to use them
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
is: the direct operation of Eclipse is not fully run ECLIPSE-CDT function, no new CPP project, find a half-day, only to find that the Ubuntu JDK environment by default is open source OpenJDK so, can not fully support eclip SE-CDT function; Go to the ORACLE website to download the JDK for the platform,,, and then install SUN-JDK, unzip to the appropriate location, set environment variables,,, configure environment variables: If you have Vim installed
Label:Because of my academic needs, I need to build a Java EE development environment in Linux and develop it in collaboration with the students in Windows. Jdk BecauseFedora is used by defaultOPENJDK, removal is more or less problematic, because many open source software is used by default, even if it is installedORACALJDK will also appear in the packageOracle does not exist problems, for the novice I do not dare to touch it;Windows development partners develop together and useOPENJDK Developm
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
Openjdkandroid4.4
Add environment variables:
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
You can ~ /. Add it to the bashrc file, so you don't have to manually change it every time!
Of course, after the preceding environment variable settings are added, the following prompt appears when you compile the environment variable:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
In this way, you do not need to switch jdk to the oracle version to compile Android4.4. You can use Openjdk7 to com
Php page, mysql database to UTF-8 garbled, UTF-8 encoding problem summary, mysqlutf-8
Example 1:
PHP page to UTF-8 Encoding Problems
1. Add a line at the beginning of the Code: header ("Content-Type: text/html; charset = UTF-8 ");
2. PHP file encoding problem click Editor me
Rapidxml reading UTF-8 format xml garbled problem (UTF-8 format to GBK), rapidxmlutf-8
1. I use the rapidxml file to read xml in UTF-8 format, but garbled characters are displayed. We need to convert the read content to GBK format to display it normally.
Char * utf82gbk (char * strutf)
{
// Convert UTF-
The best way:
Let's say something basic:
CODEPAGE specifies what IIS encodes to read the string passed over (form submission, address bar delivery, etc.).
The reason for the garbled is that the site should be integrated when the module coding is not the same.
As my blog is the same, the integration of the time will be the problem, because the blog is Utf-8,
Recently many netizens are consulting for this problem, I have tried many ways.
The most conv
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.