TransWikia.com

Ошибка Java java: exporting a package from system module jdk.compiler is not allowed with --release

Stack Overflow на русском Asked by uimpl on January 24, 2021

java: exporting a package from system module jdk.compiler is not allowed with –release

import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
    public static void main(String[] args) throws IOException {
        final URL url = new URL("http://jsonplaceholder.typicode.com/posts?_limit=10");
        final HttpURLConnection con = (HttpURLConnection) url.openConnection();
        System.out.println(url);
        System.out.println(con);
    }
}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP