To check if you have write permission to the directory do:

$ cd /usr/local/netbeans-6.5
$ ls -la

Now check the first line of the output , it should look similar like this :

drwxr-xr-x   6 christiaanvanzyl  staff   204B Jan 31 15:35 .

The . at the end means current directory

*u*ser = *r*ead, *w*rite, e*x*ecute
*g*roup = *r*ead, e*x*ecute
*o*ther = *r*ead, e*x*ecute

To give everyone permission to this directory do:

$ su
$ chmod -R ugo+rwx /usr/local/netbeans-6.5

2009/1/30 ewer <[email protected]>

>
> Hi,
>
> On 30 Jan., 00:34, saurabh kumar <[email protected]> wrote:
> > Hi guys
> >
> > Im unable to create a zip folder.while creating a zip folder I get the
> > following error
> >
> > [...@saurabh ~]$ cd /usr/local/netbeans-6.5
> > [...@saurabh netbeans-6.5]$ jar cvf MyHelloProject2.zip MyHelloProject2
> > java.io.FileNotFoundException: MyHelloProject2.zip (Permission denied)
>
> ^^^^^^^^^^^^^^^^^^^
> Have you seen this! You don't have write permissions in this
> directory
> as the user executing the jar-command.
> Do you realy have the project in the netbeans installation directory?
>
> HTH
> Ewald
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to