Re: Java help - convert -D command line option to CF?

2007-12-08 Thread Ryan Stille
Hareni that worked great, thank you!

-Ryan

Hareni Venkatramanan wrote:
> Perhaps, you can try to instantiate java.lang.System and set the system
> property in the coldfusion code?
> Something like,
>
> 
> 
>
> Hope that helps.
>
> Thanks,
> Hareni
>
> -Original Message-
> From: Ryan Stille [mailto:[EMAIL PROTECTED] 
> Sent: 08 December 2007 04:19
> To: CF-Talk
> Subject: Java help - convert -D command line option to CF?
>
> I am converting a little java code into CF8.   The sample Java program I
>
> am working from is meant to be run with this command line option:
>
> -Dcom.java4less.vision.maxarea=90
>
> Without having that set, my results in ColdFusion are not working very 
> well.   Anyone know how I can do something like the above in 
> ColdFusion?   I have no "vision" object to work with or anything, I'm 
> only working with 1 instantiated java object and there is no maxarea 
> property or setter in that object.
>
> I imagine I could change ColdFusion's JVM start up parameters to include
>
> that option, but I don't really like that idea.
>
> -Ryan
>
>   


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294408
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Java help - convert -D command line option to CF?

2007-12-08 Thread Hareni Venkatramanan
Perhaps, you can try to instantiate java.lang.System and set the system
property in the coldfusion code?
Something like,




Hope that helps.

Thanks,
Hareni

-Original Message-
From: Ryan Stille [mailto:[EMAIL PROTECTED] 
Sent: 08 December 2007 04:19
To: CF-Talk
Subject: Java help - convert -D command line option to CF?

I am converting a little java code into CF8.   The sample Java program I

am working from is meant to be run with this command line option:

-Dcom.java4less.vision.maxarea=90

Without having that set, my results in ColdFusion are not working very 
well.   Anyone know how I can do something like the above in 
ColdFusion?   I have no "vision" object to work with or anything, I'm 
only working with 1 instantiated java object and there is no maxarea 
property or setter in that object.

I imagine I could change ColdFusion's JVM start up parameters to include

that option, but I don't really like that idea.

-Ryan




~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294395
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Java help - convert -D command line option to CF?

2007-12-07 Thread Dave Watts
> I am converting a little java code into CF8. The sample 
> Java program I am working from is meant to be run with 
> this command line option:
> 
> -Dcom.java4less.vision.maxarea=90
> 
> Without having that set, my results in ColdFusion are not 
> working very well. Anyone know how I can do something like 
> the above in ColdFusion? I have no "vision" object to work
> with or anything, I'm only working with 1 instantiated java 
> object and there is no maxarea property or setter in that object.
> 
> I imagine I could change ColdFusion's JVM start up parameters 
> to include that option, but I don't really like that idea.

The component in question is probably this:
http://www.java4less.com/vision/vision.php

Presumably, your class is either using this, or using something which is
using this?

Anyway, it seems to me that you have three options. Add the option to
jvm.config, invoke your program from CFEXECUTE instead of integrating it
into your CF code, or modify the source code of the component to contain
this value as a default.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294391
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4