NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

"Forked Java VM exited abnormally" when running "Test File" on Maven project

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Halvor Platou
Posted via mailing list.





PostPosted: Tue May 31, 2011 5:25 pm    Post subject: "Forked Java VM exited abnormally" when running "Test File" on Maven project Reply with quote

I’m not sure if this is an issue with NetBeans/Maven or maven-surefire-plugin, but when I select “Test File” without code changes in source(only test source), the “java.library.path” used by surefire-plugin is wrong.

There are a few conditions for this to happen:

<![if !supportLists]>1. <![endif]>pom.xml contains configuration of maven-surefire-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.8.1</version>
<configuration>
<argLine>-Djava.library.path="${project.build.directory}"</argLine>
</configuration>
</plugin>
<![if !supportLists]>2. <![endif]>The “${project.build.directory}” contains a white-space in the path


When select “Test File” without code-changes in the source it seems that NetBeans somehow adds the class-file of the test-file to java.library.path without actually running maven. Is this correct? It also seems it will try to merge java.library.path with what sure-fire-plugin has configured, without taking into account that this path could contain a white-space.

Anyone know how this actually work?

Halvor Platou
Technical Coordinator CyberSea Technology
Marine Cybernetics
Vestre Rosten 77, Trondheim, Norway
www.marinecyb.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo