ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old August 17th, 2004, 03:21 AM
Baze Baze is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 Baze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Compiling cold fusion code as java!?

Hello everyone.

How can i compile Cold Fusion MX code into Java code?

Thanx in advance,
Baze

Reply With Quote
  #2  
Old August 17th, 2004, 08:30 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
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

Reply With Quote
  #3  
Old August 18th, 2004, 04:09 AM
Baze Baze is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 Baze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
The ColdFusion MX application server compiles CFML to Java code, as does BlueDragon from New Atlanta.


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

Reply With Quote
  #4  
Old August 18th, 2004, 08:19 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
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.

Reply With Quote
  #5  
Old August 24th, 2004, 03:54 AM
Baze Baze is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 Baze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
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.


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?

Reply With Quote
  #6  
Old August 24th, 2004, 08:17 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
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.

Reply With Quote
  #7  
Old August 24th, 2004, 08:54 AM
Baze Baze is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 4 Baze User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
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.


Ok, thank you very much. And sorry for beeing anoying i tought that you don't understand me :-)

Reply With Quote
  #8  
Old August 24th, 2004, 08:56 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
No problem.

Reply With Quote
  #9  
Old August 25th, 2004, 12:32 AM
midfielder100's Avatar
midfielder100 midfielder100 is offline
Master PIMP
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Santa Monica, CA
Posts: 728 midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 15 h 23 m 2 sec
Reputation Power: 8
Send a message via AIM to midfielder100
Quote:
Originally Posted by kiteless
To be blunt, what you are asking for does not exist.


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

Reply With Quote
  #10  
Old August 25th, 2004, 08:27 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
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.

Reply With Quote
  #11  
Old August 25th, 2004, 06:28 PM
midfielder100's Avatar
midfielder100 midfielder100 is offline
Master PIMP
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: Santa Monica, CA
Posts: 728 midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level)midfielder100 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 15 h 23 m 2 sec
Reputation Power: 8
Send a message via AIM to midfielder100
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.

Reply With Quote
  #12  
Old August 25th, 2004, 07:48 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
It's only taken me 8 years to accumulate this knowledge.

Reply With Quote
  #13  
Old September 2nd, 2004, 07:18 PM
<coldflash> <coldflash> is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 <coldflash> User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #14  
Old September 2nd, 2004, 07:19 PM
<coldflash> <coldflash> is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 <coldflash> User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #15  
Old September 2nd, 2004, 09:14 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Compiling cold fusion code as java!?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread