• Post Reply Bookmark Topic Watch Topic
  • New Topic

want to uninstall java 5 sdk  RSS feed

 
shubhra chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

Need some help. I installed Java 5 SDK today but later on decided to go for Java 2 sdk. But somehow I am not able to uninstall that. I tried to remove jdk manually(error:cannot delete javaw.exe- access is denied) and also tried control panel\add-remove method which was giving me error could not find the main class. Can anyone please suggest me how to remove this program from my system?

Thanks
Shubhra
 
Yashpal Rawat
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all please ensure you have admin access to your computer.
If you have and still you are not able to uninstall then i would suggest restart your computer and then try it again.

Also its worth mentioning that you can have two sdk working on your system by installing it in different directories and modifying environment path variable accordingly.For e.g lets say if your new java installation directory is
d:\jdk1.4 the modify your environment variables JAVA_HOME and PATH as
JAVA_HOME=d:\jdk1.4
PATH=%JAVA_HOME%\bin;<....orginal path value...>
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More of a beginner's question.

Yashpal Rawat is correct; you can have two different JDKs running. But you need to be careful about terminology; J2SDK5.0 and Java 5 JDK are actually both the same thing!
 
shubhra chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all thanks to both of you for answering my question.
But I am still having the same problem.
I downloaded JavaEE + Jdk from the link given below.
http://java.sun.com/javaee/downloads/index.jsp
Then three directories were added to c:\ namely jdk, javadb, jbi.

Set classpath=C:\jdk\bin
path=C:\jdk\bin

I have checked for other sdk and found jdk1.5 within the bea directory which was for weblogic. I removed this but still not getting help.

Now can you please suggest me what exactly i have to do?

Thanks
Shubhra
 
Joe Ess
Bartender
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shubhra chauhan:
I tried to remove jdk manually(error:cannot delete javaw.exe- access is denied)

That was a bad idea, because you broke the JDK uninstaller, as evidenced by your later problem:
Originally posted by shubhra chauhan:

and also tried control panel\add-remove method which was giving me error could not find the main class.

I don't think there's any way to fix it, short of reinstalling the JDK you broke.
Do you have a process that is currently running javaw.exe? If there is, and you can stop it, you may be able to delete that file.
As others have pointed out, you can have multiple JDK's installed. I have various versions of 1.4, 1.5 and 1.6 living in harmony on this computer.

Originally posted by shubhra chauhan:

I have checked for other sdk and found jdk1.5 within the bea directory which was for weblogic. I removed this but still not getting help.

I think that was a bad idea. Weblogic is fairly particular about the JDK it uses.
[ June 23, 2008: Message edited by: Joe Ess ]
 
shubhra chauhan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,

Thanks for compiling each statement. I got my problem very clear. I have installed jdk1.4 which is working fine. I only lose 174.67 MB because of the mistake I have done.
Anyway I appreciate your work.

Thanks
Shubhra
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!