Is there any way to write a Java prg without main()

I would like to know Is there any way to write a Java program without using main() function.

> i am unable to execute the program ..............i
think there must be a main method through with the
program starts
The program can be compiled and run. After running it, you'll see "They'll kill you for that" followed by something like "java.lang.NoSuchMethodError: main" and finally someone with a big Volvo will burst into your room and runs you over.

Similar Messages

  • Is there any way to write to a socket after shutting it down?

    Guys is there any way to write to a socket after using the shutdownOutput() method?
    I get this complain at runtime
    java.net.SocketException: Cannot send after socket shutdown: socket write error

    Your question embodies a contradiction in terms. Shutting down the socket means that you're telling the other end there is no more data. So you can't send more data. And even if you could, the other end wouldn't read it, because it would think it had already reached end of stream. Because that's what you told it.
    If you don't want HTTP keep-alive, turn it off via the appropriate HTTP header.
    You should be using HttpURLConnection for this, not a Socket. That takes care of your reading problem: it knows how to process the content-length header.

  • Is there any way to create a HTTP_AAE Receiver without a path in NW PO 7.31

    Hi ,
    Does anyone know how to create a HTTP_AAE Receiver without a path??
    We are in a phase of migrating Interfaces from PI 7.1 to PO 7.31(Java Only).
    For one of the Interface in PI 7.1 there is a RFC Destination for vendor communication through HTTPS connectivity  :
    TargetHost: IP Address
    Post: value
    Path Prefix: Blank
    During migration  requirment is to keep the Path field BLANK of the Communication Channel,however since  PO has mandatory path field   a "/" is been provided, because of which data post fails.
    PI:  https://IP:9443
    PO:  https://IP:9443/  (Since Path Prefix is mandatory)
    As per my understanding The data is supposted to be posted directly to the IP (https://IP:9443) however it is getting posted to (https://IP:9443/) where the service is not available. For Reference attached relevant screenshots.
    Is there any way to  create a HTTP_AAE Receiver without a path. Need ardent support and suggestions
    regarding this.
    Regards
    Riju

    Hi,
    For Service auto- PO from PR, you need to activate Automatic Purchase order creation for Service requisitions in ML91 t.code.
    Note:
    For material :automatic PO creation from PR, follow the steps.
    1) Material Master purchasing view tick automatic PO check box
    2) Vendor Master purchasing view tick automatic PO check box.
    3) Maintain Source list for Vendor & Material.(ME01)
    4) Maintain Purchase Info Record.(ME11)
    5) Create a Purchase Requisition.(ME51)
    6) Use T.Code: ME59 & execute for PR for vendor, you will be able to create automatic PO.
    During creation of PR , select check box of Source Determination in the 1st screen of ME51
    Ensure that Purchase Info Record should be there.
    If you have more than one vendor then fixes only one vendor in source list.
    Regards,
    Biju K

  • Is there any way to create 3D PDF file without having the model tree ?

    Is there any way to create 3D PDF file without having the model tree ?
    3D communication is good but sometime we don't want the receiver to be able to study every components in model.
    or any way to make the receiver cannot use model tree and measurement tool ????
    Thank you very much

    You can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
    - start Acrobat 3D
    - drag & drop a CAD file
    - click on 3D Annot to activate
    - right-click on 3D
    - select 'Edit in 3D Toolkit'
    - 3D Toolkit launches
    - click in 'Scene Tree' panel
    - right-click on top assembly name
    - select 'Tools->Collapse Hierarchy'
    - select 'File->Save'
    - select 'File->Exit'

  • My computer somehow restarted then deleted all my progress from Word documents. Is there any way to get these documents back without purchase of a data recovery software?

    Recently when I open my Mac the screen stays black until I press the start button a few times. Usually at this point it's in sleep mode. This time, however, the computer restarted completely, losing any word documents that I had left open prior. Is there any way I can recover these files without a purchase of a data recovery software? I've tried looking in the 'recent' tab, but it didn't save anything I have done in the last week, and finals are this coming week. Please help!

    If the system just Restarted on it's own, Shut down while you were working on something then started back up all those changes, edits, you had done in that app, document, are gone.

  • My one year old disabled my iphone 5 so i need to "connect it to itunes" as the screen directs. I know how to do this with my laptop but it says i will be doing a factory reset. is there any way to get my phone open without losing everything?

    Long story short, my one year old disabled my iphone5 and I need to "connect to itunes" as the screen instructs. I went through the steps and it says that I will be doing a factory reset and I will lose everything. Is there any way to get my phone open without losing everything?? I'm mainly concerned about my pictures and videos.

    Once the Device is in Recovery Mode... it is too late to save anything...
    To minimise loss... after the successful Recovery... Restore from the most recent Backup...
    See Restore from Backup here
    http://support.apple.com/kb/ht1766

  • My iphone has turned off and is now not working. I plugged it into my computer and it said it was in recovery mode and i had to restore it to fix it. Is there any way i can fix this problem without loosing all my files and photos through restoring it?

    My iphone has turned off and is now not working. I plugged it into my computer and it said it was in recovery mode and i had to restore it to fix it. Is there any way i can fix this problem without loosing all my files and photos through restoring it?

    There's only one thing you can do: make an appointment with Apple genius at the Apple retail store for a out of warranty replacement.

  • Is there any way I can use bi beans without the patches

    I am a Chinese student,I am doing some research on OLAP.
    I'm in the initial stages of evaluating BI Beans for my research. We have previously not used Oracle in house.
    In attempting to use BI Beans, the first thing you must do is install the latest patches against the Oracle database. Unfortunately, the patches are only available for people with a suport contract.
    Is there any way I can get these patches without a support contract, or is there any way I can use bi beans without the patches?
    thanks alot,

    You must have a valid support contract to access Metalink. You could try contacting your local support centre and ask if they could make the patches available to you.
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • HT5622 Is there any way i can use app store without entering a credit card # because i don't have one

    Is there any way i can use app store without entering a credit card # because i don't have one

    Click here and follow the instructions.
    (87861)

  • HT201250 I've been working on a newsletter and have the final version. But I wanted to check something in a version I did last week. If I choose the day in Time Machine, is there any way I can view that document without "restoring" it to replace the final

    I've been working on a newsletter and have the final version. But I wanted to check something in a verssion I did last week. If I choose the day in Time Machine, is there any way I can view that document without "restoring" it to replace the final version?

    You can drag and drop a file from TM to the desktop.
    Let's say your newsletter is on the desktop. First thing to do is to add something to the file name, say Newsletter_1.
    Next open TM as if it is just another external drive by double clicking the icon. (This is not the same as "Enter Time Machine" which you do when you want to restore.) The file hierachy in TM follows the same logic as on your hard drive. Navigate to the date you want, find the file you want, and drag and drop it where you want it to be. Because you changed the name of the most recent version you can both files in the same space.
    I do this often.
    But remember if you make a back up now you will end up with both versions in TM.

  • Is there any way to unlock your ipod touch without doing a reset?

    My daughter has forgotten her password and doesn't want to lose any of her apps and photos. Is there any way to unlock her ipod touch without doing a reset to the device?

    you must restore iOS: Device disabled after entering wrong passcode - Support - Apple

  • Is there any way to find my stolen iPod without find my iPhone app

    Is there any way to find my stolen ipod without find my iPhone app.

    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I bought an LG phone and a $35 dollar plan card. Less than a week later it said I was out of time for texts. Apparently it only gave me minutes, not the plan I wanted. Is there any way I can get the plan without paying again?

    I bought an LG phone and a $35 dollar plan card. Less than a week later it said I was out of time for texts. Apparently it only gave me minutes, not the plan I wanted. Is there any way I can get the plan without paying again?

    So you bought a plan and used it all and want another one for free? I understand you thought it had more texts or whatnot but they won't do that since you already used the other plan.
    That's like going to McDonalds and ordering a double cheeseburger, them giving you a double cheeseburger, you eating it and then realizing you wanted a double quarter pounder and expecting them to give it to you free.

  • Is there any way to check another Java program running status?

    HI. I want to write a Java program on hand-set but my program seems needs lots of resources and if there is another Java program running on the same hand-set simultaneously, my program will slow down. So, I want to check if there is another Java program is running on the hand-set, my program will show a message to user reminding user to close another program first.
    Is there any way to do so?

    On most recent devices, the application is not terminated but paused by using phone functions, and can be reactivated from the aplication management software. The javax.microedition.midlet package documentation is quite specific, if a tad obscure, about the MIDlet lifecycle and the role of the MIDelt methods vis-a-vis the AMS.
    {color:#0000ff}http://java.sun.com/javame/reference/apis/jsr037/javax/microedition/midlet/package-summary.html{color}
    Parenthetically, I've never been able to figure out how resumeApp should be used, nor have I seen this method invoked in any of the samples that come with the WTK, but I haven't gone through all of them.
    I believe the still-in-progress MIDP3 will make it possible to have MIDlets that share the screen with native apps and which can be minimized and restored.
    db

  • Is there any way to write-enable an NTFS-format WD external Hard Drive ?

    I have a WD Elements external HD unit, 1TB previously formatted NTFS under Windows XP on a PC. I would like to use this HD unit to both read and write data using both the Windows PC and a MacBook Pro. But when connected to the MacBook Pro (USB), the HD unit shows up as Read Only.
    Is there a way to write-enable the HD unit without losing, or having to backup/restore, the mass of data already saved there ?
    I have tried installing NTFS-G3 on the MBP, as suggested elsewhere. Having done so, when I "get information" about the WD unit, the disc format shows as "Windows NT File System (NTFS)" and not NTFS-G3 as expected. Ran chkdsk on the WD under Windows to iron out any problems in the disc's file system. It ran for several hours before completing successfully, but there was no change at all - the unit is still read-only after re-connecting to the MBP.
    Can anyone help out please?

    Why would you expect it to say NTFS-3G? NTFS-3G is just a program that translates the NTFS to something the Mac OS can deal with. It doesn't change the format of the hard drive. The drive is formatted with the New Technology File System (NTFS), not the NTFS-3G file system.
    Were you not able to write to the drive with NTFS-3G installed? Did you install the free version? If so, did you install MacFuse, also? It is required for the free version of NTFS-3G.
    Edit:
    I just plugged in an NTFS drive and I'm guessing what you were looking for was something to indicate what was doing the translation. On mine I get, "Windows NT File System (Tuxera)." So, I think I understand what you meant before. My guess is as I stated above. Make sure you also have MacFuse installed if you are using the free version of NTFS-3G.
    Message was edited by: Barney-15E

Maybe you are looking for