# Porting a Java Console Program to Android

**URL:** <https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108>\
**Category:** Off-Topic\
**Created:** [June 30, 2019, 6:42pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108 "2019-06-30T18:42:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoePringles](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@JoePringles](https://forums.solar2d.com/u/JoePringles)\
**Post date:** [June 30, 2019, 6:42pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/1 "2019-06-30T18:42:58Z")

</div>

I made a little console program with java.  
It’s just made up of prints, buffered readers, and if statements.  
Any idea on how I can convert this program into an apk file?

---

<div class="post-metadata">

**Author:** ![XeduR](https://forums.solar2d.com/user_avatar/forums.solar2d.com/xedur/32/256_2.png) [@XeduR](https://forums.solar2d.com/u/XeduR)\
**Post date:** [June 30, 2019, 6:47pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/2 "2019-06-30T18:47:38Z")

</div>

You could turn it into a native Java plugin and require it in your Corona project.

[http://docs.coronalabs.com/native/plugin/index.html#native-java](http://docs.coronalabs.com/native/plugin/index.html#native-java)

---

<div class="post-metadata">

**Author:** ![JoePringles](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@JoePringles](https://forums.solar2d.com/u/JoePringles)\
**Post date:** [July 2, 2019, 8:54pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/3 "2019-07-02T20:54:03Z")

</div>

I’ll try that thanks!

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [July 3, 2019, 10:03pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/4 "2019-07-03T22:03:47Z")

</div>

I’m not sure what your goal here is. If it’s a “little” program, why not simply create an Android Studio project and make an APK file there, or just rewrite in in Lua and use Corona.

Keep in mind that mobile apps (where you would use a .apk) has a paradigm of a User Interface and screen/touch interactivity. People generally don’t run console programs on mobile devices. That seems odd.&nbsp;

Rob

---

<div class="post-metadata">

**Author:** ![XeduR](https://forums.solar2d.com/user_avatar/forums.solar2d.com/xedur/32/256_2.png) [@XeduR](https://forums.solar2d.com/u/XeduR)\
**Post date:** [June 30, 2019, 6:47pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/5 "2019-06-30T18:47:38Z")

</div>

You could turn it into a native Java plugin and require it in your Corona project.

[http://docs.coronalabs.com/native/plugin/index.html#native-java](http://docs.coronalabs.com/native/plugin/index.html#native-java)

---

<div class="post-metadata">

**Author:** ![JoePringles](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@JoePringles](https://forums.solar2d.com/u/JoePringles)\
**Post date:** [July 2, 2019, 8:54pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/6 "2019-07-02T20:54:03Z")

</div>

I’ll try that thanks!

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [July 3, 2019, 10:03pm UTC](https://forums.solar2d.com/t/porting-a-java-console-program-to-android/350108/7 "2019-07-03T22:03:47Z")

</div>

I’m not sure what your goal here is. If it’s a “little” program, why not simply create an Android Studio project and make an APK file there, or just rewrite in in Lua and use Corona.

Keep in mind that mobile apps (where you would use a .apk) has a paradigm of a User Interface and screen/touch interactivity. People generally don’t run console programs on mobile devices. That seems odd.&nbsp;

Rob
