Click here to Skip to main content
12,554,446 members (81,297 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java Windows JDK
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 1:57am
jahanxb 30-Mar-13 10:43am
well why is no body giving me solution of this problem :(
H.Brydon 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 <identifier> 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2016
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