• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

want to uninstall java 5 sdk

 
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
 
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...>
 
Marshal
Posts: 66504
251
  • 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
 
Bartender
Posts: 9589
13
Mac OS X Linux 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
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!