Java

Java in Action Downloads Help Center

Error Messages

   

Error: can not find main class or can not find jvm.dll


This article applies to:
  • Platform(s):
    Windows 98, Windows ME, Windows 2000 (SP4+), Windows XP (SP1 SP2), Windows 2003
  • JRE version(s):
    1.5.0



SYMPTOMS

An error message dialog box displays the following messages:

can not find main class or can not find jvm.dll



CAUSE

  1. Corrupt registry entries for the Java Runtime Environment (JRE)
  2. Corrupt deployment.properties file for the JRE



SOLUTION

The JRE needs to be reinstalled in order to solve this problem.
  1. Uninstall the corrupt JRE by following instructions on this page: Windows Java Runtime Environment uninstallation instructions

    Note: If you failed to remove the JRE icon in the Windows Control Panel, then you need to remove the registry entries for the version(s) by following instructions from: After uninstalling Java software, how to remove its listing in Add/Remove Programs
  2. Reinstall the JRE by following instructions on this page: Windows Offline Download and Installation Instructions for Java Rutime Environment (JRE)



MORE TECHNICAL INFORMATION

Deployment Configuration File and Properties

NEED MORE HELP?
If you require further assistance, please make sure you check through our Help and FAQ sections thoroughly. We probably have a page that answers your question.

You may find information on the following topics in the Help section:
Installing Java
Configuring Java
Error Messages
Applet Application




Help Resources
> Installing Java
> Configuring Java
> Error Messages
> Applet Application
> Legal

 

FAQ
> General Questions
> Java for Mobile Devices

 

Select Language | Java Wear | Newsletter | About Java Technology | Partner with Us | Developers | java.com Changes
Privacy | Terms of Use | Trademarks | License | Disclaimer | Contact

Sun Microsystems