Computing.Net > Forums > Programming > java error

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

java error

Reply to Message Icon

Name: Dark29delx
Date: August 29, 2005 at 18:13:50 Pacific
OS: Windows XP Pro
CPU/Ram: 1.5GB Dual Channel DDR SD
Comment:

I am having problems both compiling and executing this file using Jcreator for the java language. I am new to this and wanted to test an expample I did.

public class test
{
public static void main(String[] args)
{
//DISPLAY//

System.out.PrintIn("Hello");
System.out.PrintIn("World!");
}
}

For some reason, when I execut it, it says

"Execption in thread "main" java.lang.NoclassDefFoundError: test"

Im sure it can be fixed easily but im a noob. Even the demo expample are not working.

When I compile this it even says
cannot resolve symbol method PrintIn.

twice for the two prints. plz help

Dell Dimension 4600
Intel Pentium 4 2.6Ghz w/ HT and 800Mhz fbs.
1.5GB DUAL CHANNEL DDR SDRAM RAM 400mhz
ATI Radeon 9800 PRO 128MB DDR
120GB ATA 7200HD
Sound Blaster Live! 5.1
4.1 Al



Sponsored Link
Ads by Google

Response Number 1
Name: Fel
Date: August 29, 2005 at 20:55:14 Pacific
Reply:

i don't know very much about java, but shouldn't it like this?

System.out.println();

not System.out.PrintIn();


Athlon 64 2800+ @ 2.63 Ghz Stock Cooling
Timings:2-3-2-5
V-Gen 512MB pc3200
DFI Lanparty UT NF3
Abit R9550 VGuru XTurbo
525Mhz/300Mhz


0

Response Number 2
Name: gimmpy225
Date: August 29, 2005 at 21:00:43 Pacific
Reply:

first up, its System.out.println();

the ln is LN not IN

Java is case sensitive so be careful with the capital letters, if they arnt supposed to be there youll get errors.

GIMPS


0

Response Number 3
Name: Dark29delx
Date: August 29, 2005 at 21:08:19 Pacific
Reply:

ok i did this but its doing the SAME thing

public class test
{
public static void main(String[] args)
{
//DISPLAY//

System.out.printLn("Hello");
System.out.printLn("World!");
}
}

Dell Dimension 4600
Intel Pentium 4 2.6Ghz w/ HT and 800Mhz fbs.
1.5GB DUAL CHANNEL DDR SDRAM RAM 400mhz
ATI Radeon 9800 PRO 128MB DDR
120GB ATA 7200HD
Sound Blaster Live! 5.1
4.1 Al


0

Response Number 4
Name: SN
Date: August 29, 2005 at 21:14:28 Pacific
Reply:

gimpy already said it...it's System.out.println("Hello");

NOT

System.out.printLn("Hello");

Case counts!

-SN


0

Response Number 5
Name: Dark29delx
Date: August 29, 2005 at 21:25:00 Pacific
Reply:

woot! it worked thanx.

Lol when I read the lower "l" it looked like an I.

so yeh lol woot Hello WORLD!

Dell Dimension 4600
Intel Pentium 4 2.6Ghz w/ HT and 800Mhz fbs.
1.5GB DUAL CHANNEL DDR SDRAM RAM 400mhz
ATI Radeon 9800 PRO 128MB DDR
120GB ATA 7200HD
Sound Blaster Live! 5.1
4.1 Al


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

Printing a textbox, VB.ne... PHP find characters in fi...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: java error

JAVA error when no Administrator ri www.computing.net/answers/programming/java-error-when-no-administrator-ri/18029.html

java.lang.object error www.computing.net/answers/programming/javalangobject-error/5339.html

Java Helper www.computing.net/answers/programming/java-helper/2740.html