Wednesday, 24 November 2010

Specified VM install not found: type Standard VM, name jre6

Ant wont run says "Specified VM install not found: type Standard VM, name jre6"!
Solution : delete the "C:\Users\Mujahed\workspace_helios\.metadata\.plugins\org.eclipse.debug.core\.launches\projectname build.xml.launch file"
and problem is solved"

Friday, 5 November 2010

maven eclipse error - Eclipse is running in a JRE, but a JDK is required

-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Work\Sun\SDK\jdk\jre\bin\client\jvm.dll
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx1200m
-Dsun.lang.ClassLoader.allowArraySyntax=true

Friday, 16 April 2010

Missing indirectly referenced artifact javax.transaction:jta:jar:1.0.1B:compile

I added the following to my pom.xml

<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.4.0.GA</version>


displayed error message:

Missing indirectly referenced artifact javax.transaction:jta:jar:1.0.1B:compile

This is due to licensing reason, JTA cannot be downloaded from the central repositories.

You will need to download/install the jar into your own repository manually.

Check out the Java.net maven 2 repo.
http://download.java.net/maven/2/javax/transaction/jta/1.0.1B/
Download the .jar, .jar.md5, and .jar.sha1 into you [.m2/javax/transaction/jta/1.0.1B/]
using the following:
mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=jta-1.0.1B.jar

Thursday, 8 April 2010

Maven IBM SDK java null pointer exception

When trying to install Maven 2 with IBM SDK on win vista, everything looks ok until maven archetype:generate command is issued. Once the command is issued it download a few jars and throws exception.
I had to uninstall IBM sdk from classpath env variables and delete the folder then reinstall java sdk and pointed it to classpath. Everycommand works now.

This means IBM SDK AND MAVEN are not compatible? isin't?

Tuesday, 23 February 2010

Invalid content was found starting with element 'taglib'.

Error says on eclipse
cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'. One of '{"http:// java.sun.com/xml/ns/j2ee":description, http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, http://java.sun.com/xml/ns/j2ee":distributable, "http://java.sun.com/xml/ns/j2ee":context-param, "http://java.sun.com/xml/ns/j2ee":filter, "http://java.sun.com/xml/ns/j2ee":filter-mapping, "http://java.sun.com/xml/ns/j2ee":listener, "http://java.sun.com/xml/ns/j2ee":servlet, "http://java.sun.com/xml/ns/j2ee":servlet-mapping, "http://java.sun.com/xml/ns/j2ee":session-config, "http://java.sun.com/xml/ns/j2ee":mime-mapping, "http://
java.sun.com/xml/ns/j2ee":welcome-file-list, http://java.sun.com/xml/ns/j2ee":error-page, "http:// java.sun.com/xml/ns/j2ee":jsp-config, "http://java.sun.com/xml/ns/j2ee":security-constraint, "http://java.sun.com/xml/ns/j2ee":login-config, "http://java.sun.com/xml/ns/j2ee":security-role, "http://
java.sun.com/xml/ns/j2ee":env-entry, "http://java.sun.com/xml/ns/j2ee":ejb-ref, "http:// java.sun.com/xml/ns/j2ee":ejb-local-ref, "http://java.sun.com/xml/ns/j2ee":service-ref, "http://java.sun.com/xml/ns/j2ee":resource-ref, "http://java.sun.com/xml/ns/j2ee":resource-env-ref, "http://
java.sun.com/xml/ns/j2ee":message-destination-ref, "http://java.sun.com/xml/ns/j2ee":message-
destination, "http://java.sun.com/xml/ns/j2ee":locale-encoding-mapping-list}' is expected.


Solution : is sub element of as simple as that.