permaculture playing cards*
The moose likes IDEs, Version Control and other tools and the fly likes Error launching JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Error launching JUnit" Watch "Error launching JUnit" New topic
Author

Error launching JUnit

camelia codarcea
Ranch Hand

Joined: May 08, 2007
Posts: 36
hello everybody,

I am currently working on a project with Hibernate and Spring, and I have made some JUnit classes to test the interaction with database.
When I try yo run the test: right click-> run as-> JUnit test, I get the following error:

"The input type of the launch configuration does not exist".

Does anybody know what are the configurations? I haven't done any configurations, I just created a new JUnit class that derives from TestCase

thank you


SCJP 5.0 .... 97%
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

So this is in an IDE? Eclipse, maybe? It sounds like an IDE configuration issue, nothing to do with JUnit, really. I'm going to move this to our "Version Control, IDEs, and other Tools" forum.


[Jess in Action][AskingGoodQuestions]
camelia codarcea
Ranch Hand

Joined: May 08, 2007
Posts: 36
yes, I get th error enside Eclipse IDE.

I face searched the net, but I couldnt find any usefull information.
I have the junit-3.8.1.jar, I have put it in the Java Build Path... do I have to make other configurations ?

thank you
greg buela
Ranch Hand

Joined: Sep 04, 2007
Posts: 71
This has happened to me today, and I've found what was wrong.
I had created a folder where I put my test classes (which were developed in another IDE). The problem is that this folder wasn't created as a "source folder".
You can easily tell whether your test folder is a source folder: in the package explorer, check out the icon for that folder. It should be the same as for the src folder.
So if that was your problem too, right click on the project node, select New... and then Source folder. Then just put your tests in that folder.


SCJP 1.5
 
 
subject: Error launching JUnit
 
Similar Threads
maven and Junit Tests
org.springframework.beans.factory.BeanCreationException
Named TestSuite gives error in JUnit_4.1 used w/Eclipse
Run as Junit Test case
Ant 1.7 + Junit 4 problems