how to fix Javac invalid flag error?

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 

1 Answer

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" 
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like