Compile a Java application locally as an EXE

(Jove and jet are recommended) 1 . Get a towerj compiler from www.towerj.com, which can compile your class file into an EXE file. 2 . Use Microsoft SDK-Java 4.0built by jexegen.exe to create EXE files, this software can be downloaded from the

Research on Using Java to read the properties configuration file

Package COM. anhang. util; Import Java. util. properties; Import Java. io. inputstream; Import Java. io. ioexception; public class datasource { Public final static string driver; Public final static string username; Public final static

An example of using Java to read the. properties file (LP)

Mainclass. Java Import java. util. properties;Import java. Io. inputstream; Public class mainclass {Public static void main (string [] ARGs ){ String filename = "datasource. properties ";String mysite = getpara (filename, "mysite ");System.

Convert the number of milliseconds to * day * hour * minute * Second in Java

Converts the number of milliseconds or two date types to * day * hour * minute * second, which is often used for time period calculation. /** * @ Param the number of milliseconds to be converted * @ return the number of milliseconds to be

Java programmer cainiao (11) common functions of extjs4 (3) -- Use of list grid (with integrated query and paging)

During development, the list function in the database table is very commonly used. Generally, the list has the comprehensive query and paging functions. In extjs4, it provides us with a powerful list grid function, record it here as a memo VaR

Java programmers from stupid birds to cainiao () big talk design pattern (6) Observer Pattern

This article is from: Cao shenghuan blog column. Reprinted please indicate the source:Http://blog.csdn.net/csh624366188   The observer mode is one of the behavior modes. It is used to automatically notify other associated objects and refresh the

. Java programmers from stupid birds to cainiao (forty-seven) Detailed description of struts2 (9) built-in interceptor and custom Interceptor (with source code)

  This article is from: Cao shenghuan blog column. Reprinted please indicate the source:Http://blog.csdn.net/csh624366188 In the previous blog, we read the specific implementation principles of the interceptor and the source code (Discuss the

Listing list in Java

Package com. csmzxy. rjxy. j2se. array_collection_04; Public class implements listtest { Private Static int size;Private node header = NULL; // indicates the header node. Public writable listtest (){Header = new node (null, null );Size = 0;} Public

[Reprinted] Date Processing in Java [date addition and subtraction]

  (1) obtain the current date:     Java. util.CalendarCalendar = java. util.Calendar. getinstance ();                              Or= New java. util.Gregoriancalendar ();     (2) add or subtract several days from the CDR Date:     Function

Java tip [002]: Can classes be modified statically?

In fact, this is very definite. in the definition of a class, the static modifier cannot be used, but the reason is that there is a situation where the class can be defined as static, it is an internal class. In the following definition, an internal

Java replaces the control characters in JSON.

There is a piece of JSON { "Content": "The first time I sent it, my aunt came to see me, but my husband was not honest, holding me and touching it... finally, I reached out to the following... I opened it and asked him what he was doing... he

I am also playing reflection (reflect of Java)

If you don't talk about P, directly upload the Code:   Package COM. hzmagix. utils; Import Java. io. file; Import Java. io. fileinputstream; Import Java. io. filenotfoundexception; Import Java. io. ioexception; Import Java. lang. reflect.

Java calendar code

  The following is the Java calendar program code in a book. Very practical. Package example; Import java. AWT. borderlayout;Import java. AWT. color;Import java. AWT. gridlayout;Import java. AWT. event. actionevent;Import java. AWT. event.

How to obtain the actual path of the loaded class in Java debugging

/**How to obtain the actual path of the loaded class in Java debuggingJava. Security. codesource;Java. Security. protectiondomain; Codesource can give the location of the class's original URL, but not every class has codesource. Codesource is empty

Computing a month in this year has several days (Java)

Static int countday (INT year, int month ){ If (Year % 400 = 0) | (Year % 4 = 0) & (Year % 100! = 0 ))){ Switch (month ){ Case 1: Return 30; Case 2: Return 29; Case 3: Return 31; Case 4: Return 30; Case 5: Return 31; Case 6: Return 30; Case

Java io-related

When writing a program, I/O problems in Java are often encountered. Here we use the record: Java I/O can be divided into two types: character stream and word throttling. character stream is output by character, while byte stream is output by byte.

Difference between equals and = in Java

Equals is equivalent when comparing the attribute values of two objects: String str1 = "ASC"; // store it in the stack String str2 = new string ("ASC "); Str1.equals (str2) // true = Equal when comparing two objects, that is, when two references

Database Query designed using a simple factory method (implemented using Java code)

There are six classes in total. The main database class is dbconn. Java, the sub-classes are dbquery. Java and dbupdate. java. The factory classes are dbstore. Java, dbquerystore. Java, and dbupdatestore. java.   Dbconn. Java code: Package com.

A solution to horizontal line and text dislocation when calling the crystal report using Java

In the process of developing Crystal Reports, I found that text and lines are often misplaced.The problem is: there are some old-fashioned reports with underscores in the text, but it cannot be solved by setting the font to the underline font,

Java Collection framework: Some tips you may not know

    You may already know the following facts about the Java Collection framework: The vector is thread-safe, and the arraylist is not The read operation of arraylist is faster than the append operation of explain list. The append operation of

Total Pages: 6206 1 .... 5526 5527 5528 5529 5530 .... 6206 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.