ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knuplesch, Juergen" <Juergen.Knuple...@icongmbh.de>
Subject fork, JUnit and Linux
Date Wed, 09 Nov 2011 14:49:52 GMT
Hello,

 

when I run a <junit> task with

fork="yes"

under LINUX the test does not even start:

 

[junit] Exception in thread "main" java.lang.NoClassDefFoundError: 

    [junit] Caused by: java.lang.ClassNotFoundException: 

    [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] Could not find the main class: .  Program will exit.

    [junit] Test fest.basic.DOPELoginTest FAILED (crashed)

    [junit] Exception in thread "main" java.lang.NoClassDefFoundError: 

    [junit] Caused by: java.lang.ClassNotFoundException: 

    [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] Could not find the main class: .  Program will exit.

    [junit] Test fest.basic.DOPEUserSettingsTest FAILED (crashed)

 

 

The same code is running fine, when I use Windows.

When I set fork="no" it works also with LINUX.

What do I need to set up, to use <junit> and fork="yes" with Linux?

 

Jürgen

-- 

Jürgen Knuplesch                    www.icongmbh.de <http://www.icongmbh.de/> 

icon Systemhaus GmbH                Tel. +49 711 806098-275

Sophienstraße 40                    juergen.knuplesch@icongmbh.de

D-70178 Stuttgart                   Fax. +49 711 806098-299

 

Geschäftsführer: Uwe Seltmann

HRB Stuttgart 17655

USt-IdNr.: DE 811944121 

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message