Question: Please help me finish my code. What am I missing? - J C:Usersdogpig OneDriveEXCELSIOR COLLEGEEXCELSIOR UNIVERSITY IT360Echo Server.java File Edit Tools Project Debugger Language Level
Please help me finish my code. What am I missing?

- J C:\Users\dogpig OneDrive\EXCELSIOR COLLEGE\EXCELSIOR UNIVERSITY IT360\Echo Server.java File Edit Tools Project Debugger Language Level Help Close * Cut 3 Copy New Paste Undo Redo Open Save A6 Find Compile Reset Run Test Echo Server.java Main.java 1 2 3 import java.io.IOException; import java.io. Printwriter; import java.net. ServerSocket; import java.net. Socket; import java.util.Date; 4 5 6 7 7 public class EchoServer ( 8 9 10 ll 12 13 14 15 16 17 18 19 20 21 22 public static void main(String[] aggd) throws IOException { ServerSocket listener = new ServerSocket(8081); try { while (true) Socket sckt - listener.accept(); try { Printwriter out = new PrintWriter (sckt.getOutputStream(), true); out.println(new Date().toString()); } finally sckt.close(); 11 23 24 25 26 } finally listener.close(); } } 27 28 29 30 31 32 33 34 35 Interactions Console Compiler Output Test Output Compiler Eclipse Compiler 0.A48 1 error found: File: C:\Users\dogpig OneDrive\EXCELSIOR COLLEGE\EXCELSIOR UNIVERSITY IT360\Main.java [line: 11] Error: The type javax.swing.JComponent cannot be resolved. It is indirectly referenced from required .class files Activate Windows Got Settings to activate Windows. Highlight source Bracket matches: } finally { 20:13 Editing C:\Users\dogpigiOneDrive EXCELSIOR COLLEGE EXCELSIOR UNIVERSITYIT360\Echo Server.java J C:\Users\dogpig\OneDrive\EXCELSIOR COLLEGE\EXCELSIOR UNIVERSITY\IT360\Main.java - Eile Edit Tools Project Debugger Language Level Help New 6 Open Save Close Y cut Copy M Paste Undo Redo 16 Find Compile Reset Run Test Echo Server.java 1 Main.java 2 2 3 import java.io.BufferedReader; import java.io.IOException; import java.io. InputStreamReader; import java.net. Socket; 4 5 6 7 8 import javax.swing.JOptionPane; public class Main 9 10 ll 12 13 14 15 16 17 18 19 public static void main(String[] aggd) throws IOException { String serverAddress = lyoptionPane.showInputDialog("Please Enter IP Address n" + "with 8081"); Socket s = new Socket (serverAddress, 8081); BufferedReader input- new BufferedReader (new InputStreamReader (s.getInputStream())); String ansr = input.readLine(); JOptionPane.showMessageDialog(null, ansr); System.exit(0); } 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Interactions Console Compiler Output Test Output X Compiler Eclipse Compiler 0.A48 1 error found: File: C:\Users\dogpig\OneDrive\EXCELSIOR COLLEGE\EXCELSIOR UNIVERSITY\IT360\Main.java [line: 11] Error: The type javax.swing.JComponent cannot be resolved. It is indirectly referenced from required .class files Activate Windows Go to Settings to activate Windows. Highlight source Editing C:\Users\dogpigiOneDrive\EXCELSIOR COLLEGE\EXCELSIOR UNIVERSITYIT360\Main.java 11:31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
