import org.apache.spark.SparkContext object wordcount { def main(args: Array[String]) { val inputPath =args(0) val outputPath = args(1) val sc = new SparkContext() val lines = sc.textFile(inputPath) val wordCounts = lines.flatMap{line => line.split(" ")}.map(word => (word, 1)).reduceByKey(_ + _) wordCounts.saveAsTextFile(outputPath) sc.stop() } }
然后编译没问题,运行就出现下面这个问题
/opt/jvm/jdk1.8.0_161/bin/java -Dspark.master = local -javaagent:/opt/idea-IC-173.4674.33/lib/idea_rt.jar=46212:/opt/idea-IC-173.4674.33/bin -Dfile.encoding=UTF-8 -classpath /opt/jvm/jdk1.8.0_161/jre/lib/charsets.jar:/opt/jvm/jdk1.8.0_161/jre/lib/deploy.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/cldrdata.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/dnsns.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/jaccess.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/jfxrt.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/localedata.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/nashorn.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/sunec.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/sunjce_provider.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/sunpkcs11.jar:/opt/jvm/jdk1.8.0_161/jre/lib/ext/zipfs.jar:/opt/jvm/jdk1.8.0_161/jre/lib/javaws.jar:/opt/jvm/jdk1.8.0_161/jre/lib/jce.jar:/opt/jvm/jdk1.8.0_161/jre/lib/jfr.jar:/opt/jvm/jdk1.8.0_161/jre/lib/jfxswt.jar:/opt/jvm/jdk1.8.0_161/jre/lib/jsse.jar:/opt/jvm/jdk1.8.0_161/jre/lib/management-agent.jar:/opt/jvm/jdk1.8.0_161/jre/lib/plugin.jar:/opt/jvm/jdk1.8.0_161/jre/lib/resources.jar:/opt/jvm/jdk1.8.0_161/jre/lib/rt.jar:/home/magina/Document/IdeaProjects/untitled/target/scala-2.11/classes:/home/magina/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/xz-1.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jta-1.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jpam-1.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/ST4-4.0.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/guice-3.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/ivy-2.4.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/lz4-1.3.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/oro-2.0.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/avro-1.7.7.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/core-1.1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/gson-2.2.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/mail-1.4.7.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/mx4j-3.0.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/snappy-0.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/antlr-2.7.7.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/opencsv-2.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/py4j-0.10.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/xmlenc-0.52.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/base64-2.3.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/guava-14.0.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/janino-3.0.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jets3t-0.9.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jetty-6.1.26.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jline-2.12.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jsr305-1.3.9.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/log4j-1.2.17.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/minlog-1.3.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/stream-2.7.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jdo-api-3.0.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/objenesis-2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/paranamer-2.6.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/pyrolite-4.13.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/scalap-2.11.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/JavaEWAH-0.3.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/avro-ipc-1.7.7.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-io-2.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/httpcore-4.4.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javax.inject-1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jaxb-api-2.2.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/libfb303-0.9.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/stax-api-1.0-2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/stax-api-1.0.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/aopalliance-1.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-cli-1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-net-2.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/derby-10.12.1.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/joda-time-2.9.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jodd-core-3.5.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/libthrift-0.9.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/super-csv-2.2.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/zookeeper-3.4.6.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/activation-1.1.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/chill-java-0.8.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/chill_2.11-0.8.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-dbcp-1.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-lang-2.6.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/httpclient-4.5.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javolution-5.5.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/slf4j-api-1.7.16.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/xercesImpl-2.9.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/antlr-runtime-3.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-lang3-3.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/guice-servlet-3.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-auth-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-hdfs-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hk2-api-2.4.0-b34.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/htrace-core-3.0.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-xc-1.9.13.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jetty-util-6.1.26.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jtransforms-2.4.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/kryo-shaded-3.0.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/metrics-jvm-3.1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/netty-3.9.9.Final.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/pmml-model-1.2.15.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spire_2.11-0.13.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/api-util-1.0.0-M20.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/breeze_2.11-0.13.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-codec-1.10.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-pool-1.5.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/compress-lzf-1.0.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-core-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/leveldbjni-all-1.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/metrics-core-3.1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/metrics-json-3.1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/pmml-schema-1.2.15.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/bcprov-jdk15on-1.51.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-math3-3.4.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-client-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-common-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hk2-utils-2.4.0-b34.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/java-xmlbuilder-1.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javassist-3.18.1-GA.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-guava-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jul-to-slf4j-1.7.16.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/protobuf-java-2.5.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/snappy-java-1.1.2.6.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/RoaringBitmap-0.5.11.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/antlr4-runtime-4.5.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/bonecp-0.8.0.RELEASE.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-crypto-1.0.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-digester-1.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/curator-client-2.6.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-jaxrs-1.9.13.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-client-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-common-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-server-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/machinist_2.11-0.6.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-column-1.8.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-common-1.8.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-format-2.3.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-hadoop-1.8.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/scala-library-2.11.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/scala-reflect-2.11.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/scala-xml_2.11-1.0.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/shapeless_2.11-2.3.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/slf4j-log4j12-1.7.16.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-sql_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/stringtemplate-3.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-logging-1.1.3.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/curator-recipes-2.6.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-yarn-api-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hive-cli-1.2.1.spark2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hk2-locator-2.4.0-b34.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javax.ws.rs-api-2.0.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jcl-over-slf4j-1.7.16.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-jackson-1.8.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/scala-compiler-2.11.8.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-core_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-hive_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-repl_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-tags_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-yarn_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/xbean-asm5-shaded-4.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/api-asn1-api-1.0.0-M20.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-compiler-3.0.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-compress-1.4.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-httpclient-3.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hive-exec-1.2.1.spark2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hive-jdbc-1.2.1.spark2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-databind-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javax.inject-2.4.0-b34.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/json4s-ast_2.11-3.2.11.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/metrics-graphite-3.1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/netty-all-4.0.43.Final.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-encoding-1.8.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-mesos_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-mllib_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/apacheds-i18n-2.0.0-M15.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/arpack_combined_all-0.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-beanutils-1.7.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/curator-framework-2.6.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/datanucleus-core-3.2.10.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/datanucleus-rdbms-3.2.9.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-core-asl-1.9.13.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javax.servlet-api-3.1.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/json4s-core_2.11-3.2.11.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/macro-compat_2.11-1.1.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-graphx_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-sketch_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-unsafe_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/univocity-parsers-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-annotations-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-yarn-client-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-yarn-common-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/javax.annotation-api-1.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-media-jaxb-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spire-macros_2.11-0.13.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/avro-mapred-1.7.7-hadoop2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/breeze-macros_2.11-0.13.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-collections-3.2.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-configuration-1.6.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/datanucleus-api-jdo-3.2.6.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hive-beeline-1.2.1.spark2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-annotations-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-mapper-asl-1.9.13.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-catalyst_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-launcher_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/apache-log4j-extras-1.2.17.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/eigenbase-properties-1.1.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/json4s-jackson_2.11-3.2.11.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-streaming_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/validation-api-1.1.0.Final.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hive-metastore-1.2.1.spark2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/mesos-1.0.0-shaded-protobuf.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/osgi-resource-locator-1.0.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/parquet-hadoop-bundle-1.6.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/commons-beanutils-core-1.8.0.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-mllib-local_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/calcite-core-1.2.0-incubating.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-module-paranamer-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/calcite-linq4j-1.2.0-incubating.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-yarn-server-common-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jackson-module-scala_2.11-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-container-servlet-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-network-common_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/aopalliance-repackaged-2.4.0-b34.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/calcite-avatica-1.2.0-incubating.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-network-shuffle_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/apacheds-kerberos-codec-2.0.0-M15.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-mapreduce-client-app-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-mapreduce-client-core-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-yarn-server-web-proxy-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/spark-hive-thriftserver_2.11-2.2.1.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/scala-parser-combinators_2.11-1.0.4.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-mapreduce-client-common-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/jersey-container-servlet-core-2.22.2.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-mapreduce-client-shuffle-2.6.5.jar:/opt/spark-2.2.1-bin-hadoop2.6/jars/hadoop-mapreduce-client-jobclient-2.6.5.jar wordcount /home/magina/Document/IdeaProjects/untitled/text1.txt /home/magina/Document/IdeaProjects/untitled/text2.txt
Error: Could not find or load main class =
Process finished with exit code 1
求帮忙
其实原因很简单,就是一个空格惹发的悬案。就是VM option选项那里=号两边不能用空格