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

Access java object without createObject()

LEGEND ,
Mar 01, 2007 Mar 01, 2007

Copy link to clipboard

Copied

Is there any way to access Java when createObject() and <cfobject...>
are disabled by the host?

I.E. Can code like this be rewritten in some manner to work in this
environment?

//Create a java Array to hold our URLObject
var ArrayClass = CreateObject("java","java.lang.reflect.Array");
//Create an instance of java.net.URL for passing to the URLClassLoader
var URLObject = CreateObject('java','java.net.URL').init("file:" &
currentDirectory);


P.S. This is the famous image properties component... are they any
versions designed to work in environments without access to
createObject() or <cfobject...> functionality?
TOPICS
Advanced techniques

Views

266

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
Advocate ,
Mar 01, 2007 Mar 01, 2007

Copy link to clipboard

Copied

Can you encapsulate it inside a CFX tag? I think you can write CFX tags in java, so maybe you can get away with it that way (assuming you can install CFX tags on the server)

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
LEGEND ,
Mar 01, 2007 Mar 01, 2007

Copy link to clipboard

Copied

(assuming you can install CFX tags on the server)

Yeah that is the difficulty. This is a very basic shared hosting
account, and I do not have access to the cfadministrator to do things
like this.

If worse comes to worse, I may try it. The may be open to installing a
CFX tag if I ask nice enough.

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
Advocate ,
Mar 01, 2007 Mar 01, 2007

Copy link to clipboard

Copied

LATEST
Yeah, I feel your pain.

Well, you could always host the application off the server somewhere and access it remotely via a web service. that should still work.

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