Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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

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

gimpy already said it...it's System.out.println("Hello");
NOT
System.out.printLn("Hello");
Case counts!
-SN

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

![]() |
Printing a textbox, VB.ne...
|
PHP find characters in fi...
|

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