JDK1.6 / JDK6.0 Downloaded?January 12th, 2006 I just downloaded JDK1.6 aka JDK 6 (code name: Mustang). Now is a good time as any to get your feet wet with the latest version of Java platform and development kit.
How To Recover Openfire admin Password October 22nd, 2007 Openfire is a cross-platform java based free Instant Messaging server which implements the XAMPP (Jabber) protocol with extensions. It is very well suited as corporate instant messaging solution.
Shutdown Apache James Mail Server - Java UtilityFebruary 15th, 2006 Overview
A Java class to shutdown Apache James Mail Server via TCP/IP. It shuts down Apache James Mail Server by passing shutdown command via simulated telnet session.
Open Source Java Application Server Geronimo Passes Java 2 Enterprise Edition 1.4 CertificationOctober 19th, 2005 With its latest release of the software, Apache announced that Geronimo 1.0-M5 Java application server has passed all the compatibility tests and has gained official J2EE1.4 certification of the Java server software standard. Apache Geronimo 1.0-M5 is completely integrated with the Tomcat Web server and includes a developer preview of web management console submitted to Apache by IBM.
Java or C#January 10th, 2004 On the old debate - C# versus Java
How To Enable Root Account on Mac OSXApril 20th, 2008 1. Login to the Admin account (not the normal account)
2. Open up a command shell in the Terminal application by selecting - Macintosh HD -> Applications -> Utilities -> Terminal
At the command prompt type this command:
sudo passwd root
You will then get the following prompts.
How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 MinutesAugust 7th, 2007 Fedora Core developers make it rather hard to install and properly configure Sun's JVM. All said and done Sun's JVM (comes with JDK) is the best JVM implementation out there; not to mention that it is the reference implementation.
Access Microsoft Access Database From Java Using JDBC-ODBC Bridge - Sample Code March 28th, 2006 Previously I had provided the gist of how to access MS Access database from JDBC using JDBC-ODBC bridge. Today I will elaborate on that and provide you with two sample classes.
Java Tip: Basic Authentication with HttpURLConnectionJuly 6th, 2007 Java provides a super simple, yet hidden from plain view, way to do basic authentication of HttpURLConnection / URLConnection. Before making a connection add the following lines of code:
final String login ="...";
final String password ="...";
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication (login, password.toCharArray());
}
});
This sets your default Authenticator which is called whenever authentication is required for any URLConnection.
How To Reset Google AdSense PasswordMarch 23rd, 2007 Strangely the most obvious means to reset Google AdSense password may not work for you. By obvious I mean the link on AdSense login page: I cannot access my account.
How To Use Wget Through ProxyAugust 25th, 2006 Wget is a super-useful utility to download pages and automate all types of web related tasks. It works for HTTP as well as FTP URL's.
Sun Open Sources Java (April Fool)April 1st, 2006 In a significant (read earth shattering for Java community worldwide) move Sun has announced their decision to open source Java technologies. The JCP will be disbanded in favor of open source bazaar model.
How To Resolve Tomcat - Openfire Port ConflictNovember 13th, 2007 Openfire (Jabber/XMPP server) by default binds on port 8080 which is also used by Tomcat. This causes Tomcat to fail when openfire is started before it.
How to Set Up Root Password for Your MySQL ServerJanuary 17th, 2009 If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To set up a root password for the first time, use the mysqladmin command at the shell prompt as follows:
$ mysqladmin -u root password newpass
If you want to change (or update) a root password, then you need to use the following command:
$ mysqladmin -u root -p oldpassword newpass
I hope this will work for you perfectly.
How to Reset Master Password in Firefox in Case You Have Forgotten itJanuary 14th, 2009 It happened to me just the other day. Someone deliberately got into my Firefox, cracked my login information from security options and surfed to my password secured websites at glory.
January 12th, 2006 at 10:45 am
[...] India Fourth Largest Internet User How To Accept Password From Console in Java » JDK1.6 / JDK 6.0 Downloaded? January 12th, 2006 by AngsumanChakraborty [...]
June 8th, 2006 at 6:21 am
thanks for the service you provided to me.
November 19th, 2007 at 7:46 pm
Console c = System.console();
if(c != null){
String user = new String(c.readLine(”Enter user:”));
String pwd = new String(c.readPassword(”Enter pwd:”));
c.printf(”%20s”,user);
c.printf(”\n%20s\n”,pwd);
}else
System.out.println(”Console is unavailable”);
注意運行環境為:jdk1.6+jcreator3.5.
如果jcreator4.0的話,得到的c總是null.
March 28th, 2008 at 6:46 am
it,s very nice