Hello guys.

I'm having problem on Java 6 update 41 after uninstall. Basically the machine have 2 lower java version.

Upon uninstall of Java 6 update 41, launch cmd and type java -version. 

Im getting this error.

Error occurred during initialization of VM

java.lang.NoSuchMethodError: java.lang.Class.getName()Ljava/lang/String;


supposedly the output of this line should be the latest java remained in the machine.

0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



As ever, ProcMon will show you what file and/or registry access is taking place during the execution. You can then work backwards from there. However, an elementary perusal of the registry and file system should show you whether or not the uninstall was successful or not.

Answered 03/17/2013 by: VBScab
Red Belt

  • The removal off application was successful. No access denied seen in ProcMon or no pointing problems to resolve the error.
Please log in to comment

Was the computer restarted after the uninstall and before the command was run?  If not, there still could be some cleanup that has to be done from the uninstall that will revert the system to only see the previous versions and remove the pointers to the uninstalled version.

Answered 03/18/2013 by: M P
Purple Belt

  • Yes. the computer was restarted. Im wondering why if this command run in Admin account the lower version was detected but in standard account that error is showing.
    • Did the command work for the standard user prior to the uninstall? If you did not try, does a repair of the lower version by the administrative account make the command work for the standard user?
  • Yes. It is working prior to uninstall. Now I'm checking the repair for the lower version.
Please log in to comment

>The removal off application was successful
How can it have been? How else would the executable be detecting a lower version? Is it plucking version numbers out of the air?

Now that you have divulged further information - i.e. that an admin user and stabdard user get different results (we're good here, but not psychic!!) - a comparison of the execution whilst running ProcMon will show you EXACTLY what the difference is.

Answered 03/18/2013 by: VBScab
Red Belt

Please log in to comment