• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CFObject and java Class

New Here ,
Mar 27, 2008 Mar 27, 2008

Copy link to clipboard

Copied

Hi,
I am trying to call a java class using cfobject tag.
I placed my all classes under D:\cfm\ecpay\classes folder . And add this path to jvm.config file.
I am getting class Not Found Exception while running my page.


Here is the code of cfobject

<cfobject
type = "java"
name = "myObj"
class = "ExcelToDb2"
action = "create">
<cfset ret = myObj.init()>

can some help me out on this.

Thanks
TOPICS
Advanced techniques

Views

193

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 27, 2008 Mar 27, 2008

Copy link to clipboard

Copied

LATEST
It is pretty straight forward and I think there would be a problem for "Classpath". Please check it again in your CF admin. There would be also syntax error.

Restarting the server is also required in case you compile a new class etc.

Alternatively you can copy your classes into the directory "cfroot\wwwroot\WEB-INF\classes" and restart the server before testing them.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation