Microsoft KB Archive/216748

= FAQ: Visual J++ 6.0 Installation & Configuration Issues =

Article ID: 216748

Article Last Modified on 6/14/2006

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q216748



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



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



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:

 

PKGINST.exe - Entry point not found. The procedure entry point ImageRemoveCertificate could not be located in the Dynamic Link Library imagehlp.dll.

 

Unknown HResult - Unable to install one (or both) of the following files as access is denied:

Vstudio6.cab

Wfcforms.cab



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.


 * Under Windows NT or Windows 95, the correct version of this DLL is 4.00 and the size is 104KB.
 * Under Windows 98, the correct version of this DLL is 4.00 and the size is 112KB.

For additional information, please see the following article in the Microsoft Knowledge Base:

175133 Error Message: Unable to Install Java Packages...

Answer 2:

If the incorrect Imagehlp.dll file is not present, the following might resolve this issue:

 Uninstall Visual J++ 6.0. Download and install the latest Microsoft virtual machine for Java. For more information, visit the following Microsoft Web site:

http://www.microsoft.com/mscorp/java/.

 Reinstall Visual J++ 6.0.</li></ol>

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.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

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) * Installation Wizard for Visual J++ - View Readme
 * 3) * Installation Wizard for Visual J++ - EULA
 * 4) * Installation Wizard for Visual J++ - PID and User ID
 * 5) * Installation Wizard for Visual J++ - Client/Server Install Choice dialog box
 * 6) * Starting Visual J++ Setup dialog box
 * 7) * Visual J++ 6.0 Setup - Welcome to the Visual J++ Installation Program
 * 8) 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:

\Profiles\ \Application Data\Microsoft\Visual Studio

Under Windows 95 or Windows 98:

\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:


 * Version 4.71: 22 KB (CORRECT version)
 * Version 5.00: 6 KB (INCORRECT version)

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.
 * 1) Register version 4.71.To do this, on the Start menu, click Run, and type regsvr32 Comcat.dll.
 * 2) 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:

 

Application 'C:\WINNT\WJView.exe' failed to launch. Unable to start the Machine Debug Manager on the specified machine

</li> 

Application (...\JView.exe or ...\IExplore.exe) failed to launch. Unable to start Machine Debug Manager on the specified machine.

</li></ul>

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.

<div class="references_section">