facebook

JUnit get when run

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #295376 Reply

    nguyenc1
    Member

    Hello,

    I could not run JUnit in my Eclipse. I get the <Terminated> without any further error message to trace and would appreciate any responses.

    Thanks,
    Chris

    #295396 Reply

    Loyal Water
    Member

    Chris,
    Can you check if any messages related to this issue are logged under <workspace>/.metadata/.log file?

    Also, can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    Could please list the steps you followed so that I can try to replicate this issue at my end.

    #295426 Reply

    nguyenc1
    Member

    Good morning Nipun,
    Thank you for the quick response. I looked at the .log and find nothing related to JUnit. I also try to run it again and see it records anything but it didn’t. Below is the message from MyEcilpse > Installation…
    Hope to hear from you again soon. Thanks.

    *** Date:
    Monday, March 2, 2009 9:42:43 AM PST

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.0
    Build id: 7.0-20081201

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\client\jvm.dll

    #295431 Reply

    Loyal Water
    Member

    Could please list the steps you followed so that I can try to replicate this issue at my end.

    #295433 Reply

    nguyenc1
    Member

    Oh I forgot to list the steps, so you could replicate the problem…
    Basically, I checked out the project from CVS and there’s already a JUnit folders with all the available test cases. I just picked one, right click and run as JUnit Test… then I got the only <Teminated> message. My co-worker has the same installations (JDK, MyEclipse) and configuration like mine and he’s able to run it. We spends a good day to compare note but could not come up with anything.

    #295464 Reply

    Loyal Water
    Member

    Can you get your friend to export his project using File > Export > Archive, and send it to you, and then you import it using File > Import > Existing Project, and see if you can run JUnit. Let me know what result you get.

    #295481 Reply

    nguyenc1
    Member

    Hi Nipun,
    I did your suggestion of Export and Import the project, but still get the <Teminated> message.

    #295543 Reply

    Loyal Water
    Member

    If that’s the case, then there is probably a problem with the launch configuration used to run the Ant script OR the Ant configuration. Can you go to Windows > Pref > Ant and hit the “Restore Defaults” button, Now go to Run > External Tool > External Tool Configuration and erase the run configurations for the Ant scripts, and then try and re-run them.

    If NONE of that works, compare the Ant preferences with your buddies and even compare the Ant run configurations.

    #295601 Reply

    nguyenc1
    Member

    Hi Nipun,
    I think you are correct in term of “a problem with the launch configuration…” because I’ve created a simple HelloWorld project and able to run JUnit there.
    I went to Windows > Pref > Ant and hit the “Restore Defaults” button
    I could not delete the run configurations because I don’t have anything at Run > External Tool > External Tool Configuration

    We did a comparation of our Ant preferences but there are not much to compare…
    Any other suggestions?

    Thanks,
    Chris

    #295701 Reply

    Loyal Water
    Member

    Chris,
    I have run out of ideas. This is a very strange issue. I’ll check with the dev team and let you know if they have any inputs on this.

    #307531 Reply

    Ron Perich
    Member

    We are having a similar issue with our team’s project.

    Two of us can run JUnit within our project and two of us cannot. One of the developers narrowed down a symptom/cause of the problem, but don’t know how to correct.

    She started removing jars from the project until JUnit started working. When she got to adding them back in, one at a time, everything kept working.

    Suddenly, on the addition of the 41st jar file, the JUnit stopped working. It doesn;t matter what the 41st jar file is, JUnit will not work.

    I hope you have some ideas on this. We are absolutely baffled.

    #307532 Reply

    Ron Perich
    Member

    We are having a similar issue with our team’s project.

    Two of us can run JUnit within our project and two of us cannot. One of the developers narrowed down a symptom/cause of the problem, but don’t know how to correct.

    She started removing jars from the project until JUnit started working. When she got to adding them back in, one at a time, everything kept working.

    Suddenly, on the addition of the 41st jar file, the JUnit stopped working. It doesn;t matter what the 41st jar file is, JUnit will not work.

    I hope you have some ideas on this. We are absolutely baffled.

    #307760 Reply

    Hi,

    I have escalated this to the dev team member, they will get back to you on this.

    Thanks,
    Chakri.

    #307771 Reply

    Brian Fernandes
    Moderator
Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: JUnit get when run

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in