`
中国爪哇程序员
  • 浏览: 167622 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

package,source folder,folder

阅读更多
在eclipse下,package,source folder,folder都是文件夹. 

它们的区别如下: 
package:当你在建立一个package时,它自动建立到source folder下,也只能建立在这个目录之下. 

source folder:存放java源代码的文件夹,当然也包括一些package文件夹,还可以包含其他文件. 
项目构建后,source folder里面的java自动编译成class文件到相应的bin文件夹中,其他文件也会移到到相应的目录下. 

folder:里面可以放入任何文件.包括java源文件,jar文件,其他文件(例如,图片,声音等).在此我说明一下,如果里面含有java源文件,不管程序是否正确,eclipse都不会报错,把它们当做普通文件处理.但是项目如果要使用这里面的文件,情况就不同了. 

package,source folder,folder 之间相互转换
package 转成 folder 显示:选中package, build path-> Exclude
folder 转成 package 显示:选中folder, build path-> Include

package 转成 source folder 显示:选中package, build path-> Use as Source folder
source folder 转成 package 显示:选中folder, build path-> Remove from BuildPath

pacage 与 source folder 的转换同上

分享到:
评论
1 楼 edge2009 2010-09-07  
曝光率太低了..

相关推荐

    ZipTV.v6.8.4.Full.Source.For.Delphi

    Click OKCompile the run-time package: - From the menu choose: File -> Open - Navigate to the ZipTV Source folder - Open the run-time package file: ztv#0rt.dpk (replace # with your Delphi version ...

    FastReport Package Simplification Management Toolkit

    step5: optional, Instead of "recompile.exe-Recompile all package", Execute customized @BuildAllPackages.bat to recompile all package files if you modified any file in the folder which step1 generated....

    winscp570source.zip

    folder of source code package. Directory structure: /source project files of all native libraries and executables /source/components native WinSCP visual components /source/console console interface ...

    前端开源库-source-pane

    在实际使用中,可能需要通过npm(Node Package Manager)进行安装,命令可能是`npm install source-pane-master`,然后在项目中通过引入依赖来使用这个库。 为了充分利用"source-pane",开发者需要了解一些基本的...

    VB.NET使用ZipPackage实现ZIP文件压缩解压缩示例

    Dim sourceFilePath As String = "C:\source\file.txt" Dim zipFilePath As String = "C:\output\file.zip" Using package As ZipPackage = Package.Open(zipFilePath, FileMode.Create) Dim partUri As Uri = ...

    EmbeddedWB_D5-D2009_Version_14.67.0.rar

    In the open dialog navigate to the path where you store your package to the source folder("..:\Borland\BDS\3.0\lib\EmbeddedWB_D2005\Source"). 5.Choose file name "EmbeddedWebBrowser_D2005.dpk" and ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    Create new folder where source code and binary files will be kept (For example, C:\RAD_Studio_XE2\Components\EhLib). Hereinafter this folder will be call as "EhLib folder". Create new subfolder Lib ...

    FastReport企业版源代码6.6.17 支持10.4+ FastReport 简化管理工具2.0

    step5: optional, Instead of "recompile.exe-Recompile all package", Execute customized @BuildAllPackages.bat to recompile all package files if you modified any file in the folder which step1 generated....

    Unity插件:Easy Movie Texture (Video Texture) v3.24

    [Source code is included in the package. If necessary, it may be used to modify. ] Supported resolutions: Android: General devices support up to 1920 * 1080. The latest device supports up to 4k. ...

    MyEclipse的基本使用技巧

    - **Folder** 则是普通文件夹,不支持自动编译功能,如果要在其中存放 Java 文件,需要手动配置为 SourceFolder 或者通过 `Build Path` 添加到编译路径中。 ##### 3. 运行 Java 文件 - 选中想要运行的 Java 文件...

    Easy Movie Texture

    [Source code is included in the package. If necessary, it may be used to modify. ] Download link is below. EasyMovieTexture Editor Mode ( Beta ) Supported format : Android : Link iOS : Link ...

    MyEclipse详细使用教程.pdf

    3. **Source Folder与Folder的区别**:Source Folder是专门用于存放Java源代码的,MyEclipse会自动对其中的文件进行编译。而Folder则仅作为普通文件夹,不包含自动编译功能。如果需要将Folder视为源文件夹,需进行...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    EhLib 6.3 Build 6.3.176 Russian version....Create new folder where source code and binary files will be kept (For example, C:\RAD_Studio_XE2\Components\EhLib). Hereinafter this folder will be call as...

    使用Eclipse构建Maven的SpringMVC项目

    - **添加Source Folder**:确保`src/main/java`、`src/main/resources`、`src/test/java`和`src/test/resources`这些源代码和资源文件夹被正确标记为Source Folder。 - **调整Output Folder**:每个Source Folder的...

    MyEclipse详细使用教学教程.docx

    在项目中创建源文件,右键点击`myproject` -> `New`,可以选择`Source Folder`、`Class`、`Package`或`Folder`。`Source Folder`是存放源代码的目录,通常命名为`src`,而`Folder`则为普通文件夹,不包含源代码检查...

    SaM.Component.Set.For.WinNT.2000.XP.1.14.FullSource.zip

    Component Set For Windows NT/2000/XP(tm) (NTSET)Version 1.14Full Version with source code.Windows 2000(NT) specific components for Delphi 5.0/6.0/7.0 and C++Builder 5.0/6.0.Now the collection has 14 ...

    Keil.STM32F4xx_DFP.2.15.0.pack

    Updated Pack to STM32Cube_FW_F4 Firmware Package version V1.25.1 using HAL Drivers V1.7.9. STM32CubeMX integration (Version 6.0.1): Added support for Timebase Source TIMx (FrameworkCubeMX_gpdsc.ftl)...

    C#压缩文件夹的类

    调用系统using System.IO.Packaging;压缩文件夹 public void ZipFolder(string zipFilepath)//用来执行实际的压缩操作... DirectoryInfo di = new DirectoryInfo(SourceFolderPath); ZipDirectory(di, package); } }

    DaydreamRenderer.unitypackage

    google搬运,gaydream工具包 Removed 'Library' files from source control Moved 'Plugins' folder under 'DaydreamRenderer' Improvements to the custom lighting system Bug fixes

Global site tag (gtag.js) - Google Analytics