Fixing Solr error: Error CREATEing SolrCore ‘new_core’

If you run solr for the first time and try to make a core through the UI, you can get the following error:

Error CREATEing SolrCore 'new_core': 
Unable to create core [new_core] 

Caused by: Can't find resource 'solrconfig.xml' in classpath or

If you go to the properties screen, you can find out what is on the classpath:


The reason you get the above error message is the source files aren't on the classpath - you can either add it, or copy all the files from here:


To here: