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

Remove JAVA config setting #15055

Closed
wants to merge 1 commit into from
Closed

Remove JAVA config setting #15055

wants to merge 1 commit into from

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 16, 2021

A couple of reasons for this simplification.

  1. We don't use java for anything anymore in the normal run of things.
    For closure-compiler we run the native version and only fall back
    to the Java version when there is no native version that the current
    architecture (i.e. on non-x86 platforms).
  2. In the case we do want to run the java version it makes sense to
    simply expect it to be installed in the PATH.

A couple of reasons for this simplification.

1. We don't use java for anything anymore in the normal run of things.
   For closure-compiler we run the native version and only fall back
   to the Java version when there is no native version that the current
   architecture (i.e. on non-x86 platforms).
2. In the case we do want to run the java version it makes sense to
   simpy expect to be installed in the PATH.
sbc100 added a commit to emscripten-core/emsdk that referenced this pull request Sep 16, 2021
Its possible we were not add this to directory to PATH to avoid
message with the user's already installed JAVA.  However this seems
inconsistent given:

1. We do set JAVA_HOME, which is already interfering with any java
   installation the user might have.
2. We do add node to that PATH, overriding any node installation the
   user might have.

This change makes removal of JAVA config setting from emscripten
feasible since it doesn't have to handle this strange half-configured
java installation: emscripten-core/emscripten#15055
sbc100 added a commit to emscripten-core/emsdk that referenced this pull request Sep 16, 2021
Its possible we were not adding this to directory to `PATH` to avoid
message with the user's already installed java.  However this seems
inconsistent given:

1. We do set `JAVA_HOME`, which is already interfering with any java
   installation the user might have.
2. We do add node to that PATH, overriding any node installation the
   user might have.

This change makes removal of `JAVA` config setting from emscripten
feasible since it doesn't have to handle this strange half-configured
java installation: emscripten-core/emscripten#15055

As a followup we could consider not install java at all anymore since it
doesn't have any usage in modern emscripten (at least not on windows
where the native version of closure-compiler should always be
available).
@sbc100
Copy link
Collaborator Author

sbc100 commented Sep 16, 2021

Closing in favor of #15056 for now

@sbc100 sbc100 closed this Sep 16, 2021
@sbc100 sbc100 deleted the remove_java_config branch September 16, 2021 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant