0

Why this other class file is running instead of the one I clicked on please help. My Process is included in the gif, I can't tell why this is occurring.

weston
  • 54,145
  • 21
  • 145
  • 203
Help
  • 15
  • 1
  • 8
  • It's not running it, it's compiling it and the whole application must compile before you can run tests. – weston Apr 03 '17 at 15:33
  • Must I remove the other folders / work files ? & Upon doing so I got this error : objc[3605]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java (0x1051c24c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10528c4e0). One of the two will be used. Which one is undefined. – Help Apr 03 '17 at 15:34
  • It sounds like a bit of a mess. I don't have enough info to help, my best advice would be to go back to the last working version and go forward from there. – weston Apr 03 '17 at 15:36
  • What did you use to make the gif by the way? – weston Apr 03 '17 at 15:39
  • ScreenFlow , and so its a jdk problem ? apart from the broken class file ? – Help Apr 03 '17 at 15:41
  • I never said that it's a JDK problem. It's definitely your problem. Don't ignore the errors. They tell you the exact problem. Method `CostPanel` has no return type. But I think you copied and renamed a class without renaming its constructor. – weston Apr 03 '17 at 15:48
  • I deleated those files to get rid of the problem but i was talking about this: objc[3605]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/‌​Home/bin/java (0x1051c24c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/‌​Home/jre/lib/libinst‌​rument.dylib (0x10528c4e0) – Help Apr 03 '17 at 15:50
  • 2
    This has gone beyond your original question. Each time you fix one problem and get another, always go back to google, you're very unlikely to be the first one to have a problem. – weston Apr 03 '17 at 15:55

3 Answers3

1

This usually happens because before running the test class, the IDE needs to build the project, it found a class that has error and can not complete the test. You can try to fix the ButtonPanel.java class and try to run the test again

JUAN CALVOPINA M
  • 3,695
  • 2
  • 21
  • 37
1

I had a similar problem. Don't click on the run button. Right click on the class you want to run and click run.

0

It's not running it, it's compiling it and the whole application must compile before you can run tests. You must fix the errors to continue.

Don't ignore the errors. They tell you the exact problem. Method CostPanel has no return type. But I think you copied and renamed a class without renaming its constructor.

weston
  • 54,145
  • 21
  • 145
  • 203