Thursday, April 3, 2014

Flash Develop: Could Not Open [...] lib\i386\jvm.cfg'

<pre>
I recently MANUALLY installed JAVA by cutting and pasting my java installations from my C:\DEV\JAVA folder of a machine I recently fried via emptying mountain dew into the keyboard.

I have installed FlashDevelop and Java more times than I can count.
As usual, I ran into some trouble.






Before I tell you, it is important to note the layout of my files:
With flash develop, you MUST use the 32 bit version of Java.
C:\DEV\Programs\JAVA\JDK6_32BIT
C:\DEV\Programs\JAVA\JRE6_32BIT

Here is what I did:

To get flash develop to know where java is, add this to your PATH variable:
C:\DEV\Programs\JAVA\JDK6_32BIT\bin\
Aka: Whatever bin folder contains BOTH "java.exe" and "javac.exe".

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!







TO GET RID OF "Could Not Open [...] lib\i386\jvm.cfg" ERROR:
YOU WILL NEED TO ADD THE JAVA_HOME VARIABLE:
JAVA_HOME == C:\DEV\Programs\JAVA\JRE6_32BIT
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Also: Tips on the internet say check system32 for copies of Java that were not deleted during a previous un-install.

I recommend making a shortcut to environment variables if you are a developer.
You will be using them often. Especially when setting up new development environments.

For my Windows 7, the shortcut should point to:
%windir%\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
</pre>

1 comment: