I have package named lar.com.util and another one named lar.com.ui, lar.com.ui.listeners and I want to know what is the correct way of compiling these three packages.They're locate under lar\com\util and lar\com\ui and lar\com\ui\listeners or they should be called only a directory lar.com.util, lar.com.ui. and lar.com.ui.listeners. What is the correct way of compiling this and how I put all these packages in just one JAR file. Thanks
Lefty Gomez
Greenhorn
Joined: Nov 15, 2001
Posts: 14
posted
0
Do the moderators know something about JAVA? Why they don't answer my question?
Lefty, I am at work right now - perhaps someone else will take time with your problem. A reasonable turn around time for something like this might be 24 hours - not 24 minutes. By the way, when you registered there was a nice big note mentioning that your name should not be obviously fictitious. Please change your name to be compliant with JavaRanch's naming policy. Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Lefty Gomez
Greenhorn
Joined: Nov 15, 2001
Posts: 14
posted
0
My name is not ficticious I can send and id by email if you want.
I've never used JAR files so perhaps someone else could help you on that one? As for setting up your packages (and assuming I understand your question correctly) you take your source code files (the ".java" files) and place them under some directory, say \xyz. Then when you compile them (in the correct order) your compiled ".class" files will be located under \xyz\lar\com\util and \xyz\lar\com\ui and \xyz\lar\com\ui\listeners Hope that helps.
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
Lefty, A couple of things. The industry standard is to use your companies url backwards, so if you work for the Lar company you should be using \com\lar\ui etc. If you set up your files into a directory xyz like Colin showed with no extra junk in them then you should be able to create your jar file using >jar cf xyz.jar * Here is a Jar tutorial.