Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem using JUnit in eclipse
Problem using JUnit in eclipse [message #71412] Wed, 11 June 2003 18:17 Go to next message
Eclipse UserFriend
Originally posted by: lengi.gmx.ch

Hello

I hope i'm in the right newsgroup. Otherwise i would appreciate every
hint ;-)

I'm in trouble using Junit with eclipse.
Since i'm not using eclipse for long but have knowledge of other IDE, i
found it
easy first, to use this great framework with such a good IDE.

Now what my situation is:
OS: Win2k
Eclipse-Version: 2.0.2
Junit-Version: 3.8.1
CLASSPATH=(...)C:\java2sdk\lib;C:\java2sdk\jre\lib;C:\junit3 .8.1\junit.jar;.
JAVA_HOME=C:\java2sdk
Path=(...)C:\java2sdk\bin;C:\junit3.8.1

And what my problem is:
General work with eclipse is ok (creating Classes, TestCases, TestSuites,
"Run As Junit" finds my Tests without trouble).
But when i Run the Test, the Output in the Console is the following:
----------------------console-ouput------------------------- --------
Usage: javaw [-options] class [args...]
(to execute a class)
or javaw -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
----------------------/console-ouput------------------------ ---------


What i looked for:
It seemed to me as a configuration problem
(perhaps javaw don't get any parameters?)
I've googled around, found nobody having this trouble.
Looked in different FAQ's and Forums without success.

What i think now:
Perhaps i have to enter the Right Parameters in the Run-Configuration of
my Tests?
But what do they look like?

For any Help on my Problem i'm very thankful in advance.

Greetings

Lemy
Re: Problem using JUnit in eclipse [message #71514 is a reply to message #71412] Wed, 11 June 2003 22:07 Go to previous message
Eclipse UserFriend
Originally posted by: lengi.gmx.ch

Hello again.

Not to boring you. I just solved my Problem.
Installed Version 2.1. and everything works fine.

Lemy

Stefan Lengacher wrote:
> Hello
>
> I hope i'm in the right newsgroup. Otherwise i would appreciate every
> hint ;-)
>
> I'm in trouble using Junit with eclipse.
> Since i'm not using eclipse for long but have knowledge of other IDE, i
> found it
> easy first, to use this great framework with such a good IDE.
>
> Now what my situation is:
> OS: Win2k
> Eclipse-Version: 2.0.2
> Junit-Version: 3.8.1
> CLASSPATH=(...)C:\java2sdk\lib;C:\java2sdk\jre\lib;C:\junit3 .8.1\junit.jar;.
>
> JAVA_HOME=C:\java2sdk
> Path=(...)C:\java2sdk\bin;C:\junit3.8.1
>
> And what my problem is:
> General work with eclipse is ok (creating Classes, TestCases, TestSuites,
> "Run As Junit" finds my Tests without trouble).
> But when i Run the Test, the Output in the Console is the following:
> ----------------------console-ouput------------------------- --------
> Usage: javaw [-options] class [args...]
> (to execute a class)
> or javaw -jar [-options] jarfile [args...]
> (to execute a jar file)
>
> where options include:
> -client to select the "client" VM
> -server to select the "server" VM
> -hotspot is a synonym for the "client" VM [deprecated]
> The default VM is client.
>
> -cp -classpath <directories and zip/jar files separated by ;>
> set search path for application classes and resources
> -D<name>=<value>
> set a system property
> -verbose[:class|gc|jni]
> enable verbose output
> -version print product version and exit
> -showversion print product version and continue
> -? -help print this help message
> -X print help on non-standard options
> -ea[:<packagename>...|:<classname>]
> -enableassertions[:<packagename>...|:<classname>]
> enable assertions
> -da[:<packagename>...|:<classname>]
> -disableassertions[:<packagename>...|:<classname>]
> disable assertions
> -esa | -enablesystemassertions
> enable system assertions
> -dsa | -disablesystemassertions
> disable system assertions
> ----------------------/console-ouput------------------------ ---------
>
> What i looked for:
> It seemed to me as a configuration problem
> (perhaps javaw don't get any parameters?)
> I've googled around, found nobody having this trouble.
> Looked in different FAQ's and Forums without success.
>
> What i think now:
> Perhaps i have to enter the Right Parameters in the Run-Configuration of
> my Tests?
> But what do they look like?
>
> For any Help on my Problem i'm very thankful in advance.
>
> Greetings
>
> Lemy
>
Previous Topic:More on problems importing binary projects
Next Topic:Problem in importing binary projects
Goto Forum:
  


Current Time: Thu Apr 25 11:06:34 GMT 2024

Powered by FUDForum. Page generated in 0.03103 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top