Seems like a trivial thing, but I'm unable to figure it out.
I'm trying to compile and it gives me the following error.
C:\VAN~1\work\YT\Test>javac ConnPool.java
ConnPool.java:15: error while writing com.lkeeco.util.ConnPool:
ConnPool.class (
Access is denied)
public class ConnPool {
^
1 error
I have checked the permissions for the file and they are all right, I
hope some one can point out where I could have gone wrong. I have
checked the classpaths, retstarted tomcat but still shows up the same
error.
Thomas Kellerer - 29 Feb 2008 23:43 GMT
Tarun wrote on 29.02.2008 23:54:
> Seems like a trivial thing, but I'm unable to figure it out.
> I'm trying to compile and it gives me the following error.
[quoted text clipped - 8 lines]
>
> I have checked the permissions for the file and they are all right
Which file? javac cannot write the class file, so you should check the write
permissions on the directory.
Thomas
Zig - 01 Mar 2008 04:40 GMT
> Seems like a trivial thing, but I'm unable to figure it out.
> I'm trying to compile and it gives me the following error.
[quoted text clipped - 6 lines]
> ^
> 1 error
If that's the full command line syntax you are using, you may not have
your directory structure laid out correctly.
You need the file to be
com\lkeeco\util\ConnPool.java
Then try to compile it as
javac com\lkeeco\util\ConnPool.java
> I have checked the permissions for the file and they are all right, I
> hope some one can point out where I could have gone wrong. I have
> checked the classpaths, retstarted tomcat but still shows up the same
> error.
HTH,
-Zig