在哪里可以下载原始Java软件包并将其添加到我的项目中? [英] where can i download original java packages and add to my project?
问题描述
考虑以下情况,我正在受限的Java环境中工作,因此我没有javax软件包.但是我的项目严格需要这些软件包.
Consider the following situation, I am working in a constrained java environment and in this I don't have the javax packages. But my project needs these packages strictly.
该环境还允许我在自己的项目空间中添加新库.
Also the environment allows me to add new libraries on my own project space.
那么我有什么方法可以下载javax软件包并将其添加到我的项目中?如果可能的话,请列出执行此操作的步骤.
So is there any way i can download javax packages and add it to my project? If possible please list out the steps to do it.
对这个问题更相关. Google App Engine 具有自己的 java类白名单,可供使用.实际上,它错过了某些项目所需的某些课程.在这种情况下,是否可以将特定类作为库添加到我们的项目中?如果可以,我们如何获得课程文件?
To this question more relevant. Google App Engine has its own white list of java classes that are available for usage. Indeed it misses some classes that necessary for some projects. In these situations is it possible to add the specific classes as library to our projects? If so how can we get the class files?
推荐答案
好,您将所有Java 软件包放入名为rt.jar
的jar
中,该文件位于目录jdk_install/jre/lib/rt.jar
中,该目录包含全部 软件包,也是javax
.对于您的import
来说,jar
ok here you go all java packages are within a jar
named rt.jar
which is in directory jdk_install/jre/lib/rt.jar
which contains all the packages and yes javax
too.. for your working import
that jar
要import
将该jar
创建一个具有名称 lib
的文件夹,并将该rt.jar
及其所有api
放入其中,然后将该文件夹与您的jar存档,就可以开始运行了.
To import
that jar
create a folder with name lib
and place that rt.jar
and all your api
within it and then place that folder with your jar archive, and you are ready to run.
这篇关于在哪里可以下载原始Java软件包并将其添加到我的项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!