Skip to content

Gary Sieling

Principal Engineer

  • Machine Learning
  • Full Text Search
  • Data Science
  • Scraping
  • Postgres
  • DevOps
  • AWS
  • Talks

Tag: java

Posted on March 17, 2016

Fixing sbt error: java.lang.RuntimeException: No main class detected.

If you set up a scala project and try to build with sbt, you can get this error:

java.lang.RuntimeException: No main class detected.

This is caused by setting up the project incorrectly, like so:
Intellij Project

To fix this, move your main class into src/main/scala (this structure comes from the standard maven project structure):

Intellij Idea: correct project structure for a scala project

Posts navigation

Previous page Page 1 … Page 24 Page 25 Page 26 … Page 57 Next page
  • Thought Experiments
  • Proof of Concepts
  • Book Reviews
  • Projects
  • Essays
  • Talks
  • Programming Techniques
  • Javascript
  • Python
  • Prolog
  • Scala
  • Java
  • PHP
  • C#
  • R

Recent Posts

  • Allow a CircleCI self-hosted machine runner to run jobs for more than 5 hrs
  • Import a folder of CSVs into a single Google Sheet (1 per tab)
  • R Code to summarize Dept of Ed, Civil Rights Data by school district / LEA
  • Export Census ACS5 data by GEOID/block group to CSV in R
  • Get US Census population by block group (GEOID) in R
  • Get a list of census fields available at the GEOID (block group) level in R
  • PA Senate Committees 2023 CSV Download
Proudly powered by WordPress