|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Compiling cold fusion code as java!?
Hello everyone.
How can i compile Cold Fusion MX code into Java code? Thanx in advance, Baze |
|
#2
|
|||
|
|||
|
The ColdFusion MX application server compiles CFML to Java code, as does BlueDragon from New Atlanta.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
Quote:
Thanx kiteless, i have cf mx but i was looking for a step by step guide how to do that, so if you can halp me i'll apreciate it Baze |
|
#4
|
|||
|
|||
|
The application server does this automatically when you request a .cfm page. There is no step by step process, the CF engine does it under the hood. In fact you couldn't do this any other way...you need the CF engine to process all the CFML and convert it to compiled classes.
|
|
#5
|
|||
|
|||
|
Quote:
Thanx again. Kiteless, now what i need is a third party program which can compile my cold fusion code into java code, anyone knows such a program? |
|
#6
|
|||
|
|||
|
Again, CFMX and Bluedragon compile the CFML to Java at runtime. There are no other programs to do this, due to the work that would be involved. The compiler would also have to be able to interpret the full CFML language, etc. It would basically have to be an application server in and of itself.
Bluedragon and the upcoming Blackstone release of CF will allow you to package the application as WAR and JAR files but that does not sound like what you want. To be blunt, what you are asking for does not exist. |
|
#7
|
|||
|
|||
|
Quote:
Ok, thank you very much. And sorry for beeing anoying i tought that you don't understand me :-) |
|
#8
|
|||
|
|||
|
No problem.
![]() |
|
#9
|
||||
|
||||
|
Quote:
Kiteless, although you know infanitly more about CF than I do (I just switched to it), you are wrong here. Infact, the new "Blackstone" version of CF which you have been telling me about will have that exact capability. It can compile CF into Java bytecode. Read more here... CF Blackstone |
|
#10
|
|||
|
|||
|
Mid, I think you are misunderstanding the question (either that or I still am). If you look up a few posts earlier I already said:
"Bluedragon and the upcoming Blackstone release of CF will allow you to package the application as WAR and JAR files but that does not sound like what you want." This fellow isn't looking to package the application into a WAR as far as I can tell, he wants a compiler that will take an individual CFML file and create Java source code out of it. If all he wants is to get compiled Java class files for his whole application, then he may be able to do this with Blackstone, but that isn't what it sounded like. Last edited by kiteless : August 25th, 2004 at 08:35 AM. |
|
#11
|
||||
|
||||
|
LOL kite, again you show your superirior CF knowledge
. Yes, I repeated exactly what kite said so just ignore me. Sorry kite for saying you are wrong ! Midfielder100 = CF Idiot. ![]() |
|
#12
|
|||
|
|||
|
It's only taken me 8 years to accumulate this knowledge.
![]() |
|
#13
|
|||
|
|||
|
Do you have ColdFusion MX or ColdFusion MX 6.1?
With just ColdFusion MX you can save the .java file when it is compiled. The link below explains how you would configure the cf_root/wwwroot/WEB-INF/web.xml. http://www.macromedia.com/support/coldfusion/ts/documents/cfmx_java_source.htm |
|
#14
|
|||
|
|||
|
Do you have ColdFusion MX or ColdFusion MX 6.1?
With ColdFusion MX you can save the .java file when it is compiled. The link below explains how you would configure the cf_root/wwwroot/WEB-INF/web.xml. http://www.macromedia.com/support/coldfusion/ts/documents/cfmx_java_source.htm |
|
#15
|
|||
|
|||
|
While that may be true, CFMX 6.1 is so superior to CFMX 6.0 that anyone running 6.0 is really screwing themselves. Still, I suppose if you *really* want the .java file (why I have no idea), this is an option.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Compiling cold fusion code as java!? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |