1.eclipse Export doc appears "The Javadoc command does not exist."
Javadoc Command Select Jdk/bin/javadoc.exe
2.tomcate Configuring Web Projects
.....
Sql:
3.mysql * must be put in front otherwise
Select *,customer.name from Customer;
You have a error in your SQL syntax;
Check the manual that corresponds to your MySQL server version for the
Right syntax to use near ' * from Customer ' at line 1
4. Time difference (conversion into number of seconds)
Java
Date D1 = Df.parse ("2004-03-26 11:31:40");
Date D2 = Df.parse ("2004-03-26 11:31:24");
Long diff = d1.gettime ()-d2.gettime ();
Long days = diff/(1000 * 60 * 60 * 24);
System.out.println (days);//84
System.out.println (diff);//7264876000
System.out.println (diff/1000); The number of seconds to get the time difference
Mysql
Select *,unix_timestamp (iendtime)-unix_timestamp (now ()) as et from jobs where iuserid=1;
In 5.mysql configuration
<ConnectionString>jdbc:mysql://127.0.0.1:3306/Kaixin?allowMultiQueries=true</ConnectionString>
Supports multiple statements with semicolons separated at the same time
Jtkehu.addmouselistener
6.java Date Conversion
SimpleDateFormat sdfmt = new SimpleDateFormat ("Yyyy-mm-dd");
Return Java.sql.Date.valueOf (Sdfmt.format (Date));
------------------------------------------
7. Splitting a string
'. ', ' | ' It has special meaning in the regular. To split must be escaped
String a = "aa|bb|cc";
String[] B = A.split ("\\|");
--
8.java Swing Project Development
Add a connection on a custom space form
Error Java.awt.Cursor could not find this jar
Environment JDK more than 1.6 has this package
windows/preferences/installed JREs put jdk1.6 on the hook.
9.myeclipse tomcate JDK Configuration issues
Configure java/installed jres/add/Select the JDK path first
In the configuration tomcate/jdk/
10.jbuilder 2006 hack
(Do not use serial number method, with serial number is not necessarily able to crack)
Copy the downloaded. jar to the installation directory Jbuilder2006\lib\
. Slip replication to the installation directory jbuilder2006\license\
Just reboot.
-------------------------------
11: Problem Installing IIS
WINXP can not be installed IIS6,
XP SP3 professional should be installed IIS5.1
Error-Erase the game that comes with XP
Add Remove Programs-attachments and tools-Details-games check box uncheck
---------------------------
12:java Batch Run Project
1. Put the compiled class file, project-related resources, JRE and bat together
2.bat content (JRE required). Jar "Main class")
Jre1.6.0_03\bin\java.exe-cp ".; Jar/client.jar;jar/comm.jar "Com/applicationenter
3. Running a Java project using Delphi exe
Setting up the console program RUNJAVA.DPR
Program Runjava;
Uses
Windows;
{$R *.res}
var Buff:array [0..max_path] of char;
apppath:string;
Begin
GetCurrentDirectory (MAX_PATH, Buff);
AppPath: = ' jre1.6.0_03\bin\java.exe-cp '.; ' +
' Jar/client.jar;jar/comm.jar;jar/xmlschema-1.3.1.jar ' +
' Com/fanchen/communication/frame/applicationenter ';
WinExec (PChar (AppPath), sw_hide);//sw_show Display Console
End.
-------------------
13:32-bit time format and date type conversions
SimpleDateFormat SDF = new SimpleDateFormat ("Yyyy-mm-dd HH:mm:ss");
Long time = System.currenttimemillis ();//
String datetime = Sdf.format (new Date (time));
----
The sinking of Japan
14. Exit Frame (target= "_top")
<a href= "logout.jsp" target= "_top" > Exit frame </a>
<a href= "Connection address" target= "_parent" >
JavaScript method Window.top.location=url
The following is the properties of target:
_blank Browser will open a new window to display the link
_self, open the linked document in the same frame or window. This parameter is the default value and is usually not specified.
_parent, loads the linked file into the parent frameset or parent window that contains the linked frame. If the frame containing the link is not nested, the linked file is loaded in a full-screen browser window, just like the _self parameter.
_top, opens the linked document in the current entire browser window, thus deleting all frames
_search loading the document in the browser's search area, note that this feature is only available in Internet Explorer 5 or later
-----
Instant display of input information
<input onpropertychange= "Document.all.b.value=this.value"/><input id= "B"/>
15.Myeclipse set the output path of the compiled class
Project-> Java Build Path-> Source-default output folder
Broswer-> Create New Folder-> Advanced-> Link to Folder in the file system
--------How to delete a service
There are two ways to delete:
Method One: Use sc.exe this Windows command
Start-run--cmd.exe and enter SC to see it. The way to use it is simple:
SC Delete "service name" (if there is a space in the middle of the service name, it needs to be quoted before and after)
As for the above: SC delete ksd2service
Method Two: Edit the Registry directly
Open Registry Editor and locate the following key value:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services General Service will show a key in the same name here, directly delete the relevant keys can be.
Iii. Special Circumstances
1, if the service display is rundll32.exe, and this file is located in the System32 directory, then you can not delete this rundll32.exe file, it is the Windows system files. Then just clear the relevant services.
2, if a service deleted immediately and automatically established, indicating that there is a process in the background monitoring, protection. You need to kill the corresponding process in the Process Manager first, or press F8 after startup to remove it in safe mode.
---------------------------------------------
16.--convert
FAT32 converting to NTFS with the convert command
Converts a FAT volume to NTFS.
C:\Documents and Settings\songyu>convert D:/fs:ntfs
17.html page automatically shuts down after a few seconds
<script language= "JavaScript" >
A ();
function A () {SetTimeout ("Closewin ()", "n"); return false;}
function Closewin () {window.close ();}
</SCRIPT>
18.html Nested media files
Swf
<embed src= "" >
19:java get local IP
InetAddress addr = Inetaddress.getlocalhost ();
Ip=addr.gethostaddress (). tostring;//Get the native IP
Address=addr.gethostname () tostring;//get the native name
19. Upload Tool
Ftp:
Svn:svn://192.168.1.253/repos1/server_end/gjl
Cvs:
20. No gap in picture
Table: <table cellspacing=0 cellpadding=0/>
Div: As a background
21. System Port
Generally used is 1 to 65535, of which 0 is not used,
0-1023:BSD reserved ports, also known as system ports, which can only be used by system-privileged processes;
1024-5000:bsd temporary port, the general application uses 1024 to 4999来 to communicate;
5001-65535:bsd Server (non-privileged) port, which is used to customize the port for the user.
22. Page content is forbidden to copy
<body oncontextmenu= ' return false ' ondragstart= ' return false '
Onselectstart = ' return false ' onselect= ' document.selection.empty () '
Oncopy= ' Document.selection.empty () ' onbeforecopy= ' return false '
Onmouseup= ' Document.selection.empty () ' >
Problems encountered in project development and their solutions. Summary