Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,291 members, 7,836,277 topics. Date: Wednesday, 22 May 2024 at 01:58 AM

Help On Java Study - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help On Java Study (711 Views)

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 Java (2) (3) (4)

(1) (Reply) (Go Down)

Help On Java Study by Anyinaira: 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)

In Search Of Knowledge: / Sia One Website / I Need Info Pls

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.