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

BufferedReader not found when compiling #14

Open
tranzmatt opened this issue Apr 5, 2022 · 1 comment
Open

BufferedReader not found when compiling #14

tranzmatt opened this issue Apr 5, 2022 · 1 comment

Comments

@tranzmatt
Copy link

tranzmatt commented Apr 5, 2022

I tried building m8b with the maven method using openjdk 8 in a conda environment and got the following;

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project m8b: Compilation failure
[ERROR] /home/bob/Wigle/m8b/src/main/java/net/wigle/m8b/m8b.java:[607,37] cannot find symbol
[ERROR]   symbol:   class BufferedReader
[ERROR]   location: class net.wigle.m8b.m8b
[ERROR] 
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project m8b: Compilation failure
/secret/mclark/Code/SDR/Wigle/m8b/src/main/java/net/wigle/m8b/m8b.java:[607,37] cannot find symbol
  symbol:   class BufferedReader
  location: class net.wigle.m8b.m8b


The following fixed it, but I don't know if I was doing something wrong otherwise or if this is the best solution.


--- a/src/main/java/net/wigle/m8b/m8b.java
+++ b/src/main/java/net/wigle/m8b/m8b.java
@@ -2,6 +2,7 @@ package net.wigle.m8b;
 
 import java.io.File;
 import java.io.InputStream;
+import java.io.*;
 import java.nio.charset.Charset;
 import java.nio.channels.Channels;
 import java.nio.channels.ReadableByteChannel;

@rksh
Copy link
Collaborator

rksh commented Oct 10, 2022

confirmed and tested. Thank you!

rksh pushed a commit to rksh/m8b that referenced this issue Oct 10, 2022
rksh added a commit that referenced this issue Oct 10, 2022
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 a pull request may close this issue.

2 participants