FAQ: Visual J++ 6.0 Installation & Configuration Issues

ID: Q216748


The information in this article applies to:


SUMMARY

This article addresses Frequently Asked Questions (FAQ) regarding installation and configuration issues with Visual J++ 6.0.

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys And Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT, you should also update your Emergency Repair Disk (ERD).


MORE INFORMATION

Question 1:

On my LAN, the Visual J++ 6.0 trial version expired on computer A. When I install the retail version of Visual J++ 6.0 on computer B, I get the following error message:

Trial version has expired.
Why is this happening?

Answer:

This could be caused by some roaming profile across the computers in your domain. You must install and uninstall the trial version of Visual J++ 6.0 on computer B, and reinstall the retail version on computer B.

NOTE: If this error appears under any other circumstance, please contact Microsoft Developer Support.



Question 2:

Why do I keep getting one (or more) of the following error messages when I install Visual J++ 6.0:

After this faulty installation, I can open Visual J++ 6.0, but I get the following error message when I try to edit a Java file:

There is no editor available for xxx.java
Answer 1:

In most cases, Visual J++ 6.0 Setup is finding an incorrect version of the Imagehlp.dll file on the search path. By renaming the incorrect version of this DLL, you enable Setup to find the correct version. The correct version of this DLL should be in the Windows\System or Winnt\System32 directory.

For additional information, please see the following article in the Microsoft Knowledge Base:
Q175133 Error Message: Unable to Install Java Packages...

Answer 2:

If the incorrect Imagehlp.dll file is not present, the following might resolve this issue:
  1. Uninstall Visual J++ 6.0.


  2. Download and install the latest Virtual Machine for Java from the following Web page:
    http://www.microsoft.com/java/download.htm.


  3. Reinstall Visual J++ 6.0.



Answer 3:

If the previous two answers do not resolve your problem, try the following:
  1. Uninstall Visual J++ 6.0.


  2. Reinstall Internet Explorer.


  3. Reinstall Visual J++ 6.0.



Answer 4:

If the none of the previous steps help, try the following:
  1. Uninstall Visual J++ 6.0.


  2. Run the DCOM98 setup manually from \Dcom98\Dcom98.exe on the Visual J++ 6.0 CD.


  3. Reinstall Visual J++ 6.0.



Answer 5:

If you are still experiencing this problem, go to the Start menu, click Run, type regsvr32 rsabase.dll, and click OK.



Question 3:

During Visual J++ 6.0 installation, Setup presents a dialog box that asks me to upgrade the Java Virtual Machine (VM) and contains a check box that I must select to continue with the installation. After installing the Virtual Machine for Java, the computer restarts. When Setup continues the installation, it requires that I install the Virtual Machine for Java again. Setup does not continue if I clear the check box (to not install the Virtual Machine for Java). Setup is now in a continuous loop, requiring installation of the Virtual Machine for Java each and every time. How do I solve this problem?

Answer:

Check to see if there is enough space on your hard drive. If not, clean up the hard drive and reinstall. It might take up to 150 MB of free disk space for the Virtual Machine for Java to install properly even though much of this is only required temporarily during the installation process.



Question 4:

After installing Visual J++ 6.0, I cannot turn off "Browse in a new process" in Internet Explorer (this is located under the View menu, click Internet Options..., click the Advanced tab, and look under the heading Browsing). Specifically, if I clear the "Browse in a new process" check box, and then close and reopen Internet Explorer, the check box is selected again. How do I permanently turn off this option?

Answer:

The Visual J++ 6.0 installation turns on the "Browse in a new process" option, however, you should be able to turn off this option. To do this, do the following in Internet Explorer:

  1. Make sure no instances of Internet Explorer are running.


  2. Start Internet Explorer.


  3. On the View menu, click Internet Options..., click the Advanced tab, and look under the heading Browsing.


  4. Select the "Disable script debugging" check box.


  5. Clear the "Browse in a new process" check box.


  6. Click Apply to apply the new settings, and close Internet Explorer.




Question 5:

Why do I get the following application error during the very first page of the installation wizard for Visual J++ 6.0?
Unhandled Exception in setup.exe (ORA804.dll):0xC0000005:Access Violation"
I have never run a Visual J++ setup on this computer.

Answer:

Check for the file ORA804.dll on your computer. Temporarily rename this DLL and proceed with the installation.



Question 6:

When running Visual J++ Setup, I get a "memory cannot be written" error message and the setup wizard does not finish. What can I do to install the Visual J++?

Answer:

Run Acmboot.exe instead of Setup.exe from the Visual J++ 6.0 CD.

Note that the Visual J++ 6.0 Setup.exe checks a registry key to make sure that the setup wizard has already been run. You can check if the Wizard (setup.exe) has been run on a computer by looking in the registry. The wizard writes the following key when it is done:


REGEDIT4<BR/>
  [HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual J++\SetupWizard]
"aspo"=dword:00000000 

