5

I wrote a simple java program in which I input two numbers and then a little bit of information is printed in the console.

Do any of you know how I could run this on a TI-84 Plus calculator?

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
  • 3
    You almost certainly can't. Java requires a JVM, and the TI-84 is too small to have one. – chrylis -cautiouslyoptimistic- Nov 27 '18 at 22:29
  • 2
    From the article you linked to: *There are three different types of programs which can be downloaded or programmed into the calculators: TI-BASIC, Z80 assembly language, and Flash applications (also written in Z80 assembly)*. Do you see Java listed there? – JB Nizet Nov 27 '18 at 22:29
  • I'm pretty sure there's no java runtime for any Z80 processor, not even the TI-84. You might maybe get some chain of java-to-X compilers going but you'd probably still need to provide a base-platform layer to map the input/output system calls. In-short: there's no simple way. – PeterT Nov 27 '18 at 22:30
  • 1
    https://stackoverflow.com/questions/30993221/multiple-language-programming-on-ti-calculator possible duplicate – newbie Nov 27 '18 at 22:31
  • @chrylis Who said Java needs a JVM to run? – alexanders916 Nov 27 '18 at 22:33
  • Most certainly you will have to implement your own jvm. It seems possible, judging from projects such as [leJOS](https://en.wikipedia.org/wiki/LeJOS) which run on very minimal hardware. – leonardkraemer Nov 27 '18 at 22:34
  • @alexanders916 Java ONLY runs on the JVM, that it is why cross platform compatible. Before running java code, a JVM instance is created – Meepo Jul 02 '19 at 21:05
  • @Meepo Nope, it's possible by compiling the byte/source code directly into machine code, see [here](https://stackoverflow.com/questions/25617865/how-to-run-java-program-without-jvm). – alexanders916 Jul 03 '19 at 12:16
  • @alexanders916 I hope you understand that literally all code has to be translated to machine code. Compiling something directly to the native system comes with many problems, in addition JVM handles things like garbage collection which is why in languages like C you have to de allocate things on the heap yourself. It is not the same thing. Besides, writings a direct compiler from Java to the Ti-84 machine code is not viable. – Meepo Jul 03 '19 at 20:24

1 Answers1

4

There isn't a way to run Java on a TI-84.

However for simple programs you can use TI-Basic which is a simple language that you can code directly on your calculator. Simply do prgm - new - create new You then enter in the name of your program and press enter. You'll be brought to an editor in which you can put your code. Pressing prgm will bring up a menu with many basic functions such as if statements, input/output, and graphing.

Since typing on a calculator is pretty tiring, you can download the TI Connect app which let's you code on your computer then send it to your calculator.

akmin04
  • 677
  • 6
  • 14