Seven years later, I will review the jdk environment configuration, and I will review the jdk later.
I think I have been working for a long time, but I haven't posted any post. I 've been chatting with other people's technologies on the Internet, so I feel very ashamed. Haha! Why? In fact, I still think that the document is too poor, so I have never dared to write a pen. Later I thought that I would like t
JDK built-in log system and jdk built-in log
1. Log functions in Java applications
========================
Generally, Java applications require logging. Currently, the mainstream log recording method is to introduce log4j in the application and use log4j to generate logs. In fact, JDK has its own log system, which is easy to use.
2. Use of Java built-in logs
==
First, we understand the difference between dynamic agent and static agent.Static Proxy: ① holds a reference to the proxy class ② the proxy class is loaded into memory at first (very important)Dynamic Proxy: The proxy class in the dynamic proxy in the JDK is dynamically generated. And the generated dynamic proxy class is $proxy0Static proxy instance 1, create an interface:Package Proxy;public interface People {public void Zhaoduixiang () throws Throwa
When using IntelliJ idea to read code, when tracking to such as Java.io.File class file, there is always "compile code" in the critical code snippet, so that people can not really trace to the inside of the code.To resolve this issue, do the following:Step1: Download JDK source code, Src.jar1.1 JDK path for Mac installation:/system/library/java/javavirtualmachines/1.6.0.
During the configuration of the MAVEN project, the following error was encountered during the deployment to the Tomcat server to run:1 " "The reason for the error is that the JDK version referenced by Maven is inconsistent with the version referenced by Tomcat, and the solution is as follows:1. Modify the JDK version of MAVEN to 1.7:A) in Maven's setting file, addAdd the following profile elements under the
Java environment configuration -- JDK 8 and java environment JDK 8
Download the latest jdk version from the official website.
Test version: jdk-8u60-windows-x64.exe
Test environment: Windows Server 2012 R2 Standard X64
During installation and installation, four paths are selected: the first two are java8, and the l
Jdk620th update versions-JDK 6 Update 20 release and downloadNow,If you are using JDK 6, you can go to Sun to download the latest JDK. This releaseJDK 6 Update 20Detailed versionThe current number isJDK 1.6.0 _ 20-b02It may be due to the Java WebThe impact of start on the URL filtering bug that allows malicious users to execute remote code. Sun officially release
Install JDK online for CentOS and jdk online for centos
1. Install jdk online using the yum command
1. view the jdk version currently supported on the cloud
[root@localhost ~]# yum search java|grep jdkldapjdk-javadoc.noarch : Javadoc for ldapjdkjava-1.6.0-openjdk.x86_64 : OpenJDK Runtime Environmentjava-1.6.0-openjdk-d
Install JDK in Linux and JDK in Linux
I don't have to worry about linux for a long time ..
1. Download jdk
Because the virtual machine I use cannot connect to the network, the campus network .. Pitfall
So we use windows to download jdk and drag it to the desktop.
Ii. Mobile
Ubuntu replaces sun jdk with the default open jdk 1. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. create the installation directory: sudo mkdir/usr/lib/jvm3. decompress: tar zxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm4. set environment variable: vim ~ /. Bashrc export JAVA_HOME
Recently in the server with Linux, in the download of the JDK Oracle official website found, and then use wget + to download, 2 seconds later, the file downloaded, but the file size, only more than 800 K, obviously there are errors, and later found that the information is not available to obtain the URL. Finally figured out a way, no matter what to do, give it a try.
Open the page for the JDK resource y
This article explores what Spring AOP is based on the 13th chapter of deep Analysis of the insider of Java Web technology
In short, it's cut-face programming. The implementation of Spring AOP is implemented by the dynamic proxy of the JDK used by the interface, and is implemented by the proxy of the class using Cglib. JDK Dynamic Proxy
JDK Dynamic agent, is in th
The problem is that I haven't done any setup since I installed Maven, I got Error:generics is not supported In-source 1.3 and Error:for-each loops when I use command mvn install n OT supported In-source 1.3, the first feeling is that there is a problem with the JDK (the cause of the error is obviously compiled with JDK1.3), but the project's JDK is set to 1.7, and the language is 7.0. Here are two options (
Install JDK 6 first
Sudo apt-Get install sun-java6-jdk
Then you need to set the default JavaProgramSudo Update-alternatives -- config JavaEnter the corresponding options as prompted, and set them to JDK 6.
The following settingsSudo Vim/etc/environment
Add the following two lines:Classpath =/usr/lib/JVM/Java-6-sun/libJava_home =/usr/lib/JVM/Java-6-s
Jdk timer and jdk Timer
First, let's take a look at the built-in jdk Timer:
A tool used by a thread to schedule tasks to be executed in a background thread. You can schedule the task to be executed once, or perform the task repeatedly on a regular basis. And eachTimerObjects correspond to a single background thread used to sequentially execute all timer tasks. Th
Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclip, differences between jre and jdk
This article solves the problem that eclipse is feasible for normal users but occurs after being switched to root.
Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java vi
See the original JDK firstRpm-qa|grep JDKOne by one uninstallation via RPM-E--nodeps based on the JDK name found aboveThen install the JDKRPM-IVH xxxxxxjdk.rpm for installationConfiguring Environment variables:/etc/profilejava_home=/usr/java/jdk1.7.0_67Jre_home=/usr/java/jdk1.7.0_67/jrePath= $PATH: $JAVA _home/bin: $JRE _home/binClasspath=.: $JAVA _home/lib/jt.jar: $JAVA _home/lib/tools.jar: $JRE _home/libE
The following error message pops up when we want to update the JDK to 1.7 (1.8) in the Mac x Yosemide systemThe solution to this problem is as follows:1. Download good JDK 1.7 (1.8) Address: http://www.oracle.com/technetwork/java/javase/downloads/index.html2. Open the downloaded DMG. The following interface appearsRight click on copy JDK7 update 60.pkg, then save to any directory, and rename JDK7 Update 60.
Windows 7 64-bit, re-install Android SDK, The result encountered a problem:
When checking whether the system has installed JDK, the prompt is always: Java SE Development Kit (JDK) not found.Error: Failed to find java version for 'C: \ windows \ system32 \ java.exe ': [2] the system cannot find the specified file
In fact, my JDK has been installed. This problem wa
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.