Skip to content
Advertisement

Getting Error while creating a package in java

while creating a package for my file it giving error message

error: no source files

i’m running this command

javac -d .calculator.java

Advertisement

Answer

I don’t fully understand what you tried to do there, but you should try

javac -d . calculator.java

notice the “.” is separated from the “calculator” by a space

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement