从哪里获取netbeans项目的.java文件? [英] Where to get the .java files of a netbeans project?

查看:212
本文介绍了从哪里获取netbeans项目的.java文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可能会注意到,我对netbeans和编程很新。

As you might notice, I'm quite new to netbeans and programming in general.

我一直在做一个小项目(家庭作业),现在我需要来自其中一个软件包的.java文件。当我构建项目时,我得到一个包含所有类的.jar存档。当我编译我需要的包时,我得到了这个包的.class文件的.jar存档(在项目的build文件夹中)。但是,我需要这个包的.java文件的zip存档。我有点尴尬地问,但我从哪里得到这些?

I've been working on a small project (homework) and now I need the .java files from one of the packages. When I build the project, i get a .jar archive with all the classes. When I compile the package I need, I get a .jar archive of the .class files of this package (in the "build" folder of the project). However, I need a zip archive of the .java files of this package. I'm a little embarassed to ask, but where do I get these from?

谢谢,
赵楠

推荐答案

项目窗口(窗口 - >项目) Ctri-1

导航到所需的.java文件,然后右键单击它,然后选择属性。该文件的路径显示在所有文件下。

Navigate to the .java file you want, and right-click on it, and select Properties. The path to the file is shown under All Files.

查看项目的路径右键单击项目名称上的(在项目窗口中),选择属性,项目文件夹显示在来源 - >项目文件夹

To see the path to the project right-click on the name of the project (in the Projects window), select Properties, and the project folder is shown under Sources-->Project Folder

这篇关于从哪里获取netbeans项目的.java文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