Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Java Windows JDK command
I got a problem in compiling java programs in windows 8 through cmd
I don't know whats the error so I better take a screen shot of the code and the cmd window you better tell me about this I googled it but their is no suitable solution
one more thing I am using windows 8 with media center is that a problem and why I can't install google chrome in it that's the second problem thanks
1st problem with java
<img src="">
and 2nd problem regarding chrome[^]
Posted 30-Mar-13 2:57am
jahanxb at 30-Mar-13 10:43am
well why is no body giving me solution of this problem :(
H.Brydon at 30-Mar-13 15:44pm
Two things:
(1) There are a lot of security problems in the web nowadays. A lot of people (including me) are reluctant to click on links which go to unfamiliar places, especially from an unfamiliar person (sorry but that's you). There is a high probability of bad things happening from these type of links.
(2) If you have 2 questions they should be asked separately. Your java question probably belongs here (if you fix your external link problem), but I don't think the Chrome question does. I'm not sure where you should ask it (but not here).

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I think the code in editor is not the code you are trying to compile. If you look at the error it clearly says expected after the word Public, and Public is not a valid identifier. It should be public.
Not really related to this error but the preferred syntax for main method is
public static void main(String[] args)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 160
1 Mika Wendelius 156
2 TheRealSteveJudge 129
3 Abhinav S 125
4 Suvendu Shekhar Giri 100
0 Sergey Alexandrovich Kryukov 8,513
1 OriginalGriff 6,526
2 Peter Leow 3,727
3 Zoltán Zörgő 3,426
4 Richard MacCutchan 2,417

Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100