where can i download original java packages and ad

2019-04-17 14:00发布

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.

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.

EDIT: 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?

标签: package java
1条回答
爷、活的狠高调
2楼-- · 2019-04-17 14:50

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

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.

查看更多
登录 后发表回答