-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: maven, hibernate, junit and CreateProcess error=87
PostPosted: Tue Apr 26, 2011 9:00 pm 
Newbie

Joined: Tue Apr 26, 2011 8:38 pm
Posts: 1
did anybody meet this before? it looks so simple but i just can not get rid of it:

the simplest junit:
@Test
public void findOne() {
Assert.assertNotNull("aaa");
}

the almost simplest POM:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.6.3.Final</version>
<scope>compile</scope>
</dependency>
</dependencies>

the junit test even has nothing to do with the hibernate. but once i add the dependence and run as>junit test, i got this in eclipse:

Exception occurred executing command line.
Cannot run program "D:\cyl\2.library\jdk\jdk1.6.0_24\bin\javaw.exe" (in directory "D:\cyl\2.library\workplace\c"): CreateProcess error=87, The parameter is incorrect

but if i pom.xml>run as>maven test, everything is fine
or if i remove the hibernate dependency, both "run as" are fine.

how can this happen???


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.