Liferay Mobile Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 26 October 2007

Free XML editors

Posted on 10:05 by Unknown
XMLSpy is the one I hear about the most, but it's only free for 30 days: http://www.altova.com/products/xmlspy/xml_editor.html

Google brings up these free ones:

Cooktop: http://www.xmlcooktop.com/
XML Notepad 2007: http://www.microsoft.com/downloads/details.aspx?familyid=72d6aa49-787d-4118-ba5f-4f30fe913628&displaylang=en
Read More
Posted in | No comments

Thursday, 18 October 2007

visualvm: Introduction to VisualVM

Posted on 04:56 by Unknown
visualvm: Introduction to VisualVM: "VisualVM is a tool that provides detailed information about Java applications while they are running. It provides an intuitive graphical user interface that allows you to easily see information about multiple Java applications. Java applications are run by a Java Virtual Machine, or VM. The name VisualVM comes from the fact that VisualVM provides VM information visually. As of October, 2007 VisualVM is still under development and is therefore considered an experimental tool. All feedback and suggestions are welcome! Please send your ideas to feedback@visualvm.dev.java.net. System Requirements The VisualVM tool itself must be run with JDK 6. It can display information, however, on any Java application that is running on JDK 1.4.2 or higher. The amount of information VisualVM can provide on a Java application is determined by the version of the JDK that is being used to run that Java application (more details below)"
Read More
Posted in | No comments

Tuesday, 16 October 2007

Which class or resource is being lodaed?

Posted on 14:05 by Unknown
I was having a problem with spring not being able to parse the applicationContext.xml. I finally checked and found out the wrong applicationContext.xml was first in the CLASSPATH.

The code to do this is easy:

System.out.println(this.getClass().getClassLoader().getResource("applicationContext.xml"));


You can also find class files. To find java.lang.Object use

System.out.println(this.getClass().getClassLoader().getResource("java/lang/Object.class"));

The result is something like:

jar:file:/C:/Program%20Files/Java/j2sdk1.4.2_14/jre/lib/rt.jar!/java/lang/Object.class

Notice how the JRE version is in the output.
Read More
Posted in | No comments

Retrotranslator

Posted on 05:52 by Unknown
Retrotranslator is a Java bytecode transformer that translates Java classes compiled with JDK 5.0 into classes that can be run on JVM 1.4. Of course there is a Maven plugin.

I needed to do some unit testing of some code that uses JavaMail. Poking around I found mock-javamail that does just that. However, it is written in Java 5 and I am stuck in the prehistoric world of Java 1.4.

At first, I converted the code to 1.4 but that leaves 2 different code bases. Then I was pointed at retrotranslator that would give a 1.4 compatible jar from 1.5 source. One code base. Nice.
Read More
Posted in | No comments

Monday, 8 October 2007

Using Maven to create a one-jar executable jar.

Posted on 14:43 by Unknown
Oliver's Blog: "Using Maven2 to generate an executable JAR"

Has instructions on getting the onejar-maven-plugin to work. This is similar to what UberJar used to to do. It takes all maven dependencies and places those jars into the output jar. It does not explode the jars as the assembly plugin is wont to do. Instead, it used the one-jar package that has a classloader that knows how to look into the jar file for other jar files. It makes for a cleaner jar file that is easier to maintain later.

It does allow the filename to be specified, but does not seem to allow manifest entries, like Implementation-Version.

Thanks Oliver.
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • Clojure: lazy seq + database = bad
    In my work on topoged-hibernate I naively thought that it would be great to return a lazy-seq of the results of a query like: However, th...
  • Hexlify in Clojure
    Looking at this gist , I have created functionality similar to EMACS hexlify-buffer. In EMACS, it reads a binary file and presents two views...
  • Archiva startup error
    We started seeing this problem in Archiva: SQL Exception: An SQL data change is not permitted for a read-only connection, user or database. ...
  • LISP Cycles
    I admit it, I like LISP. There are a certain set of programming problems that it handles elegantly. I feel the same about AWK, BASH, SQL a...
  • Wicket and Guice
    Are you sick of XML? I sure am. While I really like Spring Framework, I am sick of all the XML. Writing unit tests is hard enough, but ho...
  • Flex, Spring and BlazeDS: the full stack! (Part 1)
    I've decided that it is time for me to learn a new language and I have decided on Flex. This article looks like a good place to start. ...
  • cygwin makes like better
    I use cygwin a lot and emacs a lot. As I was recovering my machine, I came across this great list of useful ideas which includes: Useful T...
  • Felipe Gaucho's Blog: The name is One, JavaONE !
    I came across a JavaOne posting that has tips fo rthis attending and for getting the most out of JavaOne. Here is a sample. Be sure and go...
  • Chapter�16.�Portlet MVC Framework
    Spring Portlet MVC applies the same principles to portlet development as the the Spring Web MVC framework applies to servlet development. F...
  • Square root of x divided by zero: The speed, size and dependability of programming languages
    A friend of mine sent me this. It is a benchmark of a bunch of languages. Turns out Java 1.4 was not so bad after all. Square root of x d...

Categories

  • 1.3.0
  • abiword
  • apache
  • archiva
  • browser
  • clojure
  • ClojureScript
  • derby
  • exception
  • java
  • javaone
  • javascript
  • jdk
  • jquery
  • lein
  • Liferay
  • page background
  • patterns
  • swank
  • watermrk

Blog Archive

  • ►  2013 (3)
    • ►  November (1)
    • ►  July (1)
    • ►  May (1)
  • ►  2012 (5)
    • ►  December (3)
    • ►  February (1)
    • ►  January (1)
  • ►  2011 (5)
    • ►  October (1)
    • ►  September (1)
    • ►  August (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (6)
    • ►  September (6)
  • ►  2009 (10)
    • ►  July (2)
    • ►  June (1)
    • ►  April (5)
    • ►  March (1)
    • ►  January (1)
  • ►  2008 (23)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (2)
    • ►  June (3)
    • ►  May (6)
    • ►  April (4)
    • ►  March (2)
    • ►  February (1)
    • ►  January (1)
  • ▼  2007 (45)
    • ►  December (7)
    • ▼  October (5)
      • Free XML editors
      • visualvm: Introduction to VisualVM
      • Which class or resource is being lodaed?
      • Retrotranslator
      • Using Maven to create a one-jar executable jar.
    • ►  September (1)
    • ►  August (4)
    • ►  June (3)
    • ►  May (15)
    • ►  April (7)
    • ►  March (3)
Powered by Blogger.

About Me

Unknown
View my complete profile