本文介绍了如何修复Javac无效标志错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译一个STK小程序.

I am trying to compile a an STK applet.

首先,我想使用javac编译.java类.我收到一个错误(无效标志);这是我的命令:

Firstly, I would like to compile the .java class by using javac. I am getting an error (invalid flag); this is my command:

C:\Program Files (x86)\Java\jdk1.8.0_20\bin>javac C:\Users\user\Desktop\ImsiManager Applet\2014-07-34_ImsiManager_src\2014-07-34_ImsiManager_src\ImsiManager\src\main\java\com\simulity\javacard\imsimanager\ImsiManager.java
Javac: invalid flag: C:\Users\user\Desktop\ImsiManager
Usage: javac <options> <source files>
use -help for a list of possible options

推荐答案

问题是空格,您应该用引号将其括起来:

The problem are the spaces, you should enclose it with quotes:

javac "C:\Users\user\Desktop\ImsiManager Applet\2014-07-34_ImsiManager_src\2014-07-34_ImsiManager_src\ImsiManager\src\main\java\com\simulity\javacard\imsimanager\ImsiManager.java"

这篇关于如何修复Javac无效标志错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-12 18:42