JCreator中打开以写好的java程序能编译,但在写好的java程序中用JCreator打开就不能编译 5
提示为:Usage:java[-options]class[args...](toexecuteaclass)orjava[-options]-jarjarfile[ar...
提示为:
Usage: java [-options] class [args...] (to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include: -client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client
...........................
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
Process completed. 展开
Usage: java [-options] class [args...] (to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include: -client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client
...........................
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
Process completed. 展开
2个回答
展开全部
应该是文件编码问题,程序中有中文注释吧?
就是实际编译命令中
javac -encoding utf-8 xxx.java
的utf-8那部分
可以设置编译器的默认编码,也可以将你说说的写好的java程序另存为编译器默认的编码
就是实际编译命令中
javac -encoding utf-8 xxx.java
的utf-8那部分
可以设置编译器的默认编码,也可以将你说说的写好的java程序另存为编译器默认的编码
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询