2 Replies Latest reply on Jun 9, 2006 2:58 PM by Kronin555

    initializing java class via cfobject

    russiab
      hi there,

      i have a small java class that takes 2 arguments in (fileToRead & fileToWrite) and everything runs fine when i run the class from the command line...

      C:\>java csvParser fileToRead fileToWrite

      however when i try to instantiate the class via cfobject like so :

      <cfobject type="Java" action="create" class="csvParser" name="convert">
      <cfset convert.init(#tmpfile#, "text.xml")>

      it continuously throws the following error at me :

      Unable to find a constructor for class csvParser that accepts parameters of type ( java.lang.String, java.lang.String ).

      any ideas ast to what i may be missing here...startin to drive me batty.