# Error when trying to run Client.bat

**URL:** <https://forum.certara.com/t/error-when-trying-to-run-client-bat/136>\
**Category:** Troubleshooting and Problems\
**Created:** [June 8, 2010, 3:38pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136 "2010-06-08T15:38:01Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergiy](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/sergiy/32/2553_2.png) [@Sergiy](https://forum.certara.com/u/Sergiy)\
**Post date:** [June 8, 2010, 7:15pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/1 "2010-06-08T19:15:38Z")

</div>

First, check with your company IT team if you have any user account restrictions on your computer.

---

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://forum.certara.com/u/tim)\
**Post date:** [June 8, 2010, 8:12pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/2 "2010-06-08T20:12:07Z")

</div>

Hi,

Additionally, you can download and save [this debug file](http://www.opencdisc.org/downloads/client-debug.bat) in the Validator’s main directory and when you run it it should print out the full reason why the Java Virtual Machine could not be created. The issue is likely due to environment restrictions like Sergiy suggested, or because of limitations of your hardware (Not enough free RAM to support both the Validator with its default settings and the processes you currently have running, for example).

Once we determine what the specific problem is, we’ll help you find a solution so you can get everything up and running.

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![MFriedline](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MFriedline](https://forum.certara.com/u/MFriedline)\
**Post date:** [June 8, 2010, 8:21pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/3 "2010-06-08T20:21:13Z")

</div>

Thanks,

I did check with IT first and they were pretty stumped. I ran the program you sent after saving it to the location with the other files and it says “Unable to access jarfile lib/validator-gui-1.1.jar”.

The only thing I could think of is that I downloaded the newest version of Java but didn’t install it (since i don’t have admin privaleges). Then when I checked the path with the IT guy, I think I entered the path for the newest uninstalled version of java.

Thanks for your help!

Maria

---

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://forum.certara.com/u/tim)\
**Post date:** [June 9, 2010, 4:12am UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/4 "2010-06-09T04:12:49Z")

</div>

Hi Maria,

Based on that message, it sounds like the client.bat is not resolving the current directory correctly. There is a manual fix for this that we’ve suggested to a few people in the past, but I’d like to see if it’s a situation we can accommodate for on our end. When you get a chance, please try downloading [this new batch file](http://www.opencdisc.org/downloads/client-correcting.bat) and seeing if running it will correctly launch the Validator.

If that fixes the problem, we’ll update the client.bat file in future releases accordingly.

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![MFriedline](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MFriedline](https://forum.certara.com/u/MFriedline)\
**Post date:** [June 9, 2010, 8:48pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/5 "2010-06-09T20:48:56Z")

</div>

Hi Tim,

The new batch file didn’t work – it gave the same error message. I am trying to get in touch with IT so I can have admin access to the path thing - I think there is a mistake there. After I get that fixed, I will let you know if it is not working.

Thanks,

Maria

---

<div class="post-metadata">

**Author:** ![Richard](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@Richard](https://forum.certara.com/u/Richard)\
**Post date:** [June 11, 2010, 4:29pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/6 "2010-06-11T16:29:37Z")

</div>

I had this same problem and resolved it by removing the -XX:+HeapDumpOnOutOfMemoryError option from the client.bat file.

I also got the “Unable to access jarfile…” error when I downloaded the client-correcting.bat file, but that’s because I was still working with version 1.0.1. Downloading v1.1 (or changing the name of the referenced jarfile from validator-gui-1.1.jar to validator-gui.1.0.1.jar) fixed that problem

---

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://forum.certara.com/u/tim)\
**Post date:** [June 11, 2010, 7:09pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/7 "2010-06-11T19:09:29Z")

</div>

First off, thank you to Richard for spotting that problem, because it’s certainly something I hadn’t thought about.

Since this issue may arise for others as well, I’ll briefly explain what’s going on. The -XX:+HeapDumpOnOutOfMemoryError option was not added to the JRE until Java 1.5.0\_07, so users with an older version will get a “Could not create the Java virtual machine” message when trying to launch the desktop client.

This can be resolved in two ways:

- The first is to update your client.bat file, as Richard suggested. For convenience, you can copy the code below and replace what’s in the file (The code assumes you have the 1.1 release):

START /B javaw -Xms256m -Xmx1024m -jar lib/validator-gui-1.1.jar

- The other way is to update your Java runtime to a newer version, which you can do from the [Java website](http://www.java.com/en/).

- Tim

---

<div class="post-metadata">

**Author:** ![MFriedline](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MFriedline](https://forum.certara.com/u/MFriedline)\
**Post date:** [June 23, 2010, 5:13pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/8 "2010-06-23T17:13:36Z")

</div>

Thanks Richard and Tim. Deleting that line in the client.bat file worked. Thank you for all your help!!

Maria

---

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://forum.certara.com/u/tim)\
**Post date:** [July 13, 2010, 6:38pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/9 "2010-07-13T18:38:51Z")

</div>

Great! We’re glad to hear that you got it working. Please let us know if you have any more comments or questions.

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![scwhipple](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@scwhipple](https://forum.certara.com/u/scwhipple)\
**Post date:** [August 19, 2010, 6:03pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/10 "2010-08-19T18:03:36Z")

</div>

Hello,

I’m having a similar problem. When I double-click on client.bat the Command Shell window opens and closes so quickly I can’t see an error message and the GUI fails to open. Should the javaw.exe file be in the same directory as client.bat?

Many thanks,

Steve

---

<div class="post-metadata">

**Author:** ![tim](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tim](https://forum.certara.com/u/tim)\
**Post date:** [August 20, 2010, 1:39am UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/11 "2010-08-20T01:39:23Z")

</div>

Hi Steve,

Sorry to hear that you’re having trouble, but hopefully we can get things working for you. Please download the [debug client.bat](http://www.opencdisc.org/downloads/client-debug.bat) file into your Validator folder and see if it allows you to view the error. As far as javaw.exe goes, you don’t need to have that in the same directory (it should be somewhere else).

Regards,

Tim

---

<div class="post-metadata">

**Author:** ![TedH](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@TedH](https://forum.certara.com/u/TedH)\
**Post date:** [November 30, 2012, 4:48pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/12 "2012-11-30T16:48:07Z")

</div>

I have the same problem with javaw… The error message tells me that 'Windows cannot find ‘javaw’." I have java 1.5\_0\_22 on my system and of course javaw.exe is in Java folders…

I tried the debug file posted by Tim, and changed client.bat as Tim suggested. I’m getting ‘Windows’ cannot find java" error. We just migrated to Windows 7, can this be a problem?

Thanks

Ted

---

<div class="post-metadata">

**Author:** ![MFriedline](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@MFriedline](https://forum.certara.com/u/MFriedline)\
**Post date:** [June 8, 2010, 3:38pm UTC](https://forum.certara.com/t/error-when-trying-to-run-client-bat/136/13 "2010-06-08T15:38:01Z")

</div>

Hi,

I downloaded the new validator and checked my version of Java, which is 1.5.0\_06. When I double click on client.bat, I get a pop-up message saying “Could not create the Java virtual machine.” I tried modifying the “path” to include the java location and I am still unable to get it to work. Please help!
