Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to build frontend after following the documentation #3364

Open
mihaidusmanu opened this issue Nov 11, 2024 · 0 comments
Open

Unable to build frontend after following the documentation #3364

mihaidusmanu opened this issue Nov 11, 2024 · 0 comments

Comments

@mihaidusmanu
Copy link

mihaidusmanu commented Nov 11, 2024

📚 The doc issue

I followed the CONTRIBUTING readme on Ubuntu 24.04, but it seems like compilation of frontend fails due to some deprecated APIs (after the fix to frontend/README.md in #3363)

> Task :archive:compileJava FAILED
/home/mihaidusmanu/sources/serve/frontend/archive/src/main/java/org/pytorch/serve/archive/utils/ArchiveUtils.java:98: warning: [deprecation] URL(String) in URL has been deprecated
            URL archiveUrl = new URL(url);
                             ^
error: warnings found and -Werror specified
/home/mihaidusmanu/sources/serve/frontend/archive/src/main/java/org/pytorch/serve/archive/model/s3/HttpUtils.java:55: warning: [deprecation] URL(String) in URL has been deprecated
                HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();
                                                                   ^
/home/mihaidusmanu/sources/serve/frontend/archive/src/main/java/org/pytorch/serve/archive/model/s3/HttpUtils.java:82: warning: [deprecation] URL(String) in URL has been deprecated
                URL endpointUrl = new URL(url);
                                  ^
1 error
3 warnings

FAILURE: Build failed with an exception.

Suggest a potential alternative/fix

Probably the wrong version of Java is installed in the setup scripts?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant