Hi, Several times people have posted that they were having problems getting the Dev studio's Java functionality to work. JDBC data sources, and the compiler. I was one of those people. My problem seemed to go away after installing and reinstalling various JDKs and JVMs. But with the recent purchase of new machines, we found it impossible to get that functionality to work, no matter how many times we installed and reinstalled JRE's and JDKs.
Today, May 16th 2007 I think I finally got to the bottom of the problem. With the help of ProcessExplorer, I was able to figure out exactly what DLL's were being used when the Dev Studio (on the machine that worked) accessed the JVM. It was using a 1.4.X version of the JVM. The dev studios that refused to find the JVM had 1.4, 1.5, and 1.6 versions of the jvm and jdk's installed. But they acted as if the JVMs weren't installed. We messed with the JAVA_HOME environment variable till the cows came home, still no luck. So I decided to take a really close look at registry entries (more importantly the differences) related to JREs on the two machines (one that works, and one that doesn't) This is what I found. The old machine had registry entries with these names... HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4 HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.2_03 While the new machine only had HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.2_14 I exporeted a copy of the 1.4.2_14 key on the new machine, and renamed it simply 1.4, and then reimported the 1.4.2_14 key so I had this on the new machine... HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4 HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4.2_14 And everything started working. The only thing I can figure here is that newer releases of the 1.4.2 versions of the JRE don't create the 1.4 key in the registry. They only create the 1.4.2_XX key. I'm guessing that it didn't always work like that, because I never touched this part of my registry manually before. It would be nice to get some confirmation from Witango that the Dev Studio is hard coded to look for JRE 1.4, because it seems to me that if you have used Suns installer to install 1.4.2_14 it should work. I hope this saves somebody some time... -- John McGowan Seven A C Consulting, Inc. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
