Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Java #2360

Open
gitstudent-000 opened this issue Mar 8, 2024 · 3 comments
Open

Compile Java #2360

gitstudent-000 opened this issue Mar 8, 2024 · 3 comments

Comments

@gitstudent-000
Copy link

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
Copy link

Ari-RERA-43 commented Mar 9, 2024

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
Copy link

Sadasak commented Mar 12, 2024

@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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants