Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:19:53+00:00 2026-05-30T17:19:53+00:00

root@ubuntu:/home/dj/workspace/TestProject# ant test Buildfile: /home/dj/workspace/TestProject/build.xml test: [junit] Testsuite: TestProject [junit] Tests run: 1, Failures:

  • 0
root@ubuntu:/home/dj/workspace/TestProject# ant test
Buildfile: /home/dj/workspace/TestProject/build.xml

test:
    [junit] Testsuite: TestProject
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] 
    [junit]     Caused an ERROR
    [junit] TestProject
    [junit] java.lang.ClassNotFoundException: TestProject
    [junit]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    [junit]     at java.security.AccessController.doPrivileged(Native Method)
    [junit]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:169)
    [junit] 

BUILD FAILED
/home/dj/workspace/TestProject/build.xml:17: Test TestProject failed

Total time: 0 seconds
<project name="TestProject" basedir="." default="" >
<property name="src" value="./src" />
<property name="lib" value="./lib" />
<property name="classes" value="./classes" />
<property name="ant.project.name" value="com.megacorp.projx.util" />

    <path id="test.classpath">
      <pathelement location="${classes}" />
      <pathelement location="usr/junit.jar" />
      <fileset dir="${lib}">
        <include name="**/*.jar"/>
      </fileset>
    </path>

    <target name="test">
      <junit fork="yes" haltonfailure="yes">
        <test name="${ant.project.name}" />
        <formatter type="plain" usefile="false" />
        <classpath refid="test.classpath" />
      </junit>
    </target>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:19:54+00:00Added an answer on May 30, 2026 at 5:19 pm

    This is wrong:

    <test name="${ant.project.name}" />
    

    Here you should set the name of the junit-class you want to test, and not the name of the ant project.

    E.g.:

    <test name="myorg.MyTest" />
    

    Links:
    Documentation for junit task: have a look at the examples at the Bottom

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the error when gem install bundler: root@ubuntu:/home/dtt# cd /vol/www/emclab/current root@ubuntu:/vol/www/emclab/current# gem install
[root@234571-app2 git]# ./test.py File ./test.py, line 4 with open(/home/git/post-receive-email.log,'a') as log_file: ^ SyntaxError: invalid
I have two websites running on my own root server (ubuntu/nginx/php-fpm). Now I want
I am trying to read a file(temp.txt) placed under /root directory on remote host(ubuntu)
root@everton-laptop:/opt/tinyos-1.x/apps/Blink# make pc compiling Blink to a pc binary ncc -o build/pc/main.exe -g -O0
I have in my url patterns, urlpatterns += patterns('', (r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/tipu/Dropbox/dev/workspace/search/images'}) In
I'm using eclipse IDE Galileo fine on Ubuntu 10.04.(with JRE in the eclipse root
I'm attempting to setup svn on my home network on an Ubuntu server box.
I'm running Ubuntu 11.10 and have run sudo apt-get install jenkins to install Jenkins
I am trying to run an Android emulator on Ubuntu 11.10 x64 with Eclipse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.