Hi all,
How do I successfully compile
java files with the following on the command line:
javac -deprecation -classpath ./ File1.java File2.java
Is there anything I need to set up as I get errors? If I compile within an
IDE it compiles fine (no error messages or warnings at all) and it works!
I get the following errors:
Note: File1.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Out of curiousity I still continue to run it qwith the following commands (the file where the main() is):
java -classpath ./ File2.java
I get the following error:
Exception in
thread "main" java.lang.NoClassDefFoundError: File2/java
As I said, I don't get and errors or warnings when I compile within an IDE.
Thanks to all.