- 浏览: 75410 次
- 性别:
- 来自: 深圳
文章列表
/eContract/EHRZKJ2021060816181535513707078189774767/26b00af7ffef431ba44a61664b597210
1、查看linux机器是32位还是64位的方法:
file /sbin/init 或者file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=3d705971a4c4544545cb78fd890d27bf792af6d4, stripped
2、下载JDK压缩包:
http://download.oracle.com/otn-pub/j ...
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.apache.commons.la ...
import java.util.HashSet;
import java.util.Set;
import javax.swing.text.html.HTMLEditorKit;
import org.apache.commons.lang.StringEscapeUtils;
import org.htmlparser.Node;
import org.htmlparser.NodeFilter;
import org.htmlparser.Parser;
import org.htmlparser.util.NodeList;
import org.slf4j ...
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
File file = new File("D:/test/date.xml");
org.w3c.dom.Document document = builder.parse(file);
用sun的JDK,当这段代码解析错误时,应该程序没结束,date.xml文件是无法删除的。
这时应该采用下面这种方式,在fina ...
有个任务关于applet上载文件组件,嵌入网页。
1、界面不够熟悉的话可以下载Eclipse插件Jigloo GUI Builder,插件下载地址:http://cloudgarden.com/jigloo/ ,这个插件画界面很不错。
2、创建DemoApplet类,继承java.applet.Applet,实现界面和相关功能。
3、导出DemoApplet.jar
4、对jar进行数字签字,两种方式
1)ant脚本
<target name="jarsigner" depends="DemoApplet.jar" description ...
1、ant下载http://ant.apache.org/bindownload.cgi
2、解压到一个目录,以D:\000_ant为例
3、配置环境变量:
ant_home:D:\000_ant
java_home:C:\Program Files\Java\jdk1.6.0_20
path:%java_home%\bin;%ant_home%\bin;
4、查看ant是否成功安装,在CMD输入:ant -version
5、如果cmd显 ...
package com.test;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegexTest {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter pattern:");
String patternStr = in. ...
msysgit 1.7.8
http://code.google.com/p/msysgit/downloads/detail?name=Git-1.7.8-preview20111206.exe&can=2&q=
SVN
http://subversion.tigris.org/files/documents/15/47848/Setup-Subversion-1.6.6.msi
public class LogConnectionManager {
private static URLConnection conn = null;
public static URLConnection getURLConnection() {
try {
URL url = new URL("http://127.0.0.1:8888/appletserver/logServlet");
conn = url.openConnection();
if(urlConn instanceof HttpURLConn ...
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xm ...
blic class StudentNameCell extends DefaultTableCellRenderer
private static final long serialVersionUID = 1L;
public Component getTableCellRendererComponent(JTable table, Object obj, boolean isSelected, boolean hasFocus, int row, int column)
{
if(row%2 == 0){
...
在运行时从某些外部源读取类名反射不适合
private Object reflectClassByInstance(Object instance,
String methodName, Object[] parameterObjects) {
try {
Class c = Class.forName("java.util.logging.LogManager");
Constructor constructor = c.getDeclaredCo ...
public static void main(String[] args) {
Map<String, Integer> hashmap = new HashMap<String, Integer>();
long e = System.currentTimeMillis();
// for (int i = 0; i < 1000000; i++) {
// hashmap.put(i,"bsdfsewfasdfasf"+i);
// }
hashmap.put("cc",1) ...
jxl读取excel
- 博客分类:
- JAVA
public class TestJXLRead {
public static void main(String[] args) throws Exception {
TestJXLRead testJXL = new TestJXLRead();
testJXL.readExcelFile("C:/testExcel.xls");
}
public static void readExcelFile(String excelFileName) throws Exception{
File ...