Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse runner fails with 6.9.13 #1160

Closed
ben-manes opened this issue Sep 18, 2016 · 5 comments
Closed

Eclipse runner fails with 6.9.13 #1160

ben-manes opened this issue Sep 18, 2016 · 5 comments

Comments

@ben-manes
Copy link
Contributor

I tried upgrading to 6.9.13 and received the following error in Eclipse,

Exception in thread "main" java.lang.RuntimeException: Can't recognize the TestNG version on classpath. Please make sure that there's a supported TestNG version (aka. >= 6.5.1) on your project.
at org.testng.remote.RemoteTestNG.getTestNGVersion(RemoteTestNG.java:123)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:38)

I checked for updates (none) and restarted Eclipse in case previous weren't applied. Unfortunately no luck. The installation details for the plugin are,

TestNG 6.9.12.201607091356 org.testng.eclipse.feature.group Cedric Beust

6.9.12 works great, so I'll stick to that until this is resolved. Thanks!

@juherr
Copy link
Member

juherr commented Sep 18, 2016

Please, open the issue on https://github.com/cbeust/testng-eclipse/

@ben-manes
Copy link
Contributor Author

Oops, thanks!

@missedone
Copy link
Contributor

hi @juherr
there are two issues with 6.9.13:

  1. the DEV-SNAPSHOT does not get correctly substituted
  2. the jar was built with jdk8 rather than jdk7
// Compiled from Version.java (version 1.8 : 52.0, super bit)
public class org.testng.internal.Version {

  // Field descriptor #15 Ljava/lang/String;
  public static final java.lang.String VERSION = "DEV-SNAPSHOT";

  // Method descriptor #18 ()V
  // Stack: 1, Locals: 1
  public Version();
    0  aload_0 [this]
    1  invokespecial java.lang.Object() [1]
    4  return
      Line numbers:
        [pc: 0, line: 3]

  // Method descriptor #22 ()Ljava/lang/String;
  // Stack: 1, Locals: 0
  public static java.lang.String getVersionString();
    0  ldc <String "DEV-SNAPSHOT"> [3]
    2  areturn
      Line numbers:
        [pc: 0, line: 8]

@ben-manes
Copy link
Contributor Author

ben-manes commented Sep 19, 2016

Linking to testng-team/testng-eclipse#281

@juherr
Copy link
Member

juherr commented Sep 19, 2016

@missedone
Ok, duplicate of #1159 then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants