scala-ide

Scala Error: Could not find or load main class in both Scala IDE and Eclipse

孤者浪人 提交于 2019-11-28 12:09:13
Here is my problem, I know there are lots of answers for similar questions, however none of them worked after I tried. I'm using both Scala IDE 4.6 and eclipse Oxygen to run the code and all failed on this error. Here's my scala compiler configuration: Here is my run configuration: Here is my code, file structure and error showed in console: Here is the information Problem console: From online answer, I have already tried to clean the project before building, I also tried all the versions of JVM and Scala compiler, all of those didn't help. The code was directly import from a online course

Flink Scala API “not enough arguments”

a 夏天 提交于 2019-11-28 07:19:07
问题 I'm having troubles using Apache Flink Scala API For example, even when I take the examples from the official documentation, the scala compiler gives me tons of compilation errors. Code: object TestFlink { def main(args: Array[String]) { val env = ExecutionEnvironment.getExecutionEnvironment val text = env.fromElements( "Who's there?", "I think I hear them. Stand, ho! Who's there?") val counts = text.flatMap { _.toLowerCase.split("\\W+") filter { _.nonEmpty } } .map { (_, 1) } .groupBy(0)

Scala Error: Could not find or load main class in both Scala IDE and Eclipse

岁酱吖の 提交于 2019-11-27 19:22:56
问题 Here is my problem, I know there are lots of answers for similar questions, however none of them worked after I tried. I'm using both Scala IDE 4.6 and eclipse Oxygen to run the code and all failed on this error. Here's my scala compiler configuration: Here is my run configuration: Here is my code, file structure and error showed in console: Here is the information Problem console: From online answer, I have already tried to clean the project before building, I also tried all the versions of

Errors in Eclipse for Scala project generated by Play Framework

人盡茶涼 提交于 2019-11-27 14:32:07
问题 I would like to use Eclipse as IDE for a Scala web application using Play Framework. I downloaded Eclipse 3.6.2. Then I installed Scala IDE 2.0 (beta) for Eclipse. I downloaded Play Framework 1.2.2RC1 and installed the Scala Module using play install scala-0.9.1 and generated a new site with play new mysite . Then I eclipsified it with play eclipsify mysite and imported the project in Eclipse. But now I get many errors in Eclipse. Is this anything I can fix or are the different projects

Scala project won't compile in Eclipse; “Could not find the main class.”

不羁的心 提交于 2019-11-27 14:18:48
I have installed Eclipse 3.5.2 and today's Scala plugin from /update-current (that's Scala 2.8 final.) I can compile and run Scala projects consisting of a single singleton object that implements main(). But, if a project contains more classes, I receive the "Could not find the main class" error. I have tried searching for the solution and I discovered: Eclipse is correctly looking for the Main$ class, not the Main class * under Debug Configurations, my main class is correctly identified as mypackage.Main * my plugin is up to date and recommended for my version of Eclipse * cleaning,

How to get inline results in a worksheet in Eclipse/Scala-IDE on Ubuntu 12.04?

梦想的初衷 提交于 2019-11-27 07:48:57
问题 I've got the Scala-IDE installed on my Mac and on my pc with Ubuntu 12.04. In there I created a project, with a package and in there a worksheet. On my mac, the worksheet shows results of every line on the same line on the right. For example: package mypackage object myworksheet { println("Hello World!") > Hello World! } On Ubuntu however, I do not see the result on the right. I've tried making changes in the worksheet and saving it, but it makes no difference. Does anybody know how I can get