Results 1 to 3 of 3
Thread: public class error
- 01-25-2011, 05:42 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 13
- Rep Power
- 0
public class error
I'm new to Java so please bear with me.
I started with this:
public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello, world!");
}
}
I entered javac Hello.java into the command window and I get this error:
Hello.java:1 error while writing Hello: Hello.class (Access is denied)
public class Hello
^
How do I fix this?
Thank you:)
- 01-25-2011, 05:46 AM #2
Copy your Hello.java in some another directory and try again.
Seems like permission issue for the directory you are running your code in.
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-25-2011, 05:49 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 13
- Rep Power
- 0
Similar Threads
-
Public, private or (nothing) class
By tyang in forum New To JavaReplies: 3Last Post: 01-31-2010, 11:37 PM -
E:\IT 215 Java Programming\public class Inventory.java:39: class, interface, or enum
By tlouvierre in forum New To JavaReplies: 14Last Post: 05-28-2009, 05:44 AM -
Public static method error
By leapinlizard in forum New To JavaReplies: 5Last Post: 04-29-2009, 11:10 PM -
different multiple public class and main class
By mr idiot in forum New To JavaReplies: 2Last Post: 01-01-2009, 12:10 PM -
Public class variable
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 09:58 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks