Windows 7 ERROR: could not open E:\java\jre7...jvm.cfg --- I canged it to C:\.... but still same problem

Hey guys, I haven't posted here in a while but here goes...

When I run this certain program which is made in java, it says "Error: could not open E:\java\jre7\lib\i386\jvm.cfg"

Now when I check my environment Variables I have JAVA_HOME set to C:\Program Files\Java\jre7\lib\amd64\jvm.cfg

and I have Path in System Variables set to C:\Program Files\Java\jre7\lib\amd64\jvm.cfg;

when I check in CMD : I get the following
C:\>java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

What am I missing here??

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.