0

Using facebook4j and to post a link you must create and supply a URL object. However when I try to do so I get a class not found error. Appears CF10 is running on JRE 7.0.15

For example this throws an error

<cfset testurl = createObject("java", "java.lang.URL").init("http://www.google.com") />

but this doesn't for a string object

<cfset testurl = createObject("java", "java.lang.String").init("http://www.google.com") />

Any suggestions would be appreciated.

1 Answer 1

1

Right after posting of course I find some old documentation mentioning the class name is java.net.URL

Sign up to request clarification or add additional context in comments.

1 Comment

Just when you start to think error messages always fib, they throw you a curve ball and tell you the truth ;-) FWIW, class names are also case sensitive. So java.net.URL works, but java.net.url would not.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.