jetty continuation unsupported version versioning 51.0 mac java 1.7

java.lang.UnsupportedClassVersionError: org/eclipse/jetty/continuation/ContinuationSupport : Unsupported major.minor version 51.0

you have to use java 1.7 with continuation.:
see:

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html

go to eclipse->preferences->java->compiler and switch to 1.7

add and choose jre in installed jres,
go to intalled jres ->execution environment and make sure one is chosen.

go to your project and remove the old jre library and add the new one.

Posted in Uncategorized | Leave a comment

jetty java.lang.NoClassDefFoundError: Could not initialize class

If you see 2 errors…one then another when you refresh…check eclipse for the real caused by. the one in the browser isn’t the real one

Posted in Uncategorized | Leave a comment

maven junit tests stack trace

if using surefire, run with -e and look in target/surefire-reports for the stack traces

Posted in Uncategorized | Leave a comment

org/objectweb/asm/commons/EmptyVisitor jetty wtp eclipse or java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor

add the asm jar in jetty/annotations/lib to the classpath by doubleclicking the serve rin server view
and “open launch configuration” -> classpath -> add external jars

downloading asm from the site wont work. only use the one that came with jetty. add the other jar (javax.annotations something) in that dir as well

Posted in Uncategorized | Leave a comment

Verify exception android including a project into another project eclipse

go to order and export and make sure its checked off

Posted in Uncategorized | Leave a comment

adding admob jar to eclipse adding jar to android project doesn’t work

http://stackoverflow.com/questions/3642928/adding-a-library-jar-to-an-eclipse-android-project

Posted in Uncategorized | Leave a comment

Cloudwatch metrics not showing

go to dashboard view and click load all metrics before searching for it

Posted in Uncategorized | Leave a comment

maven log4j not reading log4j.xml in reasources dir

exit eclipse and clean project. must exit eclipse

Posted in Uncategorized | Leave a comment

jmockit org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null

org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null

add junit to the pom

http://code.google.com/p/jmockit/issues/detail?id=225

Posted in Uncategorized | Leave a comment

using same command line args for junit tests in eclipse

http://stackoverflow.com/questions/1556885/defaults-for-eclipse-run-configurations

Posted in Uncategorized | Leave a comment