> Okay, I am venturing into the world of Java again and am
> trying to figure out how to insatiate an instance of a class
> that is stored within a package.
>
> The .jar file in question is stored at
> C:\plumtree\ptedk\5.0\devkit\java\WEB-
> INF\lib.  I have added this path to the class path in the
> CFMX admin and have restarted the server to load it.
>
> Within this folder are many jar files, with the one I am
> interested named 'edk.jar'.  Inside of this jar file is a
> class 'AccessLevel.class'
> located in a folder path 'com\plumtree\remote\prc'.
>
> So, the question is how do I handle the fact that this class
> is within a package?  I have not been able to find a path for
> cfimport that will locate the class file ...
>
> <cfobject action="" type="java"
> class="edk.com.plumtree.remote.prc.AccessLevel" name="edkTest">

I don't think adding that directory to your CLASSPATH will automatically
cause any JAR files to be part of the CLASSPATH. I think you'll either have
to put the JAR into a specific directory that loads all JAR files (like
cfusionmx/lib) or specify the JAR file itself in the CLASSPATH. If the JAR
file is successfully loaded, you should be able to see it within the
"Version Information" page of the CF Administrator.

Once you do that, you should be able to use the appropriate package path.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to