0

带有 JAR 的 lib 文件夹在哪里?从另一个目录加载 JAR 有什么魔力吗?

具体来说,beanbinding-1.2.1.jar 在哪里,另一个 jar 是 swing-layout-1.0.4.jar?

图片 在此处输入图像描述

目录结构:

thufir@dur:~/NetBeansProjects$ 
thufir@dur:~/NetBeansProjects$ 
thufir@dur:~/NetBeansProjects$ tree fud/
fud/
├── build.xml
├── manifest.mf
├── nbproject
│   ├── build-impl.xml
│   ├── genfiles.properties
│   ├── private
│   │   ├── private.properties
│   │   └── private.xml
│   ├── project.properties
│   └── project.xml
└── src
    └── dur
        └── bounceme
            └── net
                └── view
                    ├── NewJFrame.form
                    └── NewJFrame.java

7 directories, 10 files
thufir@dur:~/NetBeansProjects$ 
thufir@dur:~/NetBeansProjects$ head fud/build.xml 
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="fud" default="default" basedir=".">
thufir@dur:~/NetBeansProjects$ 
4

2 回答 2

1

您可以选择在 Add Library 下方添加 Jar/Folder。使用那个

于 2012-05-08T07:05:28.840 回答
0

仅供参考,我得到以下结构:

thufir@dur:~/NetBeansProjects$ 
thufir@dur:~/NetBeansProjects$ tree fud/
fud/
├── build.xml
├── lib
│   ├── beans-binding
│   │   ├── beansbinding-1.2.1-doc.zip
│   │   └── beansbinding-1.2.1.jar
│   ├── CopyLibs
│   │   └── org-netbeans-modules-java-j2seproject-copylibstask.jar
│   ├── nblibraries.properties
│   └── swing-layout
│       ├── swing-layout-1.0.4-doc.zip
│       ├── swing-layout-1.0.4.jar
│       └── swing-layout-1.0.4-src.zip
├── manifest.mf
├── nbproject
│   ├── build-impl.xml
│   ├── genfiles.properties
│   ├── private
│   │   ├── config.properties
│   │   ├── private.properties
│   │   └── private.xml
│   ├── project.properties
│   └── project.xml
└── src
    └── dur
        └── bounceme
            └── net
                └── view
                    ├── NewJFrame.form
                    └── NewJFrame.java

11 directories, 18 files
thufir@dur:~/NetBeansProjects$ 

通过单击项目属性,如下所示:

在此处输入图像描述

但不明白这个 JAR以前在哪里。

于 2012-05-08T08:14:53.487 回答