Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

很抱歉 问一个比较入门级的问题 代码在命令行下如何运行 #11

Open
truelv opened this issue Jul 5, 2017 · 1 comment

Comments

@truelv
Copy link

truelv commented Jul 5, 2017

我现在已经用javac生成了众多.class文件 但是用java命令去运行总是提示找不到或无法加载主类 我单独对page下的MainPage.class运行也是报这个错误。 摸索了挺长时间,还是没有弄清楚。我只写过c语言。谢谢

@liuyuit
Copy link

liuyuit commented May 12, 2022

$ cd src/

$ javac lyons/page/MainPage.java

$ java lyons/page/MainPage
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
***************************

         1.商品维护

         2.前台收银

         3.商品管理

***************************

请输入选项,或者按0退出.
请输入:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants