File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes  error in opening zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark " error in opening zip file" Watch " error in opening zip file" New topic

error in opening zip file

Amirtharaj Chinnaraj
Ranch Hand

Joined: Sep 28, 2006
Posts: 241
hi guys

i tried to load a properties file form

classpath using classloader

by using the following code


class prop
public static void main(String as[])


ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
URI path= (classLoader.getResource("").toURI());
System.out.println( " path: " + path );

catch(Exception ex)
System.out.println("erro " +ex) ;




but i end up in error
like. i have set the classapath properly
error: error reading D:\properties\; error in opening zip file

I agree. Here's the link:
subject: error in opening zip file
jQuery in Action, 3rd edition