Results 1 to 15 of 15
  1. #1
    rameshraj is offline Member
    Join Date
    Dec 2007
    Posts
    42
    Rep Power
    0

    Thumbs up Application starting initially

    I want my java application start before the user can actually log in to his machine.Actually I need to have a dialog where user enters his username and password and then only he is directed to the login prompt of the O.S.How can I make my dialog operate in this manner?Any idea?Please help.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    You asking that, how to start you application before user login to the system. That mean even the welcome screen on the desktop?

  3. #3
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    I don't think you could do this is even possible because in the case of windows. it doesn't load everything into memory until the user passes the through the welcome screen.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Yep, if the answer for my initial question is 'yes', you can't do it. Even on Linux I haven't try it, but it can be possible. You can make some changes in kernel level if you are keen with Linux. ;)

  5. #5
    rameshraj is offline Member
    Join Date
    Dec 2007
    Posts
    42
    Rep Power
    0

    Thumbs up

    What i need is before the login prompt of the windows,I need to start my own application.

  6. #6
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    7

    Default

    That is impossible unless you want to edit the very windows kernel.

    This problem is way above my head, other than the fact of knowing you have to edit the kernel.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Zosden View Post
    That is impossible unless you want to edit the very windows kernel.
    :D Windows never allowed to do it. And I don't think even on Linux, it's easy.

  8. #8
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Actually it is possible. Your application has to be written as a Windows service. In order to do this you have to know how to write the Windows service (not very trivial but not impossible either). From the Windows service you load the JVM as a DLL in the memory space of the service process and there you start your Java application :)
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  9. #9
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    If starting from scratch with a Windows service seems too difficult then something like this might help:
    Java Service Wrapper - Download Java Service Wrapper
    Also the Windows Resource Kit has some utilities that allow one to run arbitrary programs and scripts as services. But that costs money :( unless you already have it.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    I'm wondering about it. How a windows service is started without loading to the memory. As far as I know to load into the memory, system should be startup, isn't it?

  11. #11
    rameshraj is offline Member
    Join Date
    Dec 2007
    Posts
    42
    Rep Power
    0

    Thumbs up

    Cant we do so without the third party tools like that u mentioned(JWrapper),how can we do so can u provide some sample codes or code snippets?

  12. #12
    thamizhisai is offline Member
    Join Date
    Apr 2008
    Posts
    16
    Rep Power
    0

    Default i am using ya!

    why we r using interfaces

  13. #13
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Writing a Windows service is not a trivial task. I don't think somebody will do it here for free. On the other hand you can google for "java windows service" and I am sure you will find code samples.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  14. #14
    rameshraj is offline Member
    Join Date
    Dec 2007
    Posts
    42
    Rep Power
    0

    Default

    Is it possible that the application after OS login will hide or disable all other application even the start menu of the windows.

  15. #15
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Lots of things are possible. Do you want to build a virus :) ? Why would you make the machine unmanageable? What are your requirements? Or maybe this is just a rhetorical question?
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

Similar Threads

  1. Replies: 0
    Last Post: 02-16-2008, 10:31 PM
  2. Replies: 0
    Last Post: 02-16-2008, 10:29 PM
  3. Indexing starting with 1
    By ravian in forum New To Java
    Replies: 4
    Last Post: 01-04-2008, 01:03 PM
  4. Help, starting with java
    By mathias in forum New To Java
    Replies: 2
    Last Post: 08-15-2007, 08:15 AM
  5. just starting
    By specbailey in forum New To Java
    Replies: 23
    Last Post: 08-14-2007, 12:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •