Calling Java Class

Posted on 2006-03-19
Last Modified: 2013-12-24

Have a java routine.

<cfset me = CreateObject("java", "MyTrial") />

I want to call it, but it can't find it. I assume I need to put it in my class path, but i really just want to call it from the current directory.

Is this possible, what should I do.
Question by:Plucka
    LVL 16

    Expert Comment

    LVL 12

    Accepted Solution


    You will definately have to add the path of the class file to your CF or JVM class path. You cannot call a java object like a customtag, simply by letting Cf check if its in the same directory doesnt work.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now