1
I am using atom.io which works perfectly with my Python programs, but I can't run any Java without getting this error? From looking at other users questions on the issue, the answers said to change the path name but I can't seem to figure out how.
javac: invalid flag: /Users/MacBookHAL/Documents/AtomWorkspace/CompSci/Test
Usage: javac <options> <source files>
use --help for a list of possible options
How are you running the command? Are you running it through terminal? – BlueDrink9 – 2019-02-13T03:16:44.483
I am just trying to run a simple program in the atom.io IDE but I get the error when I run it. – junkinmunchkin – 2019-02-13T03:17:55.647
Have you tried renaming the file/running a file without spaces in the name? How do you know the spaces are the issue? – BlueDrink9 – 2019-02-13T03:20:14.300
1I don't, but I don't know how to edit the path name. I have looked at previous Stack questions on this issue and they all have said it is a problem with the path name. – junkinmunchkin – 2019-02-13T03:21:50.657
I'd suggest editing the question to include that information. – BlueDrink9 – 2019-02-13T03:23:10.020
Regarding the path name, what file are you trying to run? Or is it all java files that will do that? – BlueDrink9 – 2019-02-13T03:23:42.770
Yes all java projects that I am trying to run are all giving me this error. – junkinmunchkin – 2019-02-13T03:27:16.007
Did you configure atom at all for java? For example installing a plugin/package? – BlueDrink9 – 2019-02-13T03:36:54.393
I installed linter packages for Java specifically and updated Java but not much else, anything I should have done? – junkinmunchkin – 2019-02-13T03:38:07.700
What packages specifically? Also, what is the output in terminal.app of
which javac
? – BlueDrink9 – 2019-02-13T03:39:28.920Can you try to isolate the issue to atom by running in terminal
javac <your-.java-file>
? – BlueDrink9 – 2019-02-13T03:40:02.4501When I run
javac
followed by my file name in the terminal I am given the same error message. – junkinmunchkin – 2019-02-13T03:42:37.830Ah, that's important. You should edit your question with that information. What's the output of
which javac
? – BlueDrink9 – 2019-02-13T03:44:30.2171when I run
which javac
it returns/usr/bin/javac
– junkinmunchkin – 2019-02-13T03:45:44.887Did you put quotes around your file name when running
javac
? – BlueDrink9 – 2019-02-13T03:47:52.743Do you have the script package installed?
– BlueDrink9 – 2019-02-13T03:49:13.817