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 / November 2006

Tip: Looking for answers? Try searching our database.

Rune-Time Error

Thread view: 
Donkano - 16 Nov 2006 16:18 GMT
http://img390.imageshack.us/img390/7571/errwe3.png

I compiled the program fine but when I try to execute it, I get the
error above.

Program source code:
//---------------------------------------------
package Default;

public class Test {
    public static void main(String[] args) {
        System.out.print("Hello.\n");
        System.out.println("How are you?");
        System.out.print("I\tam\twell.");
    }
}
//---------------------------------------------

How come it is having these errors?
Jeffrey Schwab - 16 Nov 2006 16:27 GMT
> http://img390.imageshack.us/img390/7571/errwe3.png
>
[quoted text clipped - 15 lines]
>
> How come it is having these errors?

"Test" (capitalized), not "test" lowercase.  Java is case-sensitive.

The term is "run," not "rune."  Rune means something else.  Rune-time
was (for most of us) a long time ago.
Donkano - 16 Nov 2006 18:43 GMT
> "Test" (capitalized), not "test" lowercase.  Java is case-sensitive.
Ok, I will give that a try.

> The term is "run," not "rune."  Rune means something else.  Rune-time
> was (for most of us) a long time ago.
It was a typo I did and realized that I typoed just after I submitted
it. I don't know how I managed an "e" into there...

And to the 2nd poster, I did set the class path as said several times
on Google.
Jeffrey Schwab - 17 Nov 2006 15:38 GMT
>> "Test" (capitalized), not "test" lowercase.  Java is case-sensitive.
> Ok, I will give that a try.

As Simon pointed out (and I missed), you'll also need either to remove
the package declaration, or put Test.class in an appropriate
subdirectory and run it with its full name.  It will save a fair amount
of heart-ache if you use a lowercase package name, as well, e.g.
"default" instead of "Default."

>> The term is "run," not "rune."  Rune means something else.  Rune-time
>> was (for most of us) a long time ago.
> It was a typo I did and realized that I typoed just after I submitted
> it. I don't know how I managed an "e" into there...

Been there.  I hate it when that happens. :)

Good luck.
Robert Klemme - 16 Nov 2006 16:27 GMT
> http://img390.imageshack.us/img390/7571/errwe3.png
>
[quoted text clipped - 15 lines]
>
> How come it is having these errors?

you have to properly set the classpath.

    robert
Simon Brooke - 16 Nov 2006 19:22 GMT
> http://img390.imageshack.us/img390/7571/errwe3.png
>
[quoted text clipped - 15 lines]
>
> How come it is having these errors?

You've declared that a class called 'Test' is in a package (and hence, a
directory) called 'Default' but in fact it isn't. And, as others have
said, the class is NOT called 'test' and you need to set your classpath.

Signature

simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

       'graveyards are full of indispensable people'



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.