在Windows 8中的cmd中编译java代码时出错 [英] error in compiling java code in cmd in windows 8
问题描述
我在Windows 8中通过cmd编译java程序时出现问题
我不知道这是什么错误所以我最好采取代码和cmd窗口的屏幕截图你最好告诉关于这一点我用谷歌搜索它但是它们不合适的解决方案
我还在使用带有媒体中心的Windows 8这是一个问题,为什么我不能在其中安装谷歌浏览器''第二个问题谢谢
java的第一个问题
< img src =http ://cdn.imghack.se/images/da3809160cd923a666028ca0519bf95d.png>
和关于镀铬的第二个问题
http://cdn.imghack.se/images/1172dbaa4c658968a51d8f9b6c34986b.png [ ^ ]
谢谢
< blockquote>你好,
我认为编辑器中的代码不是你要编译的代码。如果您查看错误,它会清楚地说明< identifier>在 Public
之后预期,而 Public
不是有效的标识符。它应该是 public
。
与此错误并不真正相关,但main方法的首选语法是
public 静态 void main( String [] args)
问候,
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
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 wordPublic
, andPublic
is not a valid identifier. It should bepublic
.
Not really related to this error but the preferred syntax for main method ispublic static void main(String[] args)
Regards,
这篇关于在Windows 8中的cmd中编译java代码时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!