|
|
Welcome to the Java Forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
- have access to post topics
- communicate privately with other members (PM)
- not see advertisements between posts
- have the possibility to earn one of our surprises if you are an active member
- access many other special features that will be introduced later.
Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact us.
|
|

04-24-2008, 09:28 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 38
|
|
|
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.
|
|

04-24-2008, 09:35 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 5,075
|
|
|
You asking that, how to start you application before user login to the system. That mean even the welcome screen on the desktop?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-24-2008, 10:02 AM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 386
|
|
|
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.
|
|

04-24-2008, 10:48 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 5,075
|
|
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. 
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-24-2008, 11:31 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 38
|
|
|
What i need is before the login prompt of the windows,I need to start my own application.
|
|

04-24-2008, 11:45 AM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Posts: 386
|
|
|
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.
|
|

04-24-2008, 12:12 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 5,075
|
|
Originally Posted by Zosden
That is impossible unless you want to edit the very windows kernel.
Windows never allowed to do it. And I don't think even on Linux, it's easy.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-24-2008, 06:55 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Canada
Posts: 191
|
|
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 @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
|
|

04-24-2008, 07:05 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Canada
Posts: 191
|
|
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 @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
|
|

04-25-2008, 06:19 AM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 5,075
|
|
|
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?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Someone helped you? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post. Help: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Resources: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Web: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Tips: To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
|

04-25-2008, 11:26 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 38
|
|
|
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?
|
|

04-25-2008, 11:34 AM
|
|
Member
|
|
Join Date: Apr 2008
Posts: 16
|
|
|
i am using ya!
why we r using interfaces
|
|

04-25-2008, 06:35 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Canada
Posts: 191
|
|
|
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 @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
|
|

04-27-2008, 11:42 AM
|
|
Member
|
|
Join Date: Dec 2007
Posts: 38
|
|
|
Is it possible that the application after OS login will hide or disable all other application even the start menu of the windows.
|
|

04-27-2008, 09:48 PM
|
 |
Senior Member
|
|
Join Date: Apr 2008
Location: Canada
Posts: 191
|
|
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 @ [ To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. ]
Language is froth on the surface of thought
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|