ERROR: Mixlib::ShellOut::ShellCommandFailed


I am trying to execute jar file from window 2012 r2 chef-workstation to chef-node using below recipe:

execute 'eam-hotfix-' do
   cwd "C:\Software"
   command "java -jar eam-hotfix-"
   action :run

But I am getting below error:

[2018-08-29T18:54:41-07:00] ERROR: Remote chef-client error follows:
[2018-08-29T18:54:41-07:00] ERROR: Mixlib::ShellOut::ShellCommandFailed: execute[eam-hotfix-] (install_EAM::run_hotfix line 19) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of java -jar eam-hotfix- ----
STDOUT: Error occurred during initialization of VM
Could not reserve enough space for object heap
---- End output of java -jar eam-hotfix- ----
Ran java -jar eam-hotfix- returned 1