Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Spring Basics Spring Components and Configuring Our App Configure a Spring Application

Dilan Horana
Dilan Horana
16,176 Points

Keep getting compiler errors but not sure why

Added the appropriate annotation as challenge requires but getting these errors (below) even when I remove my code they persist.

JavaTester.java:71: error: illegal start of expression package com.teamtreehouse.sample; ^ JavaTester.java:71: error: not a statement package com.teamtreehouse.sample; ^ JavaTester.java:73: error: illegal start of expression import org.springframework.boot.SpringApplication; ^ JavaTester.java:73: error: not a statement import org.springframework.boot.SpringApplication; ^ JavaTester.java:74: error: illegal start of expression import org.springframework.boot.autoconfigure.EnableAutoConfiguration; ^ JavaTester.java:74: error: not a statement import org.springframework.boot.autoconfigure.EnableAutoConfiguration; ^ 6 errors

package com.teamtreehouse.sample;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

public class SpringConfig {


1 Answer

Jason Anders
Jason Anders
Treehouse Moderator 145,631 Points

Hi Dilan,

Unfortunately, there have been some issues with the Java challenges and the Code Checker engines. I'm sure the Support Team is working hard to fix the problem!

For the time being, I suggest continuing on with the course (if you'd like) by navigating over the challenge using the buttons in the progress bar above the video window.

Just make sure you come back later to complete the challenge so you receive full credit and the badge for the course. Hopefully everything gets up and going smoothly soon.

Keep Coding! :) :dizzy:

Dilan Horana
Dilan Horana
16,176 Points

Thanks Jason,

I suspected that was the issue as I had encountered it on a few challenges and just kept moving on.

Just wanted to confirm my suspicions

Thanks again :)