Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Access is Denied

Thread view: 
Tarun - 29 Feb 2008 22:54 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.

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.