# Generated classfiles are empty at try.kotlinlang.org

**URL:** <https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655>\
**Category:** Uncategorized\
**Created:** [May 18, 2017, 1:24pm UTC](https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655 "2017-05-18T13:24:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexTrotsenko](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AlexTrotsenko](https://discuss.kotlinlang.org/u/AlexTrotsenko)\
**Post date:** [May 18, 2017, 1:24pm UTC](https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655/1 "2017-05-18T13:24:37Z")

</div>

Hello,

at [try.kotlinlang.org](http://try.kotlinlang.org) when I run Kotlin code and select `JavaScript` runtime - I am able to see JS sources in “Generated JavaScript code”. But if I select `JVM` runtime - I see empty tab “Generated classfiles”.

Just in case: I am running it in Chrome 58.0.3029.110 (64-bit) on OS X.

Any ideas why?

P.S. Please, let me know if it’s not a proper place for asking such questions.

---

<div class="post-metadata">

**Author:** ![ilya.gorbunov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ilya.gorbunov/32/1645_2.png) [@ilya.gorbunov](https://discuss.kotlinlang.org/u/ilya.gorbunov)\
**Post date:** [May 18, 2017, 2:51pm UTC](https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655/2 "2017-05-18T14:51:51Z")

</div>

I confirm I see empty tab too.

Seems this problem is already reported as [https://youtrack.jetbrains.com/issue/KT-16582](https://youtrack.jetbrains.com/issue/KT-16582)

---

<div class="post-metadata">

**Author:** ![AlexTrotsenko](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@AlexTrotsenko](https://discuss.kotlinlang.org/u/AlexTrotsenko)\
**Post date:** [May 29, 2017, 12:34pm UTC](https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655/3 "2017-05-29T12:34:04Z")

</div>

Thanks for the link to the issue. I have added my comments & examples there as well.

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [May 29, 2017, 12:46pm UTC](https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655/4 "2017-05-29T12:46:31Z")

</div>

The Kotlin compiler doesn’t generate Java source code. It’s possible to decompile Kotlin-generated bytecode to Java, and this sometimes works reasonably well and sometimes gives completely misleading results. Therefore, we have no plans to show any Java source code produced from Kotlin code in the Web demo.

---

<div class="post-metadata">

**Author:** ![ilya.gorbunov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ilya.gorbunov/32/1645_2.png) [@ilya.gorbunov](https://discuss.kotlinlang.org/u/ilya.gorbunov)\
**Post date:** [May 29, 2017, 4:31pm UTC](https://discuss.kotlinlang.org/t/generated-classfiles-are-empty-at-try-kotlinlang-org/2655/5 "2017-05-29T16:31:46Z")

</div>

> [@yole](#):
>
> Therefore, we have no plans to show any Java source code produced from Kotlin code in the Web demo.

AFAIK, nobody in this thread asked for that.

I suggest showing the generated bytecode in textual form instead, as it is shown in ‘Kotlin Bytecode’ window in IDEA.
