Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling problems

 
Lefty Gomez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do the moderators know something about JAVA?
Why they don't answer my question?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lefty Gomez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My name is not ficticious I can send and id by email if you want.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK - not a big deal.
 
Colin Kenworthy
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lefty Gomez
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys for the Help!!!
,Lefty
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic