File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes need help to run my application without windows logon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "need help to run my application without windows logon" Watch "need help to run my application without windows logon" New topic
Author

need help to run my application without windows logon

prakasham selamban
Greenhorn

Joined: Apr 16, 2009
Posts: 15
Hello friends

I need help to execute my application without windows log on. I have developed a login application which should be executed before windows logon screen .

thanks in advance


prakasham
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

Hi Prakasham,
Welcome to the Ranch.

I don't think thats possible.
Why would you want to do it in the first place?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3734
    
  16
If you want an application to run on Windows before you login then you have to run it as a service.
Google for java service wrapper for ways to do this with a Java application.


Joanne
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

Even if it's run as a service I doubt if the OPs login screen can be displayed before the OS login screen.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Maneesh Godbole wrote:Even if it's run as a service I doubt if the OPs login screen can be displayed before the OS login screen.


If its running using the Admin account the service will run if the machine is up and no one is logged on. Writing a Java application that interupts the OS logon process is the really hard part.

This is one of those things that would make me ask why you were doing this. Active Directory gives fairly rich authorisation and authentication mechanisms, what else could you need that it doesn't provide? If you want this to run on machines that are not on the network how do you prevent people circumventing your application (by logging in as admin for example)?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3734
    
  16
Maneesh Godbole wrote:Even if it's run as a service I doubt if the OPs login screen can be displayed before the OS login screen.


I missed the bit about it being a login application.
If the OP is writing something as Windows specific as this, I would suggest that Java is the wrong language to write it in. It is certainly possible to hook in to the Windows login process, but the APIs that allow this are all written in C/C++.
prakasham selamban
Greenhorn

Joined: Apr 16, 2009
Posts: 15
Maneesh Godbole wrote:Hi Prakasham,
Welcome to the Ranch.

I don't think thats possible.
Why would you want to do it in the first place?


Hello friend

Now i am doing finger print based login. If i use my java login screen as a jar file it works fine and its execute before windows log on screen. I want to sample code to change registry values through java code.

Thanks for your previous reply
Scott Cheadle
Greenhorn

Joined: Apr 21, 2009
Posts: 8
prakasham selamban wrote:
Maneesh Godbole wrote:Hi Prakasham,
Welcome to the Ranch.

I don't think thats possible.
Why would you want to do it in the first place?


Hello friend

Now i am doing finger print based login. If i use my java login screen as a jar file it works fine and its execute before windows log on screen. I want to sample code to change registry values through java code.

Thanks for your previous reply


What you want is a GINA hook. You can't achieve this in Java, realistically you need to use Visual C++. The following is an article describing how to go about customising GINA.

http://msdn.microsoft.com/en-us/magazine/cc163803.aspx

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: need help to run my application without windows logon