I am trying to add an image to my gui but I keep getting the error command "javac" not found
here is the code
ImageIcon ISpyImage = new ImageIcon("ISpyPicture.JPG");
panel.add(ISpyImage);
I saved the image in the same folder as the program.
That message has nothing to do with your code. It appears there is no path to your Java compiler.
You haven't installed the JDK properly.
See the Java tutorial on Getting Started with JAVA to see what you might be doing wrong. The section on "Common Problems" might help you out.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.