which code coveragae support JDK1.7? [duplicate] - eclipse

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Testng, Emma, Cobertura, coverage and JDK 7 result in ClassFormatError and VerifyError
I have recently moved JDK6 to JDK7.In my eclipse i have installed emma plugin for code coverage.Its works fine in jdk1.6.Now I have used JDK7.But Its does not works.I have googled and searching some of code coverage tools like,
1.emma
2.Jacoco
3.cobertura
but none of them support JDK1.7.
can anyone tell me which tool support JDK1.7 for both windows and linux platform?
I think compare to other emma is better one.but it doesnot support.
Thanks in advance.

I don't use code coverage. But Google CodePro AnalytiX works with Eclipse and includes code coverage. Apparently based on EMMA, and I do not know if it works with Java 7. But it's worth a try.

According the the paper "EclEmma 2.0", Jacoco (that you looked) is supposed to work with Java 1.7.
(see all Jacoco releases here)
Java Runtime: As JaCoCo requires Java 1.5 the same minimum JRE is required for the Eclipse instance running EclEmma and the application under test.
Note that this does not apply to the Java class files under test: Any class file version ranging from Java 1.0 to 1.7 is possible.
The latest changes history mentions:
Release 0.6.0 (2012/10/06)
New Features
Full support for Java 7 including INVOKEDYNAMIC as JaCoCo is now based on ASM 4.0 (GitHub #5).
(since then, 0.6.1, 2012/12/19 has been released)

Related

Does Eclipse Neon support Java 9?

Does Eclipse Neon support Java 9? I know Eclipse Oxygen can be used but we have some constraints to not use other Eclipse than Neon.
We are using Maven for Building our J2EE project and Git for source control.
I appreciate if you can back your answer with some links/proofs. Thanks!
Does eclipse Neon support Java 9?
It depends what you mean by "support". If you mean "Is the use of Java 9 officially supported with Neon?" then the answer is no. For example, see this DZone article:
You need an Oxygen-based install of Eclipse – ensure you’re using the
R version and not milestone or integration builds.
Also, from Eclipse's site:
Users who install Eclipse Oxygen 4.7.1a are able to launch with Java 9
and get Java 9 support
But if you mean "Is it possible to get Java 9 running under Neon?" then the answer is yes. Here's a snippet from an article titled Eclipse Java™ 9 Support (BETA) for Neon from a brave soul who did it back in 2015!...
I downloaded the early access version of Java 9 JDK from java.net in
the form of a tar.gz file that I decompressed into a local directory:
/home/apps/jdk1.9.0. I made no other changes to my system.
I downloaded the Eclipse SDK 4.6 (Neon) M2 from the Eclipse Platform
downloads and decompressed it into its own directory. I made a small
change to the eclipse.ini file to make the new configuration run using
the Java 9 runtime...
Of course, that was done with an early access release of Java 9, and I wouldn't automatically assume that Neon will still work with the latest release of Java 9.
~~~~~~~~~
Update:
I just noticed this SO question titled Neon: how to run on jdk9? which may offer further useful information.

Where can I download Groovy Grails Tool Suite version 3.5.1 for Windows?

The download page at SpringSource (http://spring.io/tools/ggts/all) doesn't seem to make previous versions of GGTS available, but I want to have this version to be able to toggle between the Groovy 2.0.7 and Groovy 2.1.8 compilers.
As a potential solution, I searched for mirrors, but was unable to find any. In addition, I also checked GitHub for the GGTS source for this release so I could compile it myself, but I didn't find that either.
You can change the version directly in the URL so this one should work:
http://download.springsource.com/release/STS/3.5.1/dist/e4.4/groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-win32-x86_64.zip
I hope that helps.
The GGTS 3.5.1 32bit version is here:
http://download.springsource.com/release/STS/3.5.1/dist/e4.4/groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-win32.zip
It has grails-2.3.8, tomcat 6 and 7.

Setup GWT and eclipse on windows

I am looking to build a website in GWT top replace a couple of desktop apps we have here at work, I programmed in java 12 years ago so the code should not be a problem.
I am having problems with installation GET and Eclipse.
I seem that when you use the latest version of Eclipse (Juno 4.2) and try to use the GWt Plug in the installer process fail looking for very specific versions of libaries.
My question is "Is there a recommended version of eclipse and GWT that is not on the cutting edge and I can get to work with relative ease"
I hope this will help you for using GWT in Eclipse
Use this. Get the newest Eclipse "Juno" and choose the standard java version.
Now you need to use the proper link for the plug in. For Juno it is 4.2. If the guide in the link doesn't work, check your firewall.
Found the problem I used the standard and java versions of eclipse.. if you using the J2EE version everything runs as normal

Why do I still get errors using a switch statement with strings in Java SE7 on Lion?

I am running Mac OSX lion and have a Java project in netbeans where I would like to use string switch statements. I downloaded and installed the OpenJDK7 and I think I have configured the project to use the Java 1.7 properly.
In the Project Properties I have set JDK 7 to the platform:
It is showing up as JDK 1.7 in the Libraries section in the Projects Window.
However, I still get a compilation error saying that switch with strings is not supported in 1.6
Am I missing a step here?
To fix this, I followed the very comprehensive tutorial from the netbeans website found here:
http://netbeans.org/kb/docs/java/javase-jdk7.html
Specifically I had forgotten to set the Sources/Binary Format to JDK 7. You can do this in the bottom right of the Sources section of the Project Properties window.
If it's anything like Eclipse, the string case is a language feature, not a library feature.
Eclipse uses its own internal compiler by default and I suspect NetBeans is similar.
So you have to ensure you're using a JDK7 compiler. From a cursory search, the project settings should allow you to set an external compiler.
Are you using 7.0.1 or greater?
NetBeans 7.0.1 provide a hint if you have a chained if-else statement to take advantage of the JDK7 features. Have you downloaded it yet ? Check out screencast #35 highlighting Project Coin features in NetBeans. NetBeans 7.0.1 provide complete tooling around JDK7 and GlassFish 3.1.1 allow you to leverage JDK7 features in your Java EE 6 applications.
http://blogs.oracle.com/arungupta/entry/totd_168_string_switch_statement
Here are some steps:
Select the project you want to change source settings for.
Got to File > Project Properties...
Select the Sources Category.
Change the Source/Binary Format dropdown to whatever format you want to use.
Viola!

import checking for grails-groovy in Netbeans 7.0

I have a service - reportservice.groovy which has a big list of imports, many of them unused. Is there a quick way in Netbeans IDE 7.0 to remove the unwanted ones. (its not showing any warning/error stripes in the right column). If some plugin does this check I would like to know it.
Thanks
Priyank
Netbeans support for both grails and groovy is about 2 years old.
if you want an ide, you're better off using Eclipse with the latest groovy plugin installed, or sts from Spring
or intellij paid edition has great support as well