添加-encoding gbk即可编译成功
javac -encoding gbk -cp .:activemq-all-5.11.1.jar JMSConsumer.java
linux下独立运行java程序
http://os.51cto.com/art/201104/256055.htm
本文出自 “一无所有-天行者” 博客,请务必保留此出处http://tianxingzhe.blog.51cto.com/3390077/1686617
linux环境下编译带中文的java源文件unmappable character for encoding UTF8
原文地址:http://tianxingzhe.blog.51cto.com/3390077/1686617