how to fix Javac invalid flag error?
Asked Answered
K

2

5

I am trying to compile a an STK applet.

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
Kakalina answered 16/4, 2015 at 9:27 Comment(0)
I
8

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"
Institutional answered 16/4, 2015 at 9:36 Comment(0)
L
0

change your jdk version to upper version in your IDE and your project config

Lagging answered 8/4, 2023 at 8:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.