How do I install Microsoft Visual Studio 6.0 without first installing the Microsoft Java Virtual Machine?
First, here's some background information on the problem.
As of Windows XP Service Pack SP1a, the obsolete Microsoft Java Virtual Machine is no longer included with the operating system (as per court order). I'm fine with this. If I need to run Java applications, I'm fine installing Sun's Virtual Machine (although IKVM is sometimes a nifty alternative).
Anyway, I need to use Microsoft Visual Studio 6.0 from time to time, mostly to support old code I've written. Anyway, when trying to install Visual Studio on the recently-released Windows XP SP2, I hit a stumbling block: The setup for Visual Studio 6.0 requires the Microsoft Java Virtual Machine to be installed. Since I have no plans to install Visual J++, and the setup program gives you absolutely no option NOT to install the JVM, I was in a bit of a pickle. (Geez...it seems that J++ is a separate install alltogether, so I have to ask: "Why does it think it NEEDs to install the JVM?")
I first checked the Microsoft Knowledge Base. I thought I found a solution, but it said to install Internet Explorer 6, which of course, Windows XP comes with out of the box. It was a solution to the wrong problem, and it seemed it was no longer a valid solution at all.
After several searches on Google with no luck, I turned to Google groups. When looking for answers on programming-related questions, this is usually a decent place to look. I found references to the problem, but no real solutions. One "solution" was to install the Microsoft JVM, install Visual Studio, and then uninstall the JVM. I didn't like this idea at all. First of all, I'm not sure that VS6 comes with the newest JVM, and I don't think Microsoft has any version of it available for download anymore. Besides, if I don't need the JVM, why on earth would I want to install it?
I finally found a newsgroup entry in another language that seemed to discuss the problem. I used an extension for my web browser (Mozilla Firefox) that lets you easily translate a page using an online BabelFish-based translator, and found that it did indeed discuss my problem. There was a link to a blog entry which discusses how to solve the problem. If I wore a hat, my hat would be off to Bill for finding and solving the problem.
Seeing as Google initially failed to solve my problem, I decided to write this entry (with lots of links), to help it answer my question when somebody else asks it.
Anyway, in case the link breaks in the future, here's the solution:
It's as simple as that. The nice thing about this solution is that it doesn't require any reboots in the setup process.
- Go to your Windows folder (such as C:\WINDOWS).
- Create a new file named msjava.dll. The file can contain anything, but a zero-byte file should do fine.
- Install Visual Studio 6.0.
- Delete the file (or else it may cause problems down the road).
Beware the Muuj
Comments on this post are closed.
|Two years later - you have saved me some significant time. Thanks, Steven|
|hehe damn... was just looking for this solution, and gave up installed the MS JVM and started installing VS 6.0|
then I decided to refine my search again, to see if i could find a could uninstall procedure ( http://www.windowsitpro.com/articles/index.cfm?articleid=38206&cpage=67 ). Well now I know how to do it in the future. Though I wish VS2005 would come with a ASP classic editor or similar.
|thanks a lot this did help me but i had 2 other problems with installation and now it completely failed, grrrr..|
Thats a great information , and this solved my problem
Thanks a great.
|That's rock |
I waste several days*** before I med your post.
|Oh what a nice and simple tip, thank you so much :-) Java tends to get wierd when installing the ms java thing just for visual c :-)|
|Well Done !!!|
It solved my big problem.
|I like the fan-base you've developed. Now, should we try it in Vista while underwater?|
|Thank you very much for your great tip.|
I have been working several hours to find msjvm so as to install Visual Studio 6.0 in my virtual NT2K for maintenance purpose.
|Now my hat's off to you. Your page is the first result I received from Google. Thank you!!!|
|adept even so of day.|
I do not discern what to say not far from this ...
Yes, I on the brink of forgot I would like to stretch your notice to the actually that - www.muujware.com identical cognitive Web resource!
Note from Matthew: I removed your Spam link, but kept the rest because it made me smile.
|tks for the effort you put in here I appreciate it!|