Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Packaging Question

Status
Not open for further replies.

JavaDude32

Programmer
Aug 25, 2001
180
US
I've just recently gotten into creating packages for my applications.

My question is does the package, say XXX.YYY, still belong to the package XXX (Wondering if default classes in XXX are available to classes in XXX.YYY)?

Next question is if I am distributing an application, does giving classes default access with the exception of the executing class make the application more secure if it's all packaged into a .jar file?
 
>>>> My question is does the package, say XXX.YYY, still belong to the package XXX (Wondering if default classes in XXX are available to classes in XXX.YYY)?

Not as far as I know !

>>>>> Next question is if I am distributing an application, does giving classes default access with the exception of the executing class make the application more secure if it's all packaged into a .jar file?


Not really in my opinion. If someone is so good at hacking, that they can come into your server and invoke certain classes in your jar file, then they probably won't actually bother, and would prefer to transfer onto your server their own C program and execute it on your server !
 
I'm not using a server, in fact, one of my applications is meant to act as a standalone server program. Basically I'm writing client side programs, sorry about the vagueness.
 
Thanks for the help though on the packaging question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top