Skip to content

Commit dc2fd47

Browse files
authored
Update java.coffee
1 parent 3fcfb5e commit dc2fd47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grammars/java.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports =
1919
sourcePath = GrammarUtils.Java.getProjectPath context
2020
if windows
2121
return ["/c javac -Xlint #{context.filename} && java #{className}"]
22-
else ['-c', "javac -sourcepath '#{sourcePath}' -d /tmp '#{context.filepath}' && java -Dfile.encoding=UTF-8 -cp /tmp #{classPackages}#{className}"]
22+
else ['-c', "javac -J-Dfile.encoding=UTF-8 -sourcepath '#{sourcePath}' -d /tmp '#{context.filepath}' && java -Dfile.encoding=UTF-8 -cp /tmp #{classPackages}#{className}"]
2323
}
2424
Kotlin:
2525
'Selection Based': {

0 commit comments

Comments
 (0)