Using Standard Java Classes

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Using Standard Java Classes

    Here is my code:

    <cfset file = "C:\webroot\sandbox\images\Sunset.jpg">
    <cfset image = createObject("java", "java.awt.image")>

    Here is my error:
    Object Instantiation Exception.
    Class not found: java.awt.image

    I don't understand what is going on. Can someone help me? I want to be able
    to call standard java classes from within my CF template.

    Thanks

    Seth Buntin Guest

  2. Similar Questions and Discussions

    1. reloading java classes dynamicaly
      Hello, I have installed Flex+JRun on Windows. I am experiencing RemoteObjects and Java classes. Every time I change something to the class I have...
    2. java classes not reloading
      here's what the docs say: ----- ColdFusion dynamically loads classes that are either .class files in the web_root/WEB-INF/classes directory or in...
    3. Registering Java Classes in ColdFusion 7
      I migrating my websites from cf 6.1 to 7. Everything was going fine until I encountered this problem. There is a java class I seem to be having...
    4. How to use java (j2ee) classes with coldfusion
      Hi, I'm searching for information , examples about using java classes (jar, war, ear) with coldfusion (6 or 7). Is it very relevant using java...
    5. registering java classes for ASP use
      hi, since MS's java sdk is no longer available, what is the replacement for javareg.exe? or, now that javareg.exe is no longer available, how...
  3. #2

    Default Re: Using Standard Java Classes

    well "java.awt.image" is the name of a package not a class. i think what you want is "java.awt.Image"--don't forget java is CaSe SEnsitivE.
    PaulH Guest

  4. #3

    Default Re: Using Standard Java Classes

    Thanks for the help. I will take a look at the devnet gallery. I just thought I would see what I could do with java. I am trying to learn it so I can extend my CF Applications
    Seth Buntin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139