-1

When I run my Java app using Ant, I get this error:

[java] Unrecognized option: -Xdock:name=ApplicationName
[java] Error: Could not create the Java Virtual Machine.
[java] Error: A fatal exception has occurred. Program will exit.
[java] Java Result: 1
Chad Nouis
  • 6,861
  • 1
  • 27
  • 28
user3347598
  • 79
  • 1
  • 2
  • 9

1 Answers1

1

It seems that this parameter is MacOSX specific. For example, when starting some program on a Windows JVM using this parameter, I get the same error.

Community
  • 1
  • 1
user140547
  • 7,750
  • 3
  • 28
  • 80
  • I think that the source that i am using where developped using a mac. But i am currently on ubuntu. Is there any solutions ? – user3347598 Oct 04 '16 at 21:06
  • 1
    @user3347598: Well a simple solution may be just to remove it. Otherwise you can parametrize your ant script so that option only used with OS X. – user140547 Oct 04 '16 at 21:11