本文介绍了在Windows 8中的cmd中编译java代码时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在Windows 8中通过cmd编译java程序时出现问题 我不知道这是什么错误所以我最好采取代码和cmd窗口的屏幕截图你最好告诉关于这一点我用谷歌搜索它但是它们不合适的解决方案 我还在使用带有媒体中心的Windows 8这是一个问题,为什么我不能在其中安装谷歌浏览器''第二个问题谢谢 java的第一个问题 < img src =http ://cdn.imghack.se/images/da3809160cd923a666028ca0519bf95d.png> 和关于镀铬的第二个问题 http://cdn.imghack.se/images/1172dbaa4c658968a51d8f9b6c34986b.png [ ^ ] 谢谢解决方案 你好, 我认为编辑器中的代码不是你要编译的代码。如果您查看错误,它会清楚地说明< identifier>在 Public 之后预期,而 Public 不是有效的标识符。它应该是 public 。 与此错误并不真正相关,但main方法的首选语法是 public 静态 void main( String [] args) 问候, I got a problem in compiling java programs in windows 8 through cmdI 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 solutionone 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 thanks1st problem with java<img src="http://cdn.imghack.se/images/da3809160cd923a666028ca0519bf95d.png">and 2nd problem regarding chromehttp://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 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, 这篇关于在Windows 8中的cmd中编译java代码时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-06 04:57