Answer the question
In order to leave comments, you need to log in
How to execute compiled java class on android?
Hello. I want to be able to compile and execute simple Java classes directly on an Android 10 device.
Installed Termux and ecj. Created a simple class in the editor.
public class TestClass
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
$ dalvikvm TestClass
Unable to locate class 'TestClass' java.lang.ClassNotFoundException: TestClass Exception in thread "main" java.lang.ClassNotFoundException: TestClass
Answer the question
In order to leave comments, you need to log in
It seems to me that you should not bother, but take AIDE . There you can build / run Java, android applications, and C ++ to the heap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question