Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Cross platform Java Decompiler with Eclipse plugin

JD-GUI is a free for non-commercial standalone GUI for displaying the source of ".class" files giving you access to methods and fields etc. Whats best is that this is available for Mac, Linux, and Windows.

The stand alone app is just one of 3 parts in a suite of tools. The other two being an eclipse plugin called "JD-Eclipse" and "JD-Core" which is a library that can "be used to recover lost source code and explore the source of Java runtime libraries"

http://java.decompiler.free.fr/

Comments Comments (0) | Print Print | Send Send | 2415 Views

My blog has moved

Please update your bookmarks and feeds for my site.

I now have a Mango Blog at:

http://www.andyjarrett.com/blog

Feed URL: http://feeds.feedburner.com/andyjarrett

Comments Comments (0) | Print Print | Send Send | 1261 Views

PDF Form filling with java and iText

I've been looking at PDF form filling with Java so I can use it with Railo and I came across iText, a Free Java-PDF Library.

I couldn't find a simple explanation of populating a PDF form in java so my below example assumes you have a PDF called "SimpleRegistrationForm.pdf" and it has 4 fields in it: name, address, postal_code, and email The completed form will be saved to a file called filledOutForm.pdf

view plain print about
1/**
2 *
3 */

4
5import java.io.FileOutputStream;
6import java.io.IOException;
7
8import com.lowagie.text.DocumentException;
9import com.lowagie.text.pdf.AcroFields;
10import com.lowagie.text.pdf.PdfReader;
11import com.lowagie.text.pdf.PdfStamper;
12
13/**
14 * @author andyjarrett
15 *
16 */

17public class SimpleRegistrationForm {
18
19    /**
20     * @param args
21     * @throws IOException
22     * @throws DocumentException
23     */

24    public static void main(String[] args) throws IOException, DocumentException {
25
26            PdfReader reader = new PdfReader(
27                    "/dir/to/pdf/SimpleRegistrationForm.pdf");
28            PdfStamper filledOutForm = new PdfStamper(reader, new FileOutputStream(
29                    "/dir/to/pdf/filledOutForm.pdf"));
30            
31            AcroFields form = filledOutForm.getAcroFields();
32            form.setField("name", "Andy Jarrett");
33            form.setField("address", "1 infinite road");
34            form.setField("postal_code", "1SW");
35            form.setField("email", "mail@example.com");
36
37            filledOutForm.close();
38    }
39
40}

Comments Comments (2) | Print Print | Send Send | 1973 Views

Fridays Joke: The Blackboard

Another Friday has come around. Its been a long but good week for me, i've been on a 5 day Mastering IBM Websphere course ... I'm no master yet and my head is ready to blow up with terms, patterns and accronyms flying out buts its good. I think these courses are good, especially for any CF developer as it gives you a great understanding in how a large strongly typed language web project has to come together (and makes you appreciate how easy CF makes it too). Also the Websphere Application Developer (Eclipse based tool) is pretty cool (though it should be for £3000 per seat) but I've had no luck trying to install on a Mac, has anyone out there done it?? I've got the WAS Community Edition server going which I'll post about later. Anyway, the majority of you are here for the joke, enjoy!

One day when the teacher walked to the black board, she noticed someone had written the word 'penis' in tiny small letters. She turned around, scanned the class looking for the guilty face. Finding none, she quickly erased it, and began her class.

The next day she went into the room and she saw, in larger letters, the word 'penis' again on the black board. Again, she looked around in vain for the culprit, but found none, so she proceeded with the day's lesson.

[More]

Comments Comments (1) | Print Print | Send Send | 2580 Views

Multiple Eclipse Installations and Eclipse RC3

I was sure i blogged this but a search says different. Anyway Javalobby has a detailed thread on how to Managing Multiple Eclipse Installations.

The reason i bring this up is that after my upgrade to Eclipse RC3 yesterday Eclipse had trouble seeing my pluggins. To get this to work i had to remove site.xml from my main default Eclipse folder so the only file it had in there was the .eclipseextension. After that all seemed fine.

So far the upgrade seems to be working fine with obvious changes to the icon, splash screen and new loader progress bar at the start.

Comments Comments (0) | Print Print | Send Send | 2700 Views

Open source Java by Apache

ZDnet is reporting that Apache is going to create, from scratch, an open source implementation of J2SE, and has Sun's approval to do so

The implementation which is (at the moment) welcomed by Sun, might even have Sun helping them out. Though don't get too excited analysts are expecting it to take 3-5 years

Comments Comments (0) | Print Print | Send Send | 1936 Views

FeedMine, A Web Developer Aggregator

I've just came across Feedmine via my referers which seems to be a aggregator for Web developers and it cover topics like CF , PHP, Linux etc. I don't know anything else about the site as it seems to be lacking in any information as you'll see.

Comments Comments (0) | Print Print | Send Send | 1558 Views

Under the Jrun Hood

There is a new article over at ColdFusion Developer's Journal called Confronting JRun - Who's Afraid of J2EE?.

It takes you into the Jrun engine sitting underneath your CFMX Enterprise edition and exposes whats there and what it means. Sample headings:

  • Launching JRun via the Command Line
  • The JRun Management Console
  • Controlling Servers
  • Adding and Deleting Servers
  • Multiple Server Instances
  • Installing a Separate ColdFusion Instance

Comments Comments (0) | Print Print | Send Send | 1193 Views

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .