"Access Denied " error....Please help solve

I had recently installed the jdk1.3 (Win ME version). I have no problem with my path variable although I doubt the classpath variable setting, which is given as follows.

D:\java\p_java>set classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib;D:\java\jdk1.3.1_02\lib\

where p_java is my java programs directory

jdk1.3.1_02 is the Java 2 SDK directory.

Problem

-

Whenever a java program is compiled, the very same error of "Access Denied" is displayed. This can be seen in the foll. examples.

Example 1:

-

D:\java\p_java>javac Statik.java

)Statik.java:3: error while writing Statik: Statik.class (Access is denied

class Statik{

^

1 error

Example 2:

-

D:\java\p_java>javac Stack.java

)Stack.java:1: error while writing Stack: Stack.class (Access is denied

public class Stack

^

1 error

Request

--

Could anyone tell me whether the classpath variable has to be set explicitly as in 1.2 version or leave it alone.( in case I don't have any user-classes.

I would be very obliged if u could suggest a possible remedy for this compilation error.

Awaiting a solution,

Thankz,

Preeti

[1277 byte] By [jasun17] at [2007-9-26 19:06:29]
# 1
Try and see if this would make any difference:javac -classpath D:\java\jdk1.3.1_02 Stack.javaV.V.
viravan at 2007-7-3 10:54:28 > top of Java-index,Developer Tools,Java Compiler...
# 2

> D:\java\p_java>set

> classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib;D:\ja

> a\jdk1.3.1_02\lib\

set classpath=%classpath%;D:\java\jdk1.3.1_02\jre\lib\rt.jar

is probably better. :-/

> where p_java is my java programs directory

> jdk1.3.1_02 is the Java 2 SDK directory.

>

>

> Problem

> -

> Whenever a java program is compiled, the very same

> error of "Access Denied" is displayed. This can be

> seen in the foll. examples.

> Example 1:

> -

> D:\java\p_java>javac Statik.java

> )Statik.java:3: error while writing Statik:

> Statik.class (Access is denied

> class Statik{

> ^

> 1 error

The problem is when writing to the disk, not due to the classpath. Have you run out of space on the drive? Can you write to the drive in other programs? Try compiling the java file on your C: drive. If it compiles on C:, there's something wrong with your D: drive. :/

Bhav

bhaveet at 2007-7-3 10:54:28 > top of Java-index,Developer Tools,Java Compiler...
# 3

:C:\java>d

D:\java\p_java>copy Statik.java c:\java

1 file(s) copied

:D:\java\p_java>c

C:\java>javac Statik.java

C:\java>java Statik

Stat bloc init-d a= 3

x = 5

a = 3

I could not believe it ... But how can this be? U mean the hard disk cannot store java files. Is this hardware problem or can be rectified, being a software defect...?

Any way I want to thank u again for this clue.

Bye

Preeti

jasun17 at 2007-7-3 10:54:28 > top of Java-index,Developer Tools,Java Compiler...