Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在每个示例中,我都发现使用了这个导入:import layout.TableLayout; 我已经下载了 jar 文件,但是我在导入它时遇到了问题。任何人?
To be able to use a jar file, you need to either add it to the classpath. This can be done either by compiling on the command line with the javac -cp theJarFilePath TheJavaFile.java command, or by adding the jar to the build path if using an IDE.
javac -cp theJarFilePath TheJavaFile.java