Create a zero-byte file
During the installation of Visual Studio 6 on Windows 7, it is necessary to create a zero-byte file called MSJAVA.DLL in the Windows directory. The mere presence of a file with this name will allow installation to proceed. Without it, installation dies.
I've been getting quite a few questions from folks lately, asking "Just exactly how do I create a zero-byte file?" There are several ways to do it. Read on to find out how to do it at the command prompt.
But first, why do we need to create this file?
One of the requirements of Visual Studio 6 is the installation of a "recent" version of Java, particularly of the Microsoft variety. The installation program for Visual Studio is kludged, so it simply checks for the existence of a file with the name MSJava.DLL in the C:\Windows directory.
If this file does not exist, the setup program will force you to install it. Further, it forces a reboot of the operating system in order for the changes to take effect.
Now, we don't want some moldy old Java from over a decade ago cluttering up our shiny Windows 7 machine, so to bypass this funky requirement, we will create a zero-byte file with the proper name and in the proper location by following these steps:
- Open an elevated command prompt (run as administrator).
- Type the following lines in the command prompt:
COPY CON MSJAVA.DLL
- After hitting enter, you'll just a blinking cursor. Just press F6 and enter, and your zero-byte file will be created.
About the Author
dwirch has posted a total of 172 articles.
Comments On This Post
Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.
Or you can drop a note to the administrators if you're not sure where you should post.