Archive

Archive for the ‘General Java’ Category

Execute external process from within JVM using Apache Commons Exec library

Executing external command from within JVM often causes problems- be it in terms of the code to write and manage or in the ease of implementation. I had similar requirement in my Major project for my Under Graduate Degree, where in I had to launch a C program from the Java code. I ran into different issues like- the Main thread getting blocked, the GUI freezing, or reading the output streams and so on. Finally I had to give up the idea and stick with launching the external command externally ūüėõ Had I found the Exec library from Apache Commons then, my work would have been lot easier. Anyways better late then never. I will quickly go through how one can use Exec library to launch external programs from JVM- Its a wrapper over Java’s ProcessBuilder, Runtime.getRuntime().exe(). Read more…

Advertisements

Monitoring and Profiling using VisualVM-1

I executed a simple GUI application which would load the CSV file and parse it and show the contents in a JTable. When the applications started- There was a JFrame, 2 JPanels, a JLabel and a JButton with an Icon. I wanted to monitor the Heap size variations, the number of Classes, Threads details and also wanted to profile the application. So i thought of using VisualVM. The following are the results and snapshots of profiling using VisualVM. Note that the application had only one public class MainFrame in gui package. Also note that i was using the Nimbus Look and Feel.

Read more…

Vote for your IDE: Best IDE for Java Application Development

October 20, 2008 3 comments

Hi readers,

I have created this poll to get an idea of the popularity of various IDEs for Java Application developments all over the world. Do vote for your favorite IDE and also if possible leave a comment on why you voted for the IDE. Looking forward for a huge response.

Categories: General Java, IDE Tags: , ,

GlassFish RefCardz

September 8, 2008 Leave a comment
The use of GlassFish application server is growing, and having a reference card for day-to-day jobs is inevitable. Looking for a sample command to perform a specific job can take time but by using this refcard, you wont need to look for any commands or lose time searching in countless pages of manuals and administration references. This refcard covers administration, security, and performance management topics. 

Contents of RefCardz:

  • About Glassfish
  • Installing GlassFish
  • GlassFish Domains Profile
  • Common Administration Tasks
  • Clustering and Load Balancing
  • Hot tips and more… ¬†

Download the RefCardz here.Note: One has to login to DZone so as to download the RefCardz and i suppose its worth signing up.  

 

 

NetBeans IDE 6.5 Beta Released!!!!

Netbeans.org is proud to announce the availability of NetBeans IDE 6.5 Beta.Netbeans

NetBeans IDE 6.5 Beta introduces several new features, including a robust IDE for PHP, JavaScript debugging for Firefox and IE, and support for Groovy and Grails. This release also includes a number of enhancements for Java, Ruby and Rails, and C/C++ development. Java feature highlights include: built-in support for Hibernate, Eclipse project import, and compile on save.

NetBeans IDE 6.5 Beta Highlights:

PHP

  • Code Completion
  • Quick Fixes and Semantic Checks
  • FTP Support
  • Debugging with Xdebug
  • Support for popular Web Services

Read more…