₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,993 members, 8,419,843 topics. Date: Thursday, 04 June 2026 at 01:57 AM

Toggle theme

Help On Java Study - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHelp On Java Study (776 Views)

1 Reply (Go Down)

Help On Java Study by Anyinaira(op): 4:13pm On Mar 27, 2010
I just started learning programming with java as the 1st lang.i tried running this code on cmd prompt but it keeps saying that javac is not an internal or external command,operable program or batch file.

1: public class HelloUser {

2: public static void main(String[] arguments) {

3: String username = System.getProperty("user.name"wink;

4: System.out.println("Hello " + username);

5: }
Re: Help On Java Study by chukxy: 6:01pm On Mar 28, 2010
@ poster, there is no problem with your code, it worked. You only omitted the last brace }; hence:

public class HelloUser {

public static void main(String[] arguments) {

String username = System.getProperty("user.name"wink;

System.out.println("Hello " + username);

}

}

I think your challenge is that you have not set the classpath properly.
Re: Help On Java Study by shadowmay(m): 1:01pm On Mar 31, 2010
first try executing the javac command alone and c the output. if it doesnt show any thing then your class path setup is wrong
Re: Help On Java Study by selencious(f): 11:52pm On Apr 08, 2010
I prefer C++ to java. Im an expert in C++.
1 Reply

Pls Help Me With Ebooks On Java,d Price For The Book Is High And Am Still A Teen[Help Request] Help On Java download and Installation Oo!Help On Java234

Java (and Similar Languages) Missing Objects 2E-commerce In JavaProgramming