Core Java Technology Section Index | Page 2
You can call Runtime.exec() and execute rundll32.exe with a few parameters. rundll32.exe shell32.dll,SHExitWindowsEx (to close the session) rundll32.exe shell32.dll,SHExitWindowsEx 2 (to reboot...more
Kerberos is a trusted third party network authentication protocol, initially developed as a part of MIT's Project Athena. Kerberos was designed to provide exceptionally strong authentication using...more
Debugging integrated Java and C/C++ code illustrates the two basic approaches using JNI (call C/C++ code from java, embed jvm in C/C++ code) and ways to debug both approaches using JPDA (jdb) and ...more
Yes. Ports of the Sun JDK for FreeBSD are published at this site.
Yes - sometimes it's easy, and sometimes not. X has two commonly used mechanisms for copying and pasting between applications, which can be a bit confusing: The primary selection: this is typical...more
How do I convert HTML form data from ASCII/HTML representation to a true Java Unicode string? I have a JSP that stores what should be a Unicode stream into a NCLOB. The insert happens fine, however...more
Here's a simple example of monitoring file read progress import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileInputStream; impo...more
I need to receive PKCS12 files and obtain X509Certificates from them in order to extract information. How do I do this?
Keytool can read PKCS12 files as generated by Netscape. It will treat them as a keystore. An example would be: keytool -list -rcs -keystore myfile.p12 -storetype pkcs12 -password foobar Due to...more
TMX stands for Translation Memory eXchange. From the definition at TMX Format - Specifications: "The purpose of the TMX format is to provide a standard method to describe translation memory data ...more
That option is only meaningful with a JVM running green threads. JDK1.3.1 only ships a HotSpot JVM running native threads.
The Sun AWT classes on Unix and Linux have a dependence on the X Window System: when you use the classes, they expect to load X client libraries and be able to talk to an X display server. This ma...more
The documentation for the latest version of Jini (1.1) is bundled with the software - you must download the entire package from http://developer.java.sun.com/developer/products/jini/EAproduct.off...more
I have written plenty of non-thread-safe Singletons but it wasn't until recently when I tracked it down that I realized that thread-safety could be a big problem. The problem is that in the typic...more
A checked exception is any subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses. Making an exception checked forces client programmers to deal with th...more