1. download Java Web: http://www.oracle.com/technetwork/java/javase/downloads/index.htmlI got a jdk-6u43-linux-i586.bin.
Ii. Installation 1. I created a Java folder under OPT.# Mkdir/opt/Java
2. I used winscp to put the JDK file under the/usr/Java
Today, I tried to build a Java Development Environment under Linux, and I will summarize the specific steps.
1. JDK InstallationRun the following command to install JDK (first create the/opt/Java directory)Tar-xvf
In article 4th of the modular Java series, we will introduce
Declarative ModularizationDescribes how to define components and organize them together without relying on osgi APIs for programming.
In the previous article, modular Java: Dynamic
Written in C ++, class files can be decompiled and decompiled at the jar package level. The entire jar package can be directly saved as the * .src.zip source code package. The Decompilation is fast and the error rate is very small, for details, see
Ava 3D and user interface
Canvas3d
Each area that can draw a 3D image is called canvas3d. It contains the rectangle of the object view in your environment (universe. You put the canvas into a frame, so you create an environment that can be displayed
1. Integrate database connection operations
Based on previous experiences in the news publishing system, it is best to write a class dbhelper or sqlhelper for the content related to database connection and so on. Through various static methods in
I. Rewrite the method.
1. Rewriting can only appear in the inheritance relationship. When a class inherits its parent class method, it has the opportunity to override the method of the parent class. A special case is that the method of the parent
The Chinese Garbled text in Java should be a problem we often encounter. Today we will summarize the solutions to the Garbled text problem:
1. The Link contains Chinese characters. Add
In this way, if the data obtained in the background is not
Java uses epoll for NiO Processing
NIO of JDK 6.0 and JDK 5.0 Update 9 supports epoll (Linux only), which greatly improves the performance of concurrent idle connections, which is required by many network server applications.
The method for
1. Heap dump
If you do not know what heap in Java means, this article may not be suitable for you to read.
A heap dump is a snapshot of the memory used by a Java Process at a certain time point. That is to say, at a certain time point, the memory of
During the design of ireport, I embedded a website logo image and a bar code. when the result was debugged, the image could not be displayed and I checked the online information.
Yes
Request. getsession (). setattribute (Imageservlet. default_jasper_
QR codes are increasingly used and can be seen in many places, such as train tickets and promotional products. The following describes how to use Java to generate and decode QR codes.
1. Open-Source Projects:
Zxing: An open-source Java class library
Java string storage and operation class. I have used string, stringbuffer, stringbuilder.The class definition of string is public final class string, that is, it cannot be inherited. in addition, the string object storage value is unchangeable. if a
1. MD5 encryption, which is often used to encrypt user names and passwords.
Protected byte [] encrypt (byte [] OBJ )...{Try ...{Messagedigest MD5 = messagedigest. getinstance ("MD5 ");Md5.update (OBJ );Return md5.digest ();} Catch
When I watched the video of Mars yesterday, I was ashamed of seeing that he was talking about anonymous internal classes. So Baidu + Google finally came up with the following:
Anonymous internal class
1. Definition: As the name implies, an internal
Read files:
Bufferedreader
Read text from the character input stream, buffer each character, so as to provide efficient reading of characters, arrays and rows.
You can specify the buffer size or use the default size. In most cases, the default value
ASCII character set encoding
The ASCII code is a 7-bit code.The encoding range is 0x00-0x7f. The ASCII character set includes English letters, Arabic numerals, punctuation marks, and other characters. 0x00-0x20 and 0x7f contain 33 control characters.
The similarities between groovy and Java are as follows:3 +, 4 +, 6 +, 8 +, 10 +, 12 +, 13, 14, 15, 18 +, 20 +, 21, 22, 23, 28 +, 29 +, 30 +, 31 +, 32 +
+ It indicates that groovy not only covers Java syntax, but also enhancements.
The differences
Java provides two main types of exceptions: runtime exception and checked exception. Checked exceptions are the IO exceptions we often encounter and SQL exceptions. For such exceptions, the Java compiler forces us to catch these exceptions.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service