• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java standard,extension libraries and user defined packages  RSS feed

 
Olakunle Oladipo Oni
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need someone to give insight concerning the listed key phrases in the 'subject' field. I'll appreciate a clear answer from anyone...

(1) The java utilities can be found in the default directory which on my own computer is the \bin directory. On installing the jdk, in which part of the directory structure resulting from this process can i find the standard and extension libraries? As an analogy, anytime i make a package, it assumes a directory path that is traceable on my computer and when i'm using the 'import' statement the directory structure comes to bare. I want to locate the directory path of the standard and extension packages of the java platform. How can this be done?

(2) If someone has written a number of java programs and placed them in packages and wants to direct it to a friend to use across the atlantic. How does he really do this? Does he send directory structures directly or as a form of bundle. Does it make sense to send it as an attachement via an e-mail facility? Or are there websites for this? If someone directs a package to me, what will an appropriate directory to save it in other to make use of it?

(3) I saw in a manual that to set the environment variable in a windows 95/98, the 'set classpath' line is added to a part of the autoexec.bat file on this kind of system while on the windows 2000/NT/XP i learnt that this can be done through the control panel. I checked the environment variable on the control panel but didn't see anything reflecting the default directory or other directory paths associated with the java platform on my computer (maybe i've not checked the right places). How can i set classpaths from the control panel since my computer runs on windows xp?

olakunle oni
 
Campbell Ritchie
Marshal
Posts: 56518
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you really using Win9x still? There are differences in different operating systems, and you do not need to set a classpath on current versions of Java™. In fact setting a classpath often does more harm than good. You do however need to set the PATH, which is usually best done as a system environment variable. I presume you have got your PATH worked out.
If you want to send a jar to anybody else, 10000 millimetres away or 10000 miles away, you need to add that jar to the classpath of the application. So you want a different classpath for each application. You can set that in a manifest file in a jar, or at the command-line for each application, or use the -cp options when running the application. We have an FAQ about that.

If you need more information, don't hesitate to ask.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!