Robert, Sorry for dropping off. I just read this email. I did find out that I was thinking badly about it. I did do this by actually instantiating the Java class using cfobject.
Thanks, George On 11/7/05, Robert Munn <[EMAIL PROTECTED]> wrote: > > WHy not just call your Java class using CFOBJECT to instantiate the native > Java object? In order to do that, you'll need to reference your additional > classes in the CFMX classpath arguments. If you need this class to have some > special security permissions, you might also want to consider writing a > wrapper class that calls the other class by impersonating another user > account. > > >All, > >CFMX 7 on Win 2000 (a test server). I wrote a Java program and compiled > it > >on the server under another user account (not the one running the CFMX > >service). The program compiled correctly and I was able to run it using > the > >command line. Now it imports some specific java libraries that are not in > >the JRE. I want to be able to run this Java class peridocally so I > thought I > >could simply add a CF task that cfexecutes the class using the > >cmd.exeprogram. I know that this might be a security issue. I have two > >questions: > >1. Is it a security issue? If so, how else can I run the Java class? It > is a > >normal java program with a main() method that directs various methods. > >2. If not a security issue, does the account that runs CFMX (currently a > >local system account) have to be one that is not a system account? I am > >currently running the cfexecute by calling the complete classpath that is > >required for the java program to execute. However I am just getting a > blank > >page and nothing else. > > > >Regards, > >George > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223678 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54