My computer --- properties --- Advanced --- Environment variables --- [System variables] --- edit - variable name [JAVA_HOME] --- variable value [C: Program FilesJavajdk1.5.0_12] --- OK; Edit - variable name [CLASSPATH] --- variable values [.;% JAVA_HOME% libdt.jar,% JAVA_HOME% libools.jar ])--- OK; find any original system variables [path] variable - Edit --- In the original value plus ---;% JAVA_HOME%? in --- OK; Well, JDK environment configuration has been done, and the next thing you should restart your Computer, because the system variables in the restart to take effect. With the editing tools in the c: under a java program: HelloWorld.java public class HelloWorld {public static void main System.out.println; Remember, the program name must be the same as the class name with the public! Save the file, - [Start] - run --- cmd --- cd c: jsp
$ PATH = $ PATH: / opt/GCC2721/bin If you do not want to be updated each time you use GCC PATH environment variable, you can write the above, the initial file in the user: For csh users: written in the users home directory. Cshrc file for sh users: written in the users home directory. profile files Q: gcc-version.gz unzip the file, the prompt "gunzip not found" five, through reading the file eventusermodel than reading the file through the use of eventusermodel usermodel much more complex, but also higher efficiency of many, because it requires the application side of the read data, while processing data. eventusermodel actually simulated DOM processing XML documents under way to SAX, the application processing the first data expected to be registered, eventusermodel will match the data structure in case of an application for registration when the callback method. The biggest difficulty with eventusermodel that you must be familiar with the internal structure of the Excel workbook. In the HSSF, the low-level binary structure called a record. There are different types of records, each type of package by the org.apache.poi.hssf.record a Java class description. For example, BOFRecord record indicates the start Workbook or Sheet area, RowRecord that there is a line there and save the style information. All the records that interfaces with Excel CellValueRecordInterface cells, including NumericRecord, LabelSSTRecord and FormulaRecord. Here is an example of registered event handlers: private EventRecordFactory factory = new EventRecordFactory; factory.registerListener {public boolean processRecord {; return true;}}, new short []); factory.processRecords; six, HSSF structures such as a spreadsheet As mentioned earlier, HSSF built POIFS basis. Specifically, Excel 97 + files are OLE 2 Compound Document, the underlying OLE 2 Compound Document is always the name of a saved Workbook stream. However, macros, and pictures are not stored in the Workbook stream, they have their own separate stream, and sometimes even into the OLE 2 CDF files within another directory. Ideally, the macro should be retained, but the current POI project API also not appropriate to handle macros. Within each stream is a set of records, one record is actually a byte array, can be divided into recording head to record the body in two parts. The record header indicates the type of record the length of follow-up data, recording the body is divided into multiple fields, the field contains numeric data, character data or markup. Excel workbook top structure: Bla.xls {OLE2CDF headers "Workbook" stream {Workbook {Static String Table Record .. Sheet names ... and pointers} Sheet {ROWROW ... NUMBER RECORDLABELSST Record ...} Sheet}} ... images, macros, etc . Document SummarySummary seven HPSF read through the document properties in Microsoft Word, Excel, PowerPoint and other software, the user can use the "File" ] "Properties" menu to add additional information to the document, including docum
About IcFull.com | Services | Payment | Advertisements Service | Contact Us | Links
All rights reserved:iceach.com © 2000-2010 Certificate No.:Guangdong ICP No.08108781