Combining classes into one single class

Hi
I have written a java application that incompasses many classes. When I complie my java code
the complier produced a ClassName.class file for the main class and each and every class.
When I run the application it needs all of the classes not just the main class.
Can someone please show me how to combine all the classes into a single Main class
as when I try and run the program :
i.e java Main.class it needs all the other classes too.
Basically what I am asking is can I compile my program such that all class information
is incorporated in the Main.class?
Thanks

Not really (and it wouldn't be a good idea if you could). You can define one class inside another, but they still produce separate .class files. What you do is to wrap all your class files up in a jar file usint the jar utility. You can add a "manifest" which specifies which is the main class. If you do that you can run the program simply with java -jar xxxx.jar

Similar Messages

  • SQL*Loader - How to combine Flat File 3 columns and put into one single column

    Receive a flat file delimited by comma. Want to combine Flat File last 3 columns and put into one single column(Table).
    e.g.
    Flat File
    100,239,30,20,30
    While inserting into table want to combine last 3 columns and insert into invoice number column.
    302030

    It is not possible to combine the last 3 columns as those columns are seperated by commas and in the SQL Loader control file you must ve specified COMMA as an delimiter. So u better have all the columns in the table plus add one more column which holds the concatenation of the 3 columns.
    Vijay

  • Concatenate multiple pdf files into one single file

    hi,
    Could any one help me with a code "combining or merging multiple pdf files selected from the browser into one single document" to send it as one single request to the printer?
    Thanks ,

    It is called the Big Faceless PDF library.
    they have a free trial download.
    in regards to doing it yourself, of course.
    but this is a pure java library that can do what you want without you having to re-invent the wheel (for a price of course).
    they have excellent technical support as well, usually solving your problem within a day or so.

  • Problem combining files into a single PDF

    Hi
    I wonder if anyone has experienced this. Everytime I try to combine various pdfs into a single one, Acrobat Pro seems to crash or get stuck no dialogue window will come up and the only thing I can see is what I circled in red:
    Hope somebody can help me.
    Thanks!

    Hi John,
    Thanks for your reply. The error ocurrs even before I manage to choose files,  the Combine Files into a Single PDF window doesn't even come up when I click on it from the menu. It is definitely not a problem with the files.
    Best,
    C.

  • Combine VI into one VI

    I am new to labview. I created four individual VI. I want to combine them into one VI, not sub VI. It is like normal user interface,all in one page.like press one button,the corresponding details shows. But in the same VI and same page.
    Thanks in advance
    Solved!
    Go to Solution.

    Hi Feinimoshu,
    I think what you are trying to do is display your four VIs in a single front panel. For that you can have a main VI with a Sub Panel in its front panel and dynamically call your four VIs as required. You can view all your VIs in the same front panel in this way.
    Regards,
    Nitz
    (Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved) 

  • Can I consolidate various vaults into one single vault?

    I've created various vaults and I now wish to consolidate them all into one single vault. Can this be done in Aperture 3?

    You need to create a new vault that encompasses all the images in the various vaults then delete the others.  I know of now way to combine vaults- except to import them all into a single library.
    DLS

  • I NEED HELP ON COMBINING FILES INTO ONE PDF FILE

    HOW CAN I TAKE 6 FILES AND MAKE THEM INTO ONE PDF FILE?

    Hi GOLDENSOROR
    How to merge files into one PDF:
    Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
    Click Add Files and select the files you want to add.
    Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
    When finished arranging the files, click Combine Files.
    Select File > Save As > PDF.
    Name your PDF file and click Save.
    Please refer : http://www.adobe.com/products/acrobat/merge-pdf-files.html

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • I have several pics of my new grandson throughout the year.  How do I combine them into one event

    I have several pics of my new grandson throughout the year.  How do I combine them into one event

    You can drag and drop photos from one Event to another. Or you can flag them and use the Events: Add Flagged photos to Select Event.
    However, why not use an Album for the job?

  • I have two different itunes music files on my computer.  How do I combine them into one file?

    I have two different itunes music files on my computer.  How do I combine them into one file?

    I don't think so. The only other ID I have is a developer id, and I didn't get that until several months after I got the phone. In addition purchases I made from the App Store onthe phone would sync up with It unes on the Mac meaning it would be the same id.
    However I looked at the AppStore on my phone while it was connected to the Mac with iTunes open, and now the balance has changed to the same as the others.

  • I seem to have at least two, and maybe four, iCloud accounts, across my iPhone, my iPad and my MacBook Pro. Can I combine them into one iCloud account?

    I seem to have at least two, and maybe four, iCloud accounts, across my iPhone, my iPad and my MacBook Pro. Can I combine them into one iCloud account? I have been able to log into what appears to be three of the four iCloud accounts I have. Two of them seem to be remarkably similar, and one appears to be only for my MacBook.I think I know which one my iPhone is backing up to, as I successfully restored from a back-up last week. The fourth iCloud account I can't access via password or security questions. Any advice would be much appreciated.
    Thanks.
    Cheers,
    Aaron
    Melbourne, Australia

    You cannot merge accounts.

  • I have multiple documents how can I combine them into one document?

    I have multiple document files in Pages. How can I combine them into one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy/Paste into thumbnails of other document
    Peter

  • I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    I have 3 podcast folders in my iTunes account, how can I combine them into one folder in my iTunes library?

    What is the title of the other bookmark folder that can not be deleted?
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Please report back soon.

  • TS3981 After migration files are now shared between two user accounts. How can I combine them into one account?

    After migration, from PC, files are now shared between two user accounts.I have to switch users to access files. How can I combine them into one account?

    See Pondini's  Transferring files from one User Account to another, for starters

  • Songs in my Itunes show up as separate folders.  How do I combine them into one album?

    Songs in my Itunes show up as separate folders.  How do I combine them into one album?

    Is this one of those CDs where the main artist asks their friend to sing a song with them?
    Such as, Slash's new album. Track 1 is "Slash Feat. Ian Astbury", track 2 is "Slash Feat. Ozzy Osbourne" and so on.
    To fix this, select all the tracks on that album, right-click > Get Info, and say YES to changing multiple items.
    Put "Slash" in the *Album Artist* field (for this example, of course).
    Make sure it is the *Album Artist* field, not the plain Artist field.

  • How do I combine PDFs into one document?

    I want to scan CD booklets for online digital storage. I have Pages and Preview, of course. I do not have Acrobat Professional.
    I have a large scanner and can make individual TIFs or PDFs of each spread. What would be the best way to combine these into one file?

    etresoft,
    Please don't read this as an actual reply to your post because it is not.
    But, since the thread is dealing with CUPS-PDF and I have been desperately seeking CUPS-PDF for a long time ever since I've got my brand new iMac only 5 days ago (5 days on a new iMac [which is not only new but is intel-based, and which I was forced to buy because my older PPC iMac G5 died of preternatural or some other causes] is an extremely long time on account of Snow Leopard, about which I am like a babe trying to start speaking for the first time) I found it more expedient to "reply" in order to get some help with CUPS-PDF from someone who knows.
    I've downloaded CUPS-PDF from "https://bitbucket.org/codepoet/cups-pdf-for-mac-os-x/wiki/Home" and installed it following the instructions included therein.
    The only instruction I could not follow is to pick "Generic postscript color printer"; I could pick  "Generic postscript printer" though.
    CUPS-PDF shows in the printer list.
    CUPS-PDF apparently prints as indicated by the progress bar.
    But, the print doesn't show anywhere on my computer:
    The output is not in /Users/Shared/CUPS-PDF in a folder with my user account's name.
    I did make an alias to this folder on my desktop but it only contains two folders: "my user name" and "SPOOL"
    The first folder had a "clone" of the download source page (which I deleted.)
    SPOOL has nothing in it.
    I've never had a problem using CUPS-PDF while on OS X 10.4.11, something I'll never be able to revert to.
    I'll be eternally grateful to you if you could help me with this issue but, on condition that you use a language as plain as English since my expertise with OS X, which was never as considerable as to be able to use terminal to any advantage, nor understanding terms such as sudos and the like, is now even diminished on account of the new OS I am forced to use from now on.
    Thank you so much for your help and excuse me for using this approach to ask for help.
    Best regards,
    Ruben

Maybe you are looking for

  • Media kind cannot be changed

    I purchased an album on my iphone and synced to my computer. In order to view the digital booklet on my phone, I read that I should change the media kind from music to books. iTunes won't let me make the change although the booklet is listed as pdf.

  • [svn:fx-4.x] 16006: integrate latest Flash Player playerglobal.swc:

    Revision: 16006 Revision: 16006 Author:   [email protected] Date:     2010-05-10 13:15:11 -0700 (Mon, 10 May 2010) Log Message: integrate latest Flash Player playerglobal.swc: Play_10_1_r53_38/DebuggerRelease  - Win -This was missed during the player

  • Authorization checks for filter values

    Hi, I'd need to apply authorization checks to filter values in web reporting. The authorizations should be limited with an attribute of the characteristic, not the characteristic itself. A practical example: There are two companies A and B. The compa

  • Mail not showing email on the viewer pane.

    If i receieve a mail in my mac mail. i cannot view it on the viewers pane. i have to double click the mail to open in a whole window. What might be the problem.

  • Can I Download Updates From A Different Computer?

    The Internet connection here at the office is terrible. Whenever I have to upload or download large files, I do it from home. I installed CS5 Master Collection a year ago, and I haven't been able to get any of the updates. (Every attempt to get the u