Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: J2SE

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


J2SE

Sometimes I want a express that a static field is unlikely to change, so the VM should consider it has a constant, but it may changed. And because we all live in a threaded world, if the static field is changed I want that all threads that want to read the field value to notice that the value has changed like a volatile field. Take by example the default Locale that you can obtain using...
on Dec 17, 2011
Just wrapped up my last performance tuning course for this year and for the second time running, some members of my Parisian group had the opportunity to run the exercises on virtualized hardware. Granted, the underlying hardware wasn't quite top shelf but then this hardware had been un-virtualized in past offerings. And, the point is to learn how to diagnose Java performance bottlenecks and in...
on Dec 12, 2011
Look at the code below where the main() loads a class whose name is specified by first argument. The second argument tells whether the class should be resolved or not. It also contains 5 test classes: A1, A2 and their dependencies: B, B1, B2. We will try to identify how early Bs are needed if I want to use As. class Main {  public static void main(String... args) throws Exception { ...
on Nov 2, 2011
  Was added to his package to facilitate applications which needs scalable processes. A feature is atomic variable. Variable atomic means that it cannot be divided -  it's like the S.O. with any resource (Driver CD, USB) cannot be divided but needs be used in many processes.              ...
on Oct 26, 2011
The java.util.concurrent library added a little gem of a class, TimeUnit, which is well worth knowing a bit about. The class is used in java.util.concurrent to inform time-based methods how a given timing parameter should be interpreted. This class, however, can breathe readability back into an API that would otherwise be tough to eyeball. Consider an example from the Timing Framework project....
on Oct 21, 2011
It’s after JavaONE and as promised, here is the answer to the performance puzzler with a stack trace. But first a word about JavaONE. The physical layout was the same as last year and as a result, JavaONE suffered from some of the same problems as last year. This year Oracle took a lot of advice from an advisory committee and the result was the conference made very good use of the poor...
on Oct 10, 2011
I was experimenting with Java 7's Locale and ResourceBundle classes recently. Java 7 introduces two new Locale categories: DISPLAY and FORMAT. You can set the default locale for localizable user interface resources independently from the default locale for data Format subclasses. For example, you supposedly can set up a DISPLAY locale to display Spanish (es) resources for the user interface text...
on Sep 18, 2011
I admit that I haven't been particularly active in the i18n or Java standards bodies in the last few years. Pardon me, but I had a wild rumpus in a startup for almost 3 years, then joined Yahoo for a couple years, and BAM! ... during that time, the Unicode Consortium added emoji, and the Oracle Java folks overhauled the once relatively simple java.util.Locale class among other things. That'll...
on Sep 13, 2011
I recently installed Java 7 on my Mac OS X system. Although the installation went smoothly, I did run into one problem that might not be a big issue for you. I didn't go through the hassle of compiling it for myself. Instead, I opted to grab a precompiled JDK from here: http://code.google.com/p/openjdk-osx-build/downloads/list?q=label:Featured Specifically, I chose the OpenJDK 1.7 universal...
on Aug 21, 2011

Programming

A new tutorial that exercises VisualLangLab using all the examples and techniques in Chapter-3, A Quick Tour for the Impatient, of the book The Definitive ANTLR Reference can be found at this link. Various other improvements have been made in version 7: A new WildCard pseudo-token that matches any defined token has been added to facilitate recovery from errors...
on Dec 13, 2011
This blog describes how to build both, a 64-bit and a 32-bit version of OpenJDK 8 on a plain, vanilla WindowsXP 64-bit operating system using only free (as in free beer) tools. body { font-family: arial, helvetica, sans-serif; font-size: 10pt; } caption.my { font-weight: bold; margin: 0px 0px 10px 0px; } span.update { font-weight: bold; color: maroon...
on Oct 28, 2011
I talk about java.lang.ref.* in my performance tuning course because these things (along with anything that implements finalize) are more expensive to create than normal objects and require at least two rounds of GC before you're completely rid of them. Of the bunch, that includes Reference, WeakReference, SoftReference and two other private reference classes that get mixed up with...
on Sep 29, 2011

Education

 In 1996, a group that I was working with devised a development process which we called Defect Driven Design, otherwise known as D3. We were a bit disappointed by not surprised that D3 never really caught on but just recently I saw a glimmer of hope for a revival. It was quite a surprise when about a year ago when Cameron Prudy started telling me about this great methodology called Defect...
on Nov 29, 2011

Community

       Eclipse is famous IDE in em Java, follows the open source model. The Eclipse project was stated by IBM that does the first version, then donated like open source for the community. The begin costs was above 40 millions. Nowadays, the Eclipse is one of the most used worldwide. Has important feature how the SWT uses and not the Swing, there are too many plug-ins...
on Nov 26, 2011
Given some information about Java 7, i will now show the imrovements to the latest version.In this article i use the netbeans version 7.0.1, for this you need to download the JDK 7 (the link is below the article). After downloading and installing Netbeans (but during the installation remember to select the JDK 7 path).   The first example will show switch with String, previously...
on Aug 21, 2011
After a long 5 year wait, finally comes the new version of Java,  jdk 7. The entire Java 7 project was divided into two sub-projects: The coin project; which featured a few improvements to the language like switch with strings, mutil try etc. Lamba's project containing some of the most innovative and complex features results in leaving the...
on Aug 11, 2011

GUI

In my last blog I’ve introduced JavaFX 2.0 beta, describing an initial port of JavaFX Balls, also in beta stage at that time. Now I finally finish JavaFX Balls 3. Look ma, no design! I don’t pretend to be a designer, and the consequence is that when I make a mashup of animation, video and web, that’s the result. Get the source code here. I’ve added new layers of content...
on Nov 25, 2011
Welcome java 7 part 3 -NIO 2 JSR 203   So like the coin project, in the NIO 2 there aren't unprecedented features in this e -specification, but now it's possible do some easier work I/Os in java. With the class java.io.Files are possible to perform several operations in simple mode. For that it needs and uses the java.io.file.Path, this interface represents files and...
on Oct 10, 2011
These are the days to be a Java UI developer! For so many years I have dreamt of Java’s return to the client side, and now – at long last – the developers at Oracle are making this dream come true.  Since the late nineties I have been developing a large number of both web based and swing based UIs, and it has always felt like a hard choice between two imperfect sets of...
on Sep 18, 2011

Mobility

 In May Google and Willow Garage announced the first pure-Java implementation of ROS - Willow Garage's Robotic Operating System. Called “rosjava”, the new library is still at alpha level, but it is clear from their forge that active development continues. Android is is well suited for robotic applications with its support of audio, accelerometers, GPS, cameras...
on Sep 24, 2011