Running java program as Windows service

java-service Running programs as windows service is often a requirement in programming and when it comes to Java support there are only very few libraries available. Most of them use native APIs and mostly written in C and often needs a java executable stub for Windows. There are only very few that is quite simple to understand and can be used with less effort. Lets see some of the available APIs for Java Service which can be quite handy.

Read More …

Popularity: 10% [?]

November 12th, 2008 | Leave a Comment

How to remove java older versions?

raproducts One of the most important thing for any Java programmer is to developing, compiling and running the program under same JRE and JVM version. Sometimes multiple versions of JRE versions in the system may lead to Java runtime conflicts while running java applications. If one has enabled the Java Autoupdate the JRE gets updated automatically and one can find multiple versions of JRE sitting inside the Windows JRE folder. Sometimes people often don’t know how to remove the older versions cleanly.

Read More …

Popularity: 9% [?]

November 10th, 2008 | Leave a Comment

Junit best practices

junit In any SDLC (Software Development Life Cycle) testing plays a major role to make the end result defect free. Defect free is bit harsh to say from customers point of view so lets write it as end result with less defects. Not every software product that comes out today. is defect free and to over come this scenario test driven environment becomes inevitable. Unit testing (testing individual units of code) is very important irrespective of the programming language the application is being developed. When it comes to java,Junit is the widely used open source unit testing framework.

Read More …

Popularity: 8% [?]

November 3rd, 2008 | Leave a Comment

Optical Character Recognition in Java

ocr_scanner Optical Character Recognition popularly known as OCR, is a technology that helps in translating images carrying text (printed text Images) in to text characters. OCR uses pattern recognition to extract the text out of the images and this technology can help you to scan your text book to a editable document in your computer with ease. OCR has now part of commercial business extending its hands in the line of data entry and bill processing giving higher work productivity.  There are lot of software available in the market to do the job but when it comes to programming in C, C++ or especially in java one can find limited libraries to achieve the same programmatically.

Read More …

Popularity: 9% [?]

October 29th, 2008 | Leave a Comment

How Java Class files are different ?

JavaYesterday one of my friend asked me a question “What is the difference between java class file and c++ class file? What will happen if I provide c++ class file to JVM ?”. The question is really a good question so I thought of writing this article to explain the Myths of java class file and a small comparison with malicious or class files from C++.  These class files are completely different from byte code to class loading and linking. Okie lets get down to business. Now answering the question mentioned above, Java class files are specifically designed for JVM (Java Virtual Machine) and all the .class files will be loaded and safely executed inside JVM.

Read More …

Popularity: 9% [?]

October 24th, 2008 | Leave a Comment