How to resolve Java error.
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.
Answers (3)
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.
Comments:
-
The removal off application was successful. No access denied seen in ProcMon or no pointing problems to resolve the error. - ajcbasilio 11 years ago
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.
Comments:
-
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. - ajcbasilio 11 years ago
-
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? - M P 11 years ago
-
Yes. It is working prior to uninstall. Now I'm checking the repair for the lower version. - ajcbasilio 11 years ago
>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.