If this key exists, you can run Acmboot.exe without errors. If the key has not been set, Acmboot generates an error after you see a couple of dialog boxes telling you that you must run the Installation Wizard on the computer. To set this key, you can save the preceding registry text to a .reg file and import (double-click the .reg file) it into the registry. NOTE: This step is for advanced users. If you are unsure about this step, please see the following instructions for an alternate way to generate the registry entry:

  1. Run Setup.exe from the Visual J++ 6.0 CD. The following screens appear:


  2. Click Exit Setup in the first dialog box entitled Visual J++ 6.0 Setup. Confirm Exit Setup in the Exit Setup confirmation dialog box. The setup wizard registry key is now set, and you should be able to run Acmboot.exe.






Question 7:

Whenever I start Visual J++ 6.0, DEVENV.exe crashes with a memory error. In some cases, this happens when I open a project even if the IDE does load properly. What should I do?

Answer:

This could be caused by one or more corrupted preference files. Make sure Visual J++ 6.0 is not running. Delete (or rename to vsconfig) the following directory, which contains the Visual J++ 6.0 preference files:

Under Windows NT:
<Windows dir>\Profiles\<user name>\Application Data\Microsoft\Visual Studio

Under Windows 95 or Windows 98:
<Windows dir>\Application Data\Microsoft\Visual Studio

When you delete or rename this directory and reload Visual J++ 6.0, the directory as well as the default preference files are re-created.

IMPORTANT: These files contain your IDE preferences, such as window layouts. Any changes you made to the preferences for the IDE after installing Visual J++ will be lost after this step.




Question 8:

I get the following error when trying to view the Form Designer:
java.lang.IllegalAccessError: com/ms/wfc/util/Debug$Switch
What can I do to fix this?

Answer:

This could be due to the fact that you are running a Technology Preview version of Visual J++ 6.0 and have installed a more recent version of the Java Virtual Machine for Java than the version that came with the Technology Preview. To resolve this, you must uninstall the Technology Preview and install the release version of Visual J++ 6.0. After doing this, you need to recompile any projects you created with the Technology Preview and ensure that they still run using the released software.

NOTE: Some packages in the Technology Preview versions of Visual J++ 6.0 are not compatible with the released Java packages. This is one reason why the Technology Previews must not be used to create products.



Question 9:

Whenever I attempt to compile a program, a "Solution Update Failed" message appears in Visual J++ 6.0. However, there are no tasks in the Task List. Why can't I compile anything?

Answer:

You might have an incorrect version of the file Comcat.dll installed on your computer.

There are two versions of this DLL:
If you are running Windows NT and you find Comcat.dll version 5.0 on your system, do the following:

  1. Unregister Comcat.dll version 5.0. To do this, on the Start menu, click Run, and type regsvr32 /u Comcat.dll.


  2. Delete or rename the incorrect Comcat.dll file.


  3. Copy Comcat.dll 4.71 version from the Visual J++ 6.0 CD to your [windir]/system[32] directory.

    NOTE: You will find the correct version on the CD in the \Common\Ide\Ide98\Redist directory.


  4. Register version 4.71.To do this, on the Start menu, click Run, and type regsvr32 Comcat.dll.


  5. In the Control Panel, click Add/Remove Programs, select Microsoft Visual J++ 6.0, and click Reinstall to "repeat the last installation to restore missing files and settings".




Question 10:

When I select View, Designer nothing happens. Why isn't the Form Designer working?

Answer:

Please refer to answer for question 9 in this article. Note that the Form Designer view is only available for classes that extend the Form class.



Question 11:

When I try to debug a project within Visual J++ 6.0 under Windows NT, one of the following error messages appears:


However, I am able to run my class file successfully from a DOS prompt. What can I do to fix this?

Answer:

You need to adjust the following registry entry to resolve the problem:


HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\ 
CurrentVersion\Winlogon 

There should be a Shell entry under the Winlogon key. It should read as follows:

Shell = "Explorer.exe"

If Shell does not exist or is different from this entry, you must create the entry or change it to Explorer.exe and restart your computer.



Question 12:

Every time I click Customize Toolbox... on the Tools menu in the Visual J++ 6.0, it crashes the IDE.

Answer:

  1. Follow the instructions in the following Microsoft Knowledge Base article to download and run RegClean:
    Q147769 INFO: RegClean 4.1a Description and General Issues


  2. Start Visual J++ 6.0.



If these steps do not fix the problem, do the following:
  1. Uninstall Visual J++ 6.0.


  2. Download and install the latest Virtual Machine for Java from the following Web page:
    http://www.microsoft.com/java/download.htm


  3. Run RegClean again.


  4. Reinstall and start Visual J++ 6.0.



REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, please see the following pages on the Microsoft Technical Support site:

http://support.microsoft.com/support/visualj/

http://support.microsoft.com/support/java/

© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Brett Siedman, Microsoft Corporation

Additional query words:


Keywords          : kbsetup kbCompiler kbDebug kbide kbJavaVM kbVJ600 kbIDEProject kbGrpJava 
Version           : WINDOWS:6.0
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: March 18, 1999