Category Archives: Core Java

Eclipse Unlimited Console

Hello Readers, Not being able to see entire console of your program can be annoying. Eclipse by default allows 80K characters in console. It will show last 80K characters. While redirecting the logs to a file is a viable option, … Continue reading

Rate this:

Posted in Core Java, Eclipse | Tagged , , | Leave a comment

Eclipse Display Workspace name

Hello Readers, In Eclipse you can have the workspace name displayed on window title at top left. It is helpful when you have multiple workspaces open on your workstation. So that you don’t write right code in wrong workspace 🙂 … Continue reading

Rate this:

Posted in Core Java, Eclipse | Tagged , , | Leave a comment

Java XPath Evaluation Example

Hello Readers, It’s been a while since my last post. This one will show an example of reading element/attribute content from XML file using XPath utility that comes with Java API. Below is the XML I used to demo: Let’s … Continue reading

Rate this:

Posted in Core Java, XML | Tagged , , , , , | Leave a comment

Java Executor Framework Example

Hello Readers, This post will show an example of writing multi-threaded program using Executor framework introduced in Java 1.5. Before making  your program multi-threaded, you should define task boundaries. If you are doing n independent tasks sequentially, then using multiple … Continue reading

Rate this:

Posted in Core Java | Tagged , , , , , | 8 Comments

Java Decompiler in Eclipse

Respected Readers, This post will run through steps for setting up JadClipse in Eclipse. It is a very handy decompiler and can be mighty useful. Steps: 1) Download JadClipse jar and put it in Eclipse pluigins directory. It can be … Continue reading

Rate this:

Posted in Core Java | Tagged , , , , , , , , | 5 Comments

Java Heap Memory Analyzer

Readers, OutOfMemoryError is not unknown to Java developers. Increasing the heap size almost always gets you past it. Recently I faced the same issue when processing millions of records and increasing heap size (1.3 GB) just got me around it. But … Continue reading

Rate this:

Posted in Core Java | Tagged , , , , , , , , | Leave a comment

Convert OLE to Readable format

Respected Readers, This post describes algorithm for converting OLE time format in to readable time format. I was parsing this new file format that stored date in OLE time format. It looks like a double type. With some inputs from … Continue reading

Rate this:

Posted in Core Java, Oracle | Tagged , , , | 3 Comments