# Java error when launching Dev Studio for 1st time

**URL:** <https://forum.sierrawireless.com/t/java-error-when-launching-dev-studio-for-1st-time/5760>\
**Category:** ALEOS Application Framework\
**Created:** [July 25, 2012, 2:11am UTC](https://forum.sierrawireless.com/t/java-error-when-launching-dev-studio-for-1st-time/5760 "2012-07-25T02:11:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![simplecomtools](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@simplecomtools](https://forum.sierrawireless.com/u/simplecomtools)\
**Post date:** [July 25, 2012, 2:11am UTC](https://forum.sierrawireless.com/t/java-error-when-launching-dev-studio-for-1st-time/5760/1 "2012-07-25T02:11:46Z")

</div>

Installed the ALEOS Dev Studio on a machine has Java installed.  
When launching DeveloperStudioALEOS.exe, we received an error:

“A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:  
C:\ALEOS\DEV Studio\jre\bin\javaw.exe  
javaw.exe in your current PATH”

What is the best way to resolve this and get DeveloperStudioALEOS to run?

---

<div class="post-metadata">

**Author:** ![simplecomtools](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@simplecomtools](https://forum.sierrawireless.com/u/simplecomtools)\
**Post date:** [July 25, 2012, 2:31am UTC](https://forum.sierrawireless.com/t/java-error-when-launching-dev-studio-for-1st-time/5760/2 "2012-07-25T02:31:15Z")

</div>

Okay - Never mind - I answered my own question.

But for anyone who wants to know…

If you get a Java error when launching Dev Studio for 1st time…

Go to your the folder where your “DeveloperStudioALEOS.exe” resides.  
You will see a file called “DeveloperStudioALEOS.ini”.

Open the file in notepad.  
It will likely have all the Eclipse arguments on one line.  
-vmargs-XX:PermSize=512M-XX:MaxPermSize=512M-Xms40m-Xmx512m

You can add a before each dash to clean it up - so now it looks like this:  
-vmargs  
-XX:PermSize=512M  
-XX:MaxPermSize=512M  
-Xms40m  
-Xmx512m

Now add a path to your Java Virtual Machine DLL file (which is located somewhere in your Windows system).  
Most likely the path to that file will be under “C:\Program File (x86)\Java\jre7\bin\client”.  
Assuming that is the case…add the full path to that DLL at the beginning of the ini file.

So now your “DeveloperStudioALEOS.ini” looks like this:

-vm  
C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll  
-vmargs  
-XX:PermSize=512M  
-XX:MaxPermSize=512M  
-Xms40m  
-Xmx512m

Now simply save that ini file again, overwriting the previous version.  
Launch DeveloperStudioALEOS.exe.  
BOOM! It works.

Hope that was useful to someone.  
😃

---

<div class="post-metadata">

**Author:** ![thibs](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/thibs/32/953_2.png) [@thibs](https://forum.sierrawireless.com/u/thibs)\
**Post date:** [July 25, 2012, 9:08am UTC](https://forum.sierrawireless.com/t/java-error-when-launching-dev-studio-for-1st-time/5760/3 "2012-07-25T09:08:04Z")

</div>

Thanks for sharing! 🙂

---

<div class="post-metadata">

**Author:** ![gmalpart](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@gmalpart](https://forum.sierrawireless.com/u/gmalpart)\
**Post date:** [July 25, 2012, 12:35pm UTC](https://forum.sierrawireless.com/t/java-error-when-launching-dev-studio-for-1st-time/5760/4 "2012-07-25T12:35:48Z")

</div>

There is also a more generic solution (I would actually consider it as the right one 😃 ), which is to actually add a JRE or JDK to your PATH, in the Windows Environment Variables (as suggested by the error message).

Everything is explained on the java web site: [java.com/en/download/help/path.xml](http://www.java.com/en/download/help/path.xml)

Cheers  
.G.
