Muujware : Journals : Matthew's Journal : September 13, 2004
About Matthew
Name: Matthew W. Jackson
Email:
Position: PC / Programming / Game / Music Composition Geek

View Matthew's Personal Profile
Installing Visual Studio 6.0 without the MS JVM
Posted on September 13, 2004 at 11:11 PM CST/CDT
  [Previous]  [Next]

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:
  • 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).
It's as simple as that. The nice thing about this solution is that it doesn't require any reboots in the setup process.

Beware the Muuj
Comments on this post are closed.
Comment by Steven Paradine
Posted on September 25, 2006 at 11:20 AM EST/EDT
#
Two years later - you have saved me some significant time. Thanks, Steven
Comment by Christian Willumsen
Posted on January 23, 2007 at 4:03 AM EST/EDT
#
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.
Comment by zafer ozsoy
Posted on February 8, 2007 at 5:16 PM EST/EDT
#
thanks a lot this did help me but i had 2 other problems with installation and now it completely failed, grrrr..
Comment by Mark
Posted on February 17, 2007 at 8:02 AM EST/EDT
#
Thanks for this !!!!!!!!
Comment by Tarick
Posted on April 14, 2007 at 10:39 PM EST/EDT
#
Sweet!!!
Comment by piyush
Posted on April 17, 2007 at 1:31 PM EST/EDT
#
hi Matthew.
Thats a great information , and this solved my problem
Thanks a great.

Comment by shinnapong
Posted on July 8, 2007 at 2:40 AM EST/EDT
#
That's rock
THANKS.

I waste several days*** before I med your post.


Thanks again.
Comment by Daniel
Posted on September 10, 2007 at 5:15 AM EST/EDT
#
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 :-)
Comment by Didis
Posted on September 25, 2007 at 6:03 AM EST/EDT
#
great tip, thanks
Comment by Muhammad Amin
Posted on December 17, 2007 at 4:38 AM EST/EDT
#
Well Done !!!
It solved my big problem.
Comment by Michael
Posted on December 21, 2007 at 1:35 AM EST/EDT
#
I like the fan-base you've developed. Now, should we try it in Vista while underwater?
Comment by Forid Liang
Posted on February 22, 2008 at 3:41 AM EST/EDT
#
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.
Comment by X
Posted on August 10, 2008 at 9:16 PM EST/EDT
#
Now my hat's off to you. Your page is the first result I received from Google. Thank you!!!
Comment by bonobono
Posted on October 27, 2008 at 10:10 AM EST/EDT
#
you're my sunshine ^^
Comment by LefsVenna
Posted on January 9, 2009 at 10:12 AM EST/EDT
#
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.
Comment by MichaellaS
Posted on July 22, 2009 at 9:26 PM EST/EDT
#
tks for the effort you put in here I appreciate it!
Site
News
News Archives
Files
Polls
Journals
Profiles
Statistics
Recent Comments
RSS Feeds
User Options
Name:
Password:
  
Copyright © 2001-2013 Muujware