When compiling enterprise.wsdl with force-wsc-58.0.0-uber.jar I was getting the following exception:
$ java -classpath force-wsc-58.0.0-uber.jar com.sforce.ws.tools.wsdlc enterprise-58-0.wsdl enterprise-58-0.0.jar
[WSC][wsdlc.main:72]Generating Java files from schema ...
[WSC][wsdlc.main:72]Generated 2724 java files.
Exception in thread "main" java.lang.NullPointerException
at com.sforce.ws.codegen.Compiler.<init>(Compiler.java:48)
at com.sforce.ws.codegen.Generator.compileTypes(Generator.java:137)
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:129)
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:163)
at com.sforce.ws.tools.wsdlc.main(wsdlc.java:72)