I've recently started learning the swing framework for java and have been playing around with it. I've noticed that sometimes the code wont re-compile before executing such as in a regular java REPL. This isn't because of the presence of .class files since I delete them all before running the REPL with new changes. Is there anyway I can force my program to re-compile? Or is there any command I can enter into the shell terminal opened with the command palette so that it would compile going through all of the proper run directories?
The console tells me that it cannot find a class and the class it cannot find sometimes changes. I found out through the terminal that there are still some .class files left over but they don't show up in the file tab.
edit: I have figured out the issue. If there is an error in your code the program will ignore it and attempt to continue running which causes the program to have the class not found exceptions. a simple way to check what the error is for anyone who is experiencing this: in the Linux terminal opened through the command palette, type in "javac ./filepath.java" except replace "filepath" with the file path.
resolved in edit