JavaEE编译文件 [英] JavaEE compiling files

查看:271
本文介绍了JavaEE编译文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得像一个4岁的人,有一片面包和pb和一个果冻片,正在问如何做一个三明治。

我有责任保持一个由我们的母公司做的没有孤独者支持我们的javaEE网站。我对JavaEE相对较新,我试图找出如何重新编译需要从网站的根文件夹中修改的文件。

我下载NetBeans帮助我这个,但仍然不能弄清楚。我的问题是,java文件找不到任何包和它们依赖的资源。据我所知,资源是有..虽然,我看到一些包开始com。和javax。,我没有看到一个'com'或' javax'文件夹。我相信我的问题与在NetBeans中的项目属性中设置类路径有关。我试过,但是我不是做正确的,或者它不工作。这整个Java编译对我来说是如此陌生,如果有人可以引导我朝着正确的方向获得这个网站编译,这将是非常棒的。

我发布了一个选择的文件夹层次结构的网站help:

I feel like a 4-year old who has a slice of bread with pb and a slice with jelly and is asking how to make a sandwich..
I've been given the responsibility of maintaining a javaEE website that was done by our parent company that no loner supports us. I'm relatively new to JavaEE and I'm trying to figure out how to recompile the files that need to be modified from within the root folder of the site.
I downloaded NetBeans to help me with this, but still can't figure it out. My problem is that the java files can't find any of the packages and resources they are dependent on. As far as I know, the resources are there.. although, I do see some packages starting with "com." and "javax.", and I don't see a 'com' or 'javax' folder anywhere.. I believe my problem has something to do with setting the class path in the project properties in NetBeans.. I tried that but either I'm not doing it right, or its not working. This whole Java compilation is so foreign to me, it'd be really great if someone could lead me in the right direction of getting this website compiled.
I posted a pick of the folder hierarchy of the website to help:

我试图在这里专门编译RecordAdd.java文件。它试图导入的一些包来自它的父文件夹,asp,它所在的文件夹,easp。该文件还试图 import com.icesoft.faces.component。*; 其中'*'包含几个不同的父包的导入。我没有看到一个 com 文件夹,像我提到的,但我看到icefaces.jar文件在 lib 文件夹在 WEB-INF 文件夹中。我试过把这些文件夹在NetBeans库编译类别类路径,但没有做任何事情。

我没有做正确的事,这可能是编译java项目的基本知识,但我只是没有得到它。我真的很感激任何帮助,只是请不要太苛刻。谢谢!

I'm trying to compile the RecordAdd.java file here specifically at the moment. Some of the packages it is trying to import come from its parent folder, asp, of the folder it is in, easp. The file is also trying to import com.icesoft.faces.component.*; where '*' consists of several different imports of the parent packages. I don't see a com folder like I mentioned, but I do see icefaces.jar files in the lib folder in WEB-INF folder. I've tried putting these folders in NetBeans Library-Compile category classpath, but that didn't do anything.
I'm not doing something right, that is probably a basic knowledge of compiling java projects, but I'm just not getting it. I really appreciate any help, just please don't be too harsh. Thanks!

推荐答案

如果项目是在netbeans中创建的,那应该很简单。只需去文件 - >打开项目。导航到项目所在的位置。您将知道文件夹是否是项目,因为netbeans会识别它,并显示不同的图标,而不是常规文件夹图标。一旦你打开你的项目,你可以右键编译项目。
你不使用java编译器自己编译项目中的java文件。编译和构建是通过ant,maven等工具完成的...它是自动的。

It should be simple if the project was created in netbeans. Just go to File -> Open Project. Navigate to where the project is located. You will know if the folder is a project, because netbeans recognizes it and a different icon is displayed instead of a regular folder icon. Once you open your project, you can right click compile the project. You don't use java compiler yourself to compile java files in a project. Compiling and building are done by tools like ant, maven... It's automated.

这篇关于JavaEE编译文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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