Greetings,
I was using CF9 (developer) 64bit and Java Loader 1.1 with an executable jar.
The jar works from the command line.
I can create the loader object, but when I use the create method, it fails silently, no object, no more output. ( ... almost white screen of death)
I have tried this with default and no arg constructors
COLDFUSION
<cfset paths[1] = expandPath("Jabba.jar")>
<cfdump var="#paths#">
<cfset loader1 = createObject("component", "javaloader.JavaLoader").init(paths) />
<cfdump var="#loader1#">
Loader version1 = #loader1.getversion()#<br/><br/> <! - - -... works --->
<cfset newJabba1 = loader1.create("com.disney.starwars.Jabba").init()> <!--- - nothing at all here -->
<cfdump var = "#newJabba1#">
<cfoutput> jabba sayez #newJabba.chortel()#</cfoutput>
<cfdump var = "newJabba" />
JAVA .. simple for my learning/getting started
package com.disney.starwars;
public class Jabba {
/**
* @param args
*/
// perhaps JRun, ... just handy for poking the dragon.
public static void main(String[] args) {
Jabba jab = new Jabba();
System.out.println(jab.chortel());
}
// manual constructor
public Jabba(){
int weight_kG = 2000;
int height_cm = 340;
}
// something ...
public String chortel(){
return "ah ah ah ah ... hanzo solo";
}
}