• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

Calling Java Class

Hi,

Have a java routine.

MyTrial.java
MyTrial.class

<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.
0
Plucka
Asked:
Plucka
1 Solution
 
mmc98dl1Commented:
Plucka,

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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now