ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.91k stars 890 forks source link

Compile Java #2360

Closed gitstudent-000 closed 2 months ago

gitstudent-000 commented 6 months ago

Is it possible to compile .java file using iSH on apple iOS. If it is please explain how to.

Also is there a list of all languages that can be compiled on apple iOS using iSH.

Ari-RERA-43 commented 6 months ago

You may be able to do the following, which is the normal way of compiling Java programs on Linux:

# Install the JDK using apk, the Alpine Linux package manager (you only need to do this the first time)
apk add openjdk8-jdk
# Compile the Java program like you normally would
javac <yourjavafile.java>
Sadasak commented 6 months ago

@Ari-RERA-43 ,

It's not working with me:


ERROR: unable to select packages:
  openjdk8-jdk (no such package):
    required by: world[openjdk8-jdk]
LukeIvan commented 6 months ago

@Sadasak

It's not working with me:

ERROR: unable to select packages:
  openjdk8-jdk (no such package):
    required by: world[openjdk8-jdk]

Check your /etc/apk/repositories file, the line containing the community repo ('http://apk.ish.app/v(VERSION)/community') may be commented out. Use whichever editor to remove the comment and try again.