Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree typ  RSS feed

 
Ross Gerard
Ranch Hand
Posts: 53
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to get code to compile but getting strange error message.






























 
Paul Clapham
Sheriff
Posts: 22503
43
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you aren't trying to compile that code. That error message happens when you try to run the code before successfully compiling it.

I expect you are using some kind of IDE like NetBeans maybe. So review the compiler errors before you click the Run button.
 
Ross Gerard
Ranch Hand
Posts: 53
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, that worked. What a strange message.
 
Campbell Ritchie
Marshal
Posts: 55751
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, if you use IDEs regularly, you will see that sort of message frequently. We have an FAQ about it.
If you look at the code, you will see little red marks against some lines. Those are where the compiler errors are
 
Ross Gerard
Ranch Hand
Posts: 53
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont use IDES on a regular basis. Thanks for the link!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!