My two cents about software development on the web


Unsupported major.minor version 51.0

During deployment of an EAR file on JBoss 6.0 I received this error (the sample is not really what I read on log file)

<code>java.lang.UnsupportedClassVersionError: test_hello_world : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source)</code>

Looking for a solution I’ve found the answer on StackOverflow.

Note to self:

The version number shown describe which version if Java was used to compile the code.

The reported major numbes are:

<code>J2SE 7 = 51, J2SE 6.0 = 50, J2SE 5.0 = 49, JDK 1.4 = 48, JDK 1.3 = 47, JDK 1.2 = 46, JDK 1.1 = 45 </code>

(source: )


you have to change the version of java in facet of your project


Create a JBoss AS 7 appliance with VirtualBox

In this tutorial we will demonstrate how to create in a matter of minutes a JBoss AS 7.1.1 appliance designed around a Linux distribution. The software we will use for this purpose is Oracle’s Virtual Box.

When you are done you can turn off your VM. Now we will export our Appliance. What does it mean ? simply that you can create your own Linux VM distribution which already contains a set of applications installed on it (in our case JDK and JBoss AS 7) so that we can reuse it how many times we want it.

source: Create a JBoss AS 7 appliance with VirtualBox – jboss configuration – JBoss application server tutorials.