Daniel Mejia
11/23/2024, 12:19 AMcommandline = createObject("java", "picocli.CommandLine") // OK
commandspec = createObject("java", "picocli.CommandSpec") // class not found
commandline.CommandSpec() // method not found
I've tried many things and nothing is found. I've have successfully used LaunchDarkly java sdk in cfml. Would really appreciate some help understanding java packages and how they differ when using them programmatically in cfml, and what makes this picocli package differnt than launchdarkly
launch darkly source: https://github.com/launchdarkly/java-server-sdk
picocli source: https://github.com/remkop/picocliDaniel Mejia
11/23/2024, 12:54 AMjsoup = createObject("java", "org.jsoup.Jsoup")
doc = jsoup.connect("<http://www.nike.com>").get()
writedump(doc.title())
I'm looking at the source code for these 3 packages and their main classes are similar. Picocli is huge compared to the other two, but its very similar. I just can't figure how to use it.bdw429s
11/23/2024, 2:11 AMCommandSpec()
method on the CommandLine
class so I'm not sure why you're trying to call that.bdw429s
11/23/2024, 2:13 AMpicolo.CommandSpec
doesn't exist, so I'm not sure where you got that from eitherbdw429s
11/23/2024, 2:14 AMpicocli.CommandLine.Model.CommandSpec
bdw429s
11/23/2024, 2:14 AMbdw429s
11/23/2024, 2:14 AMbdw429s
11/23/2024, 2:15 AMbdw429s
11/23/2024, 2:15 AM$
to demarcate inner classesbdw429s
11/23/2024, 2:15 AMpicocli.CommandLine$Model$CommandSpec
Daniel Mejia
11/23/2024, 2:16 AMbdw429s
11/23/2024, 2:16 AMcreate()
method to get an instanceDaniel Mejia
11/23/2024, 2:20 AMbrettpr
11/25/2024, 5:46 AMbdw429s
11/25/2024, 7:11 PMbdw429s
11/25/2024, 7:12 PMbdw429s
11/25/2024, 7:13 PM