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

Creating and using a simple Java class

Explorer ,
Oct 19, 2012 Oct 19, 2012
999
Translate
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
New Here ,
Oct 19, 2012 Oct 19, 2012

I did everything as this page suggests, but nothing is displayed on my output page after the call to cfobject tag. Everything that it is before the tag is outputted in the page, everything that is after the tag is not outputted. It is as if it was not cfobect, but cfabort tag. For example.

index.cfm

-- End of file --

So "Hi" is outputted to the page, but "See you!" is not!! It is as if there is an cfabort tag.

What do I do wrong?

Translate
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 ,
Oct 21, 2012 Oct 21, 2012

This is the documentation website, not the support forums, so not really a very sensible place to ask questions. I recommend you post your code and your question on the community support forum. Indeed there's already a thread for you here: http://forums.adobe.com/message/4787999#4787999.

--

Adam

Translate
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
New Here ,
Dec 15, 2012 Dec 15, 2012

It needs to be mentioned that .java files must be (written and) compiled against jdk 1.6. So if you have newer jdk (like 1.7) add the following flags:

>javac -source 1.6 -target 1.6 Employee.java

Translate
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
Community Expert ,
Dec 15, 2012 Dec 15, 2012

The flags wont be necessary soon, as ColdFusion 9 and 10 are going to be available in Java 7.

Translate
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
Guest
Dec 27, 2012 Dec 27, 2012

I have the same problem, as Kirill. Really it is strange.

Where is it mentioned about compilation "against jdk 1.6"??

Why dont put into examples description?

Translate
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
Community Expert ,
Dec 28, 2012 Dec 28, 2012
LATEST

faktor9 wrote:

I have the same problem, as Kirill. Really it is strange.

Where is it mentioned about compilation "against jdk 1.6"??

It isn't mentioned. That is why Kirill_Grishin wrote:

It needs to be mentioned that .java files must be (written and) compiled against jdk 1.6. So if you have newer jdk (like 1.7) add the following flags:

>javac -source 1.6 -target 1.6 Employee.java

Translate
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