Re: setting up Java in CF5

2005-05-20 Thread Simon Cornelius P . Umacob
Joshua,

I also encountered this problem when I tried to execute a Java-based Hello 
world! in my CF app for the very first time (which was about 3 days ago).  I 
solved it by configuring CFIDE so that it would point to the directory where my 
*.jar file resided.

In CFIDE, simply navigate to Server Settings/Java JVM section and set your 
classpath there.  You could also try copying your *.jar file to CFusion 
directory\runtime\jre\lib.  I'm not sure if this is applicable to your version 
though... Our dev server is running ColdFusion MX 6.x.

Just for fun, check if your system has already a CLASSPATH or JAVA_HOME 
environmental variable set.  Try copying your file there (or to the lib sub 
dir) and see if it works.  I'll also be performing similar experiments on this 
PC.

Regards,

[ simon.cpu ]

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207242
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


setting up Java in CF5

2005-05-19 Thread Joshua OConnor-Rose
I'm trying to set up CF5 to do DESEDE encryption and
I'm not having much luck.

So I find a java library that may do the trick but I
haven't set up java objects in Cold fusion 5 before.

Has anybody ever set up gnu-crypto java librarys on
CF5 or anything other library.

If I put the gnu-crypto.jar in the CF5 class path
directory how do I initialize the object in Coldfusion
or am I not headed in the right direction.

The object in question is 
gnu.crypto.cipher.TripleDES.

Any thoughts

-Joshua O'Connor-Rose
-All is Good



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207163
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


setting up Java in CF5

2005-05-19 Thread Simon Cornelius P . Umacob
Joshua,

You might want to try looking up the CreateObject() function in the CF docu.  I 
haven't used CF5 though (nor am I very knowledgeable in invoking external Java 
apps), but I think initializing the library in version 5 looks something like 
this:

DES3 = CreateObject(java, gnu.crypto.cipher.TripleDES);
DES3.init();

Regards,

[ simon.cpu ]

I'm trying to set up CF5 to do DESEDE encryption and
I'm not having much luck.

So I find a java library that may do the trick but I
haven't set up java objects in Cold fusion 5 before.

Has anybody ever set up gnu-crypto java librarys on
CF5 or anything other library.

If I put the gnu-crypto.jar in the CF5 class path
directory how do I initialize the object in Coldfusion
or am I not headed in the right direction.

The object in question is 
gnu.crypto.cipher.TripleDES.

Any thoughts

-Joshua O'Connor-Rose
-All is Good

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207172
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


Re: setting up Java in CF5

2005-05-19 Thread Thomas Chiverton
On Thursday 19 May 2005 17:14, Simon Cornelius P. Umacob wrote:
 DES3.init();

:nods
..init() on a Java object runs the constructor, so you must do that (and give 
any options it needs, javaCast() may be your friend).

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
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:207175
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


Re: setting up Java in CF5

2005-05-19 Thread Joshua OConnor-Rose
I suppose I should describe where I am now.
The gnu-crypto.jar is in the folder listed in the java
settings class path.

I'm using create object on the page:

cfscript
// Create DES/ColdFusion Java objects
desObj = CreateObject( java,
com.gnu.crypto.cipher.TripleDES );
/cfscript

and this is the error.
Unhandled System exception !

java.lang.ClassNotFoundException: ClassFormatError for
class com.gnu.crypto.cipher.TripleDES. Java exception
occurred in call to method.

Maybe the only issue is that I'm missing librarys (I
only put in gnu-crypto.jar there are two javax jar
files that I didn't set up because I didn't think they
were needed)

--- Simon Cornelius P. Umacob [EMAIL PROTECTED]
wrote:
 Joshua,
 
 You might want to try looking up the CreateObject()
 function in the CF docu.  I haven't used CF5 though
 (nor am I very knowledgeable in invoking external
 Java apps), but I think initializing the library in
 version 5 looks something like this:
 
 DES3 = CreateObject(java,
 gnu.crypto.cipher.TripleDES);
 DES3.init();
 
 Regards,
 
 [ simon.cpu ]
 
 I'm trying to set up CF5 to do DESEDE encryption
 and
 I'm not having much luck.
 
 So I find a java library that may do the trick but
 I
 haven't set up java objects in Cold fusion 5
 before.
 
 Has anybody ever set up gnu-crypto java librarys on
 CF5 or anything other library.
 
 If I put the gnu-crypto.jar in the CF5 class path
 directory how do I initialize the object in
 Coldfusion
 or am I not headed in the right direction.
 
 The object in question is 
 gnu.crypto.cipher.TripleDES.
 
 Any thoughts
 
 -Joshua O'Connor-Rose
 -All is Good
 



~|
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:207177
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


Re: setting up Java in CF5

2005-05-19 Thread Joe Eugene
You should be able to just drop the *.jar file in WEB-INF/lib and use
createObject().

Joe Eugene

- Original Message - 
From: Joshua OConnor-Rose [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Thursday, May 19, 2005 12:38 PM
Subject: Re: setting up Java in CF5


 I suppose I should describe where I am now.
 The gnu-crypto.jar is in the folder listed in the java
 settings class path.

 I'm using create object on the page:

 cfscript
 // Create DES/ColdFusion Java objects
 desObj = CreateObject( java,
 com.gnu.crypto.cipher.TripleDES );
 /cfscript

 and this is the error.
 Unhandled System exception !

 java.lang.ClassNotFoundException: ClassFormatError for
 class com.gnu.crypto.cipher.TripleDES. Java exception
 occurred in call to method.

 Maybe the only issue is that I'm missing librarys (I
 only put in gnu-crypto.jar there are two javax jar
 files that I didn't set up because I didn't think they
 were needed)

 --- Simon Cornelius P. Umacob [EMAIL PROTECTED]
 wrote:
  Joshua,
 
  You might want to try looking up the CreateObject()
  function in the CF docu.  I haven't used CF5 though
  (nor am I very knowledgeable in invoking external
  Java apps), but I think initializing the library in
  version 5 looks something like this:
 
  DES3 = CreateObject(java,
  gnu.crypto.cipher.TripleDES);
  DES3.init();
 
  Regards,
 
  [ simon.cpu ]
 
  I'm trying to set up CF5 to do DESEDE encryption
  and
  I'm not having much luck.
  
  So I find a java library that may do the trick but
  I
  haven't set up java objects in Cold fusion 5
  before.
  
  Has anybody ever set up gnu-crypto java librarys on
  CF5 or anything other library.
  
  If I put the gnu-crypto.jar in the CF5 class path
  directory how do I initialize the object in
  Coldfusion
  or am I not headed in the right direction.
  
  The object in question is
  gnu.crypto.cipher.TripleDES.
  
  Any thoughts
  
  -Joshua O'Connor-Rose
  -All is Good
 
 


 

~|
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:207185
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