View Single Post
Old 10-07-07, 11:58 AM   #9 (permalink)
t_mohan
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57
Thanked 78 Times in 63 Posts
Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
Re: exception in thread main

r u sure ur rt.jar is in the specified location, anyway what TAM told is right, u dont need to specify rt.jar in the classpath ,jus u specify it till the lib folder thats it, try this out and u'll get a solution, if u install java, it would in the following location as far as i know c:\j2sdk1.5.0_02\lib, whatever the path u specified is related to runtime environment, but u have to give the API location as the class path

Usually when u install JAVA in ur system, there will be two folder created in your system
Ex: if u install J2sdk1.4.0 , the path will be like this
C:\Program Files\Java\j2re1.4.2\lib -- this will be used by Java Runtime Environment and the Operating System, as far as i know, rt.jar provides a runtime environment.
c:\j2sdk1.4.2\ will be ur directory for ur usage, like setting the path to the bin directory, setting the classpath for ur lib directory etc etc can be done from this directory

U have to specify the second folder only in ur classpath

Let me know your questions

Thank You
__________________
M0h@n

Last edited by t_mohan; 10-07-07 at 01:35 PM.
t_mohan is offline   Reply With Quote