Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
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

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
Java
public static void main(String[] args)

Regards,
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900