Click here to Skip to main content
13,192,855 members (57,785 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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="http://cdn.imghack.se/images/da3809160cd923a666028ca0519bf95d.png">

and 2nd problem regarding chrome
http://cdn.imghack.se/images/1172dbaa4c658968a51d8f9b6c34986b.png[^]

thanks
Posted 30-Mar-13 1:57am
jahanxb327
Comments
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
 
good
Please Sign up or sign in to vote.

Solution 1

Hello,

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)

Regards,
  Permalink  

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 |
Web03 | 2.8.171017.2 | Last Updated 31 Mar 2013
Copyright © CodeProject, 1999-2017
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