Andrew,

I would be very surprised to hear that you are able to use the classes in
those JARs by merely having the directory in your classpath.

Why don't we look more closely at the matter.

What is your current classpath setting?

What are the CFX settings?

What is the complete CFX class name (with package)?

rish

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 8:01 PM
To: CF-Talk
Subject: RE: Again Java CFX

So if I understand this right...

I have the following directory

c:\JavaCode\

Which contains

ij,jar
test.jar
MyTest.jar

Which I can use methods by CreateObject

Now if I place a new one called

nuImage.jar

I setup the cfx_nuImage which is in that jar file...

What is the difference here, the nuImage.jar doesn't call the nuImage class
within the jar but I can call CreateObject on the other Jar files...

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976   

  _____  

From: Guy Rish [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 May 2004 10:48 AM
To: CF-Talk
Subject: RE: Again Java CFX

Andrew

The JAR file itself must be included in the classpath, not just the
directory.  If you only place the directory in the classpath it will start
looking for compiled class files in the those directories.

C:\somedirectory\lib
cfxtag.class
C:\somedirectory\jars
someclasses.jar

Classpath=C:\somedirectory\lib;C:\somedirectory\jars\someclasses.jar

rish

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 7:22 PM
To: CF-Talk
Subject: RE: Again Java CFX

The path that the jar file is in is located in a path with other jar files
that are working when I use CreateObject, so what do you mean by need to add
it to the classpath when I said that it is in a classpath that can be used
by CFMX? Don't understand what you mean!

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976   

  _____  

From: Guy Rish [mailto:[EMAIL PROTECTED]
Sent: Friday, 28 May 2004 10:11 AM
To: CF-Talk
Subject: RE: Again Java CFX

Andrew,

JARs are not automatically traversed.  You need to specifically add the JAR
file to the classpath.

rish
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to