fortypoundhead.com

Create a zero-byte file

Posted On 2011-12-31 by dwirch
Keywords:
Tags: VB6 Miscellaneous Software Hack/Tweak Windows 7 Vista Windows
Views: 47712


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:

  1. Open an elevated command prompt (run as administrator).
  2. Type the following lines in the command prompt:
    CD\Windows
    COPY CON MSJAVA.DLL
  3. After hitting enter, you'll just a blinking cursor. Just press F6 and enter, and your zero-byte file will be created.
There, mission accomplished. You can now run setup for Visual Studio 6, and you won't be forced to install stale Java.


About the Author

dwirch has posted a total of 177 articles.

You can find more information from dwirch by visiting http://www.derekwirch.com.


Comments On This Post

By: loussar
Date: 2012-01-13

Or open a .txt file using wordpad and save it without typing anything into it.

By: dwirch
Date: 2012-01-13

I'm sure there are about 400,000 methods for creating a zero byte file.... Thanks for the contribution.

By: Artistram3d1
Date: 2012-03-22

I'm not very tech savvy. I've created a 0 byte file in C:Windows. So is that all I have to do to run setup successfully? Are there any other steps? I really want to learn programming. I've taken a VB6 book from the library and am also going to purchase a VB6 book from Amazon. Any pointers would be greatly appreciated.
Thank you!


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.


Your IP address is:54.167.232.42

Before you can post, you need to prove you are human. If you log in, this test goes away.



Recent Forum Posts

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers

New security implemented
dwirch posted on August 8, 2017 at about 6:43 in Site News

New security implemented
dwirch posted on July 23, 2017 at about 6:58 in Site News

Fold Code Manager into main KB?
VB6Boy posted on July 22, 2017 at about 14:42 in Site News

Fold Code Manager into main KB?
dwirch posted on July 22, 2017 at about 14:41 in Site News