how to correctly configure the path for java to compile from terminal

0
  

System environment variable: JAVA_HOME: C: \ Program   Files \ Java \ jdk1.8.0_161 \ bin \

     

User environment variable: JAVA_HOME: C: \ Program   Files \ Java \ jdk1.8.0_161 \ bin \

     

Variable path: C: \ Program   Files \ Java \ jdk1.8.0_161 \ bin; C: \ ProgramData \ Oracle \ Java \ javapath; C: \ Windows \ system32; C: \ Windows; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \; C: \ Program   Files (x86) \ NVIDIA Corporation \ PhysX \ Common; C: \ Program Files   (x86) \ GtkSharp \ 2.12 \ bin; C: \ Program Files \ nodejs \; C: \ Program   Files \ Git \ cmd; C: \ Program   Files \ RedHat \ java-1.8.0-openjdk-1.8.0.161-1 \ bin The problem is no   find the following packages:

     

javaserver.java:10: error: can not find symbol HttpURLConnection   connection = null; ^ symbol: class HttpURLConnection location:   class server javaserver.java:14: error: can not find symbol       URL url = new URL (targetURL);       ^ symbol: class URL location: class server javaserver.java:14: error: can not find symbol       URL url = new URL (targetURL);                     ^ symbol: class URL location: class server javaserver.java15: error: can not find symbol       connection = (HttpURLConnection) url.openConnection ();                     ^ symbol: class HttpURLConnection location: class server javaserver.java:28: error: can not find symbol       DataOutputStream wr = new DataOutputStream (       ^ symbol: class DataOutputStream location: class server javaserver.java:28: error: can not find symbol       DataOutputStream wr = new DataOutputStream (                                 ^ symbol: class DataOutputStream location: class server javaserver.java:34: error: can not find symbol       InputStream is = connection.getInputStream ();       ^ symbol: class InputStream location: class server javaserver.java:35: error: can not find symbol       BufferedReader rd = new BufferedReader (new InputStreamReader (is));       ^ symbol: class BufferedReader location: class server javaserver.java:35: error: can not find symbol       BufferedReader rd = new BufferedReader (new InputStreamReader (is));                               ^ symbol: class BufferedReader location: class server javaserver.java:35: error: can not find symbol       BufferedReader rd = new BufferedReader (new InputStreamReader (is));

     ^   symbol:   class InputStreamReader   location: class server   11 errors
    
asked by Juan Pablo Hernandez Guzman 30.03.2018 в 19:03
source

0 answers