|
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.
|