# gradle-tooling-API : Capture Compilation Issue

**URL:** <https://discuss.gradle.org/t/gradle-tooling-api-capture-compilation-issue/29091>\
**Category:** Help/Discuss\
**Created:** [October 16, 2018, 1:31pm UTC](https://discuss.gradle.org/t/gradle-tooling-api-capture-compilation-issue/29091 "2018-10-16T13:31:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashishkel](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@Ashishkel](https://discuss.gradle.org/u/Ashishkel)\
**Post date:** [October 16, 2018, 1:31pm UTC](https://discuss.gradle.org/t/gradle-tooling-api-capture-compilation-issue/29091/1 "2018-10-16T13:31:41Z")

</div>

Hi  
We are working on an online editor for the java code.

I am using Gradle Tooling API to build my final jar for the java project I am trying to build.

When there is any compilation issue in my java code, the gradle gives me a build exception.  
I am able to extract the compilation output only as a build.setStandardError(outputStream);  
But this content in the outputStream is pure text and then we have to analyze and extract information like which file and which line etc…  
Is there any structured output available in any class?

Regards  
Ashish
