facebook

Having problem running the JUnit test

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #287315 Reply

    hhlaing
    Member

    Hi – I am having a problem with running junit test from MyEclipse – I can run the test from regular free Eclipse.

    Problem – when I run the test, it complaints about not being able start the process. The problem detail is vague and shows only the following.

    Exception occurred executing command line.
    CreateProcess: “C:\Program Files\Java\jre1.6.0_05\bin\javaw.exe” -classpath “C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\video_matcher\config\spring;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\video_matcher\config\log;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\video_matcher\build;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\PDFBox-0.7.2-log4j.jar;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\activeio-core-3.0.0-incubator.jar;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\activemq-console-4.1.1.jar;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\activemq-core-4.1.1.jar;C:\Documents and Setting”

    Help please.

    Thanks,

    #287334 Reply

    Loyal Water
    Member

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

    Can you create a new project, add a new JUnit test case to it and try running it. Do you get the same error?

    #287343 Reply

    hhlaing
    Member

    Hi – Here is the installation summary. I put in a simple junit test and it runs OK.

    *** Date:
    Monday, July 21, 2008 9:01:07 AM PDT

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

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.5.1 GA
    Build id: 6.5.1-GA-20080715

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.5.1 GA
    Build id: 6.5.1-GA-20080715

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.5\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    ab8_84
    -clean
    -vm
    C:\Program Files\MyEclipse 6.5\jre\bin\javaw.exe

    #287344 Reply

    hhlaing
    Member

    And – here is the IOException that I see from the error log. Thanks. This could be known issue. How do I increase the runtimeExec to take longer param.

    !ENTRY org.eclipse.debug.core 4 120 2008-07-21 08:57:36.993
    !MESSAGE Exception occurred executing command line.
    !STACK 0
    java.io.IOException: CreateProcess: “C:\Program Files\Java\jre1.6.0_05\bin\javaw.exe” -classpath “C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\video_matcher\config\spring;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\video_matcher\config\log;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\video_matcher\build;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\PDFBox-0.7.2-log4j.jar;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\activeio-core-3.0.0-incubator.jar;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\activemq-console-4.1.1.jar;C:\Documents and Settings\Htin Hlang\My Documents\MyEclipse\workspace\backend\branches\VIDEOCRAWL_2.3\extlib\activemq-core-4.1.1.jar;C:\Documents and Settingâ€?
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:786)
    at org.eclipse.jdt.launching.AbstractVMRunner.exec(AbstractVMRunner.java:70)
    at org.eclipse.jdt.internal.launching.StandardVMRunner.run(StandardVMRunner.java:286)
    at org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate.launch(JUnitLaunchConfigurationDelegate.java:177)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:759)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    #287386 Reply

    hhlaing
    Member

    Hi Nipun – Any pointers here? I am really stuck.

    #287397 Reply

    Riyad Kalla
    Member

    Unfortunately the runtime size limitation is a platform setting, it cannot be changed from the command line… that does seem to be the problem.

    How does this work in standard Eclipse? The same code executes the Ant script in both versions. Is there any differences between the two setups? What version of Eclipse are you using with your other install?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Having problem running the JUnit test

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