Skip to main content

Posts

VisualVM 1.1 released

VisualVM is a visual tool integrating several commandline JDK tools and lightweight profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform VisualVM home VisualVM release notes dzone: visual vm 1.1 now available

A handful of links

New Swing links of the week 18th January 2009 LWJGL 2.01 released JavaWorld: Java binding for OpenGL article JavaWorld: Year in Review: Java in 2008 article

JavaSE JDKs updated

JDK 6 Update 11 Java 6 Release Notes At least 18 bug fixes listed in the release notes. JDK 5.0 Update 17 JDK 5.0 download Java 5.0 Release Notes At least 32 bug fixes listed in the release notes. Usual place: Sun Java downloads

Overcome Java JNI gdb errors on GNU/Linux

If you happen to try to debug any Java JNI programs using gdb on GNU/Linux you will soon come across error messages. For example : $ gdb --args java MyJavaProgramUsingJNI cannot find user-level thread for LWP nnn: generic error warning: Cannot initialize thread debugging library: versions of libpthread and libthread_db do not match The reason for this is that the java program mucks around with LD_LIBRARY_PATH and that prevents gdb from running correctly. To overcome this, you have to run your Java program and place a pause in the Java code, such as reading a key, and then in another shell, run gdb to attach to the running Java process. You can then set your breakpoint on your JNI code and debug it. Here is an example : Compile your Java program: $ javac JNITest.java Generate the JNI header file: $ javah -jni JNITest.java Create and compile your C code library: $ cat jnilib.c #include "JNITest.h" JNIEXPORT jint JNICALL Java_JNITest_addValues( JNIEnv...

NetBeans 6.5 released

NetBeans 6.5 released NetBeans: New Features Lots of new features and new support for various languages and environments. New for Java SE is : * Automatic Compile on Save * Improved Eclipse project import and synchronization * Java Call Hierarchy * Analyze Javadoc * Swing GUI Builder can generate simple or fully qualified class names