RE: Compiling Java / Error
Dan, I have not had a chance yet. Crazy deadlines! Plus I have to get permissions to get onto the ColdFusion installation... My network login doesn't have that kind of access. I will try at my earliest convenience. Thanks for all the help! -Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 9:57 PM To: CF-Talk Subject: Re: Compiling Java / Error Ben, Did you try it or not? Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256232 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Compiling Java / Error
Thanks Ben, I started using the java.lang.ClassLoader and it works just as well, so use that instead. Dan On 10/11/06, Ben Nadel [EMAIL PROTECTED] wrote: Dan, I have not had a chance yet. Crazy deadlines! Plus I have to get permissions to get onto the ColdFusion installation... My network login doesn't have that kind of access. I will try at my earliest convenience. Thanks for all the help! -Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 9:57 PM To: CF-Talk Subject: Re: Compiling Java / Error Ben, Did you try it or not? Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256438 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Compiling Java / Error
Ben, Did you try it or not? Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256210 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Compiling Java / Error
Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255974 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Compiling Java / Error
CF doesn't run on the latest SDK (1.5). You'll need to compile with JDK 1.4. Mark -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:41 AM To: CF-Talk Subject: Compiling Java / Error Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben ... Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255979 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Compiling Java / Error
Do you know if this is something that I can do with the -target argument for javac? I tried it but it says that 1.4 conflicts with the default version 1.5. Or , do I just download an earlier SDK? Which is easiest... And thanks a bunch for helping. -Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:47 AM To: CF-Talk Subject: RE: Compiling Java / Error CF doesn't run on the latest SDK (1.5). You'll need to compile with JDK 1.4. Mark -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:41 AM To: CF-Talk Subject: Compiling Java / Error Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255981 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Compiling Java / Error
What version of the SDK did you download? The lastest is either 5.0 or possibly 6. If I recall, ColdFusion currently supports 1.4.2 which is the equivalent of 4.2. FYI, you don't need java.lang.String. Just String. java.lang is a package which is included by default in EVERY class without explicitely naming it. The only time you would need it is if you wrote your own String class inside the same package or folder, then you'd have to specify java.lang. Out of curiosity, what is your constructor code? You don't really need constructor code here because your not building anything. You need the constructor unless you make the SayHello() method static, but you don't need any code inside it (I don't think) Ben Nadel wrote: Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255982 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Compiling Java / Error
Jake, that IS my constructor code... I was just making a not to myself that that is where it goes. I am big found of think out loud (no paper). Thanks for the tip about String. I am just trying to avoid using any IMPORT directives at first. I am looking at downloading this: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22PartDetailId= j2sdk-1.4.2_12-oth-JPRSiteId=JSCTransactionId=noreg Any one know if this will compile correctly for CFMX 7? Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:58 AM To: CF-Talk Subject: Re: Compiling Java / Error What version of the SDK did you download? The lastest is either 5.0 or possibly 6. If I recall, ColdFusion currently supports 1.4.2 which is the equivalent of 4.2. FYI, you don't need java.lang.String. Just String. java.lang is a package which is included by default in EVERY class without explicitely naming it. The only time you would need it is if you wrote your own String class inside the same package or folder, then you'd have to specify java.lang. Out of curiosity, what is your constructor code? You don't really need constructor code here because your not building anything. You need the constructor unless you make the SayHello() method static, but you don't need any code inside it (I don't think) Ben Nadel wrote: Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255984 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Compiling Java / Error
I think the suggestion to just download 1.4.2 is the best solution unless you have some very intense things to do with Java. Ben Nadel wrote: Jake, that IS my constructor code... I was just making a not to myself that that is where it goes. I am big found of think out loud (no paper). Thanks for the tip about String. I am just trying to avoid using any IMPORT directives at first. I am looking at downloading this: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22PartDetailId= j2sdk-1.4.2_12-oth-JPRSiteId=JSCTransactionId=noreg Any one know if this will compile correctly for CFMX 7? Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:58 AM To: CF-Talk Subject: Re: Compiling Java / Error What version of the SDK did you download? The lastest is either 5.0 or possibly 6. If I recall, ColdFusion currently supports 1.4.2 which is the equivalent of 4.2. FYI, you don't need java.lang.String. Just String. java.lang is a package which is included by default in EVERY class without explicitely naming it. The only time you would need it is if you wrote your own String class inside the same package or folder, then you'd have to specify java.lang. Out of curiosity, what is your constructor code? You don't really need constructor code here because your not building anything. You need the constructor unless you make the SayHello() method static, but you don't need any code inside it (I don't think) Ben Nadel wrote: Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255988 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Compiling Java / Error
Well, my HelloWorld class isn't that intense YET :D I will download the 1.4.2. Thanks for the help guys. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 11:20 AM To: CF-Talk Subject: Re: Compiling Java / Error I think the suggestion to just download 1.4.2 is the best solution unless you have some very intense things to do with Java. Ben Nadel wrote: Jake, that IS my constructor code... I was just making a not to myself that that is where it goes. I am big found of think out loud (no paper). Thanks for the tip about String. I am just trying to avoid using any IMPORT directives at first. I am looking at downloading this: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22PartDetailI d= j2sdk-1.4.2_12-oth-JPRSiteId=JSCTransactionId=noreg Any one know if this will compile correctly for CFMX 7? Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:58 AM To: CF-Talk Subject: Re: Compiling Java / Error What version of the SDK did you download? The lastest is either 5.0 or possibly 6. If I recall, ColdFusion currently supports 1.4.2 which is the equivalent of 4.2. FYI, you don't need java.lang.String. Just String. java.lang is a package which is included by default in EVERY class without explicitely naming it. The only time you would need it is if you wrote your own String class inside the same package or folder, then you'd have to specify java.lang. Out of curiosity, what is your constructor code? You don't really need constructor code here because your not building anything. You need the constructor unless you make the SayHello() method static, but you don't need any code inside it (I don't think) Ben Nadel wrote: Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255989 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Compiling Java / Error
what do you ultimately need it to do? Or are you just playing around with it? Ben Nadel wrote: Well, my HelloWorld class isn't that intense YET :D I will download the 1.4.2. Thanks for the help guys. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 11:20 AM To: CF-Talk Subject: Re: Compiling Java / Error I think the suggestion to just download 1.4.2 is the best solution unless you have some very intense things to do with Java. Ben Nadel wrote: Jake, that IS my constructor code... I was just making a not to myself that that is where it goes. I am big found of think out loud (no paper). Thanks for the tip about String. I am just trying to avoid using any IMPORT directives at first. I am looking at downloading this: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22PartDetailI d= j2sdk-1.4.2_12-oth-JPRSiteId=JSCTransactionId=noreg Any one know if this will compile correctly for CFMX 7? Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:58 AM To: CF-Talk Subject: Re: Compiling Java / Error What version of the SDK did you download? The lastest is either 5.0 or possibly 6. If I recall, ColdFusion currently supports 1.4.2 which is the equivalent of 4.2. FYI, you don't need java.lang.String. Just String. java.lang is a package which is included by default in EVERY class without explicitely naming it. The only time you would need it is if you wrote your own String class inside the same package or folder, then you'd have to specify java.lang. Out of curiosity, what is your constructor code? You don't really need constructor code here because your not building anything. You need the constructor unless you make the SayHello() method static, but you don't need any code inside it (I don't think) Ben Nadel wrote: Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255990 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Compiling Java / Error
Just playing around at the moment. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 11:31 AM To: CF-Talk Subject: Re: Compiling Java / Error what do you ultimately need it to do? Or are you just playing around with it? Ben Nadel wrote: Well, my HelloWorld class isn't that intense YET :D I will download the 1.4.2. Thanks for the help guys. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255991 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Compiling Java / Error
This is where having an IDE is enormously helpful (even if you are doing hello world!) Get into Eclipse, you can define the level of complicance for a project (or for your whole workspace) by editing your project properties. Then you can use one SDK but make sure it is all compiled to a target SDK. Regards Mark Drew On 10/9/06, Ben Nadel [EMAIL PROTECTED] wrote: Well, my HelloWorld class isn't that intense YET :D I will download the 1.4.2. Thanks for the help guys. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 11:20 AM To: CF-Talk Subject: Re: Compiling Java / Error I think the suggestion to just download 1.4.2 is the best solution unless you have some very intense things to do with Java. Ben Nadel wrote: Jake, that IS my constructor code... I was just making a not to myself that that is where it goes. I am big found of think out loud (no paper). Thanks for the tip about String. I am just trying to avoid using any IMPORT directives at first. I am looking at downloading this: http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22PartDetailI d= j2sdk-1.4.2_12-oth-JPRSiteId=JSCTransactionId=noreg Any one know if this will compile correctly for CFMX 7? Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Jake Churchill [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:58 AM To: CF-Talk Subject: Re: Compiling Java / Error What version of the SDK did you download? The lastest is either 5.0 or possibly 6. If I recall, ColdFusion currently supports 1.4.2 which is the equivalent of 4.2. FYI, you don't need java.lang.String. Just String. java.lang is a package which is included by default in EVERY class without explicitely naming it. The only time you would need it is if you wrote your own String class inside the same package or folder, then you'd have to specify java.lang. Out of curiosity, what is your constructor code? You don't really need constructor code here because your not building anything. You need the constructor unless you make the SayHello() method static, but you don't need any code inside it (I don't think) Ben Nadel wrote: Hey all, I am trying to experiment with Java and am off to a rocky start. I downloaded the latest SDK from Sun and was able compile a simple HelloWorld class: public class HelloWorld { public HelloWorld(){ // Constructor code. } public java.lang.String SayHello(){ return( Hello You Beautiful World, You! ); } } Compiles fine. But then, I went to try it in a URL class loader in ColdFusion and I get this error: HelloWorld (Unsupported major.minor version 49.0) null From my Googleing it looks like the SDK java version is different than the java persion on our local J2EE server (i am compilling on my local harddrive). Any suggestions? It seems like such a simple class. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255994 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Compiling Java / Error
Ben, Why don't you compile it with coldfusion via jws and then classload it via coldfusion bootstrap? I would alway keep code in each class to keep private static final long serialVersionUID = 1820017752578914078L; from having those errors. Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256005 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Compiling Java / Error
Dan, I appreciate that, but here is what I just read Blah blah blah blah blah. I have NO IDEA what you are talking about. This is Day One Java for me :) What is JWS? What is bootstrapping? I have stuff compiling right now in 1.4.2 so, don't feel any pressure to go more in depth. But if you do, I am willing to learn. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 1:50 PM To: CF-Talk Subject: Re: Compiling Java / Error Ben, Why don't you compile it with coldfusion via jws and then classload it via coldfusion bootstrap? I would alway keep code in each class to keep private static final long serialVersionUID = 1820017752578914078L; from having those errors. Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256006 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Compiling Java / Error
Great! Here are the steps: Put the java source on your web root and change the .java to .jws Then call it like a web service with ?wsdl so its helloWorld.jws?wsdl Now if all went well then your class is hanging inside the jwsClasses directory. You then have go out and pull that class inside CF. You said you are already pulling classes in with a URL classloader, so just give it that directory and you are done! cfset DansArray[1] = createObject(java,java.net.URL ).init(file:C:\CFusionMX7\wwwroot\WEB-INF\jwsClasses\) cfset GetObject = createObject(java, coldfusion.bootstrap.BootstrapClassLoader ).SystemClassLoader.newInstance(DansArray).loadClass(helloWorld).newInstance()/ If you leave out .newInstance() you can start to play around with reflection and make a class dumper. On 10/9/06, Ben Nadel [EMAIL PROTECTED] wrote: Dan, I appreciate that, but here is what I just read Blah blah blah blah blah. I have NO IDEA what you are talking about. This is Day One Java for me :) What is JWS? What is bootstrapping? I have stuff compiling right now in 1.4.2 so, don't feel any pressure to go more in depth. But if you do, I am willing to learn. Thanks, Ben .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Dan Plesse [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 1:50 PM To: CF-Talk Subject: Re: Compiling Java / Error Ben, Why don't you compile it with coldfusion via jws and then classload it via coldfusion bootstrap? I would alway keep code in each class to keep private static final long serialVersionUID = 1820017752578914078L; from having those errors. Dan ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256069 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: OT: Compiling java source code
If you're going to compile java code and you don't want to go all the way and install some kind of IDE, then you should really really really look into using Ant. In fact, some linux distros already come with a version of ant installed (but since your distro shipped without a JDK i guess that's doubtful in your case). One of the key benefits is that your classpath settings are effectively documented in your ant build file, which is a real time saver if you come back to your code six months later, or if you need to get the code compiling on some one else's machine. I read your blog entry and it would be easy to setup a build file to compile and jar your code. /t -Original Message- Subject: OT: Compiling java source code From: Rick Root [EMAIL PROTECTED] Date: Thu, 16 Feb 2006 23:16:51 -0500 Thread: http://www.houseoffusion.com/cf_lists/index.cfm/method=messages threadid=44685forumid=4#232676 I finally got everything compiled and working. Many issues along the way were solved, and since I went through this whole process 6 months ago and didn't remember a damn thing, I decided to blog about it this time: Compiling Custom Event Gateways For Dummies http://www.rickroot.com/blog/1/2006/02/Compiling-Custom-Event-G ateways-For-Dummies.cfm Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232707 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Compiling java source code
RADEMAKERS Tanguy wrote: If you're going to compile java code and you don't want to go all the way and install some kind of IDE, then you should really really really look into using Ant. In fact, some linux distros already come with a version of ant installed (but since your distro shipped without a JDK i guess that's doubtful in your case). One of the key benefits is that your classpath settings are effectively documented in your ant build file, which is a real time saver if you come back to your code six months later, or if you need to get the code compiling on some one else's machine. I read your blog entry and it would be easy to setup a build file to compile and jar your code. I guess it depends on how much time you want to spend learning ant to compile a single jave file. =) My distro was CentOS, btw... no jdk available in the centos repos. :( rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232709 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Compiling java source code
You have to include '.' in your CLASSPATH, or it won't pick it up. I'm not sure that's the problem, but I'm guessing SimpleGateway extends EmptyGateway? cheers, barneyb On 2/16/06, Rick Root [EMAIL PROTECTED] wrote: This is a bit off topic... I'm running CFMX Enterprise on a linux server and I want to compile a custom gateway. I downloaded and installed the j2sdk from sun and installed it, and I did this: CFHOME=/opt/coldfusionmx7 javac -classpath $CFHOME/lib/cfusion.jar:$CFHOME/lib/log4j.jar:$CFHOME/runtime/lib/jrun.jar SimpleGateway.java and clearly, it's not doing the classpath stuff cuz I get errors like this: SimpleGateway.java:12: cannot resolve symbol symbol : class EmptyGateway location: package examples import examples.EmptyGateway; and a bunch of other errors... Anyone know how to do this? rick -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232593 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Compiling java source code
Barney Boisvert wrote: You have to include '.' in your CLASSPATH, or it won't pick it up. I'm not sure that's the problem, but I'm guessing SimpleGateway extends EmptyGateway? Yes... it's actually a copy of the Directory Watcher gateway, and I just simplified it.. Okay.. I added . to the classpath and I'm having the same problem. It seems like it's just not picking up the stuff in the classpath. I get the same error if I set the CLASSPATH environment variable and if I use the -classpath option (ie, javac -classpath blah:blah:blah foo.java) Could it have anything to do with java versions? the jre that coldfusion uses (and that it was compiled with) was 1.4.2_05 ... I can't seem to download anything but 1.4.2_10. Stupid sun doesn't seem to give you an option to download previous versions. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232669 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Compiling java source code
Have you tried from within Eclipse, building the project to include the jars? On 2/17/06, Rick Root [EMAIL PROTECTED] wrote: Barney Boisvert wrote: You have to include '.' in your CLASSPATH, or it won't pick it up. I'm not sure that's the problem, but I'm guessing SimpleGateway extends EmptyGateway? Yes... it's actually a copy of the Directory Watcher gateway, and I just simplified it.. Okay.. I added . to the classpath and I'm having the same problem. It seems like it's just not picking up the stuff in the classpath. I get the same error if I set the CLASSPATH environment variable and if I use the -classpath option (ie, javac -classpath blah:blah:blah foo.java) -- CFAJAX docs and other useful articles: http://jr-holmes.coldfusionjournal.com/ ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232672 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Compiling java source code
oh crud, I didn't put examples.jar into the class path, so it couldn't find the EmptyGateway stuff. Problem solved! Rick Rick Root wrote: Barney Boisvert wrote: You have to include '.' in your CLASSPATH, or it won't pick it up. I'm not sure that's the problem, but I'm guessing SimpleGateway extends EmptyGateway? Yes... it's actually a copy of the Directory Watcher gateway, and I just simplified it.. Okay.. I added . to the classpath and I'm having the same problem. It seems like it's just not picking up the stuff in the classpath. I get the same error if I set the CLASSPATH environment variable and if I use the -classpath option (ie, javac -classpath blah:blah:blah foo.java) Could it have anything to do with java versions? the jre that coldfusion uses (and that it was compiled with) was 1.4.2_05 ... I can't seem to download anything but 1.4.2_10. Stupid sun doesn't seem to give you an option to download previous versions. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232673 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: OT: Compiling java source code
I finally got everything compiled and working. Many issues along the way were solved, and since I went through this whole process 6 months ago and didn't remember a damn thing, I decided to blog about it this time: Compiling Custom Event Gateways For Dummies http://www.rickroot.com/blog/1/2006/02/Compiling-Custom-Event-Gateways-For-Dummies.cfm Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232676 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
You're using the Java 1.5 JDK, CF uses the 1.4 JVM. You need to tell the compiler to target Java 1.4. Ok, I was suspecting something like that, although the message version 49.0 doesn't really make it particularily limpid ;-)) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217614 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
further, you need to point to the correct JARs and JRE within the project properties in Eclipse. right click on the project properties Java Build Path libraries. You did start with a Java project in Eclipse, correct? DK On 9/8/05, Claude Schneegans [EMAIL PROTECTED] wrote: You're using the Java 1.5 JDK, CF uses the 1.4 JVM. You need to tell the compiler to target Java 1.4. Ok, I was suspecting something like that, although the message version 49.0 doesn't really make it particularily limpid ;-)) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217623 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
You're using the Java 1.5 JDK, CF uses the 1.4 JVM. BTW, this is weird, I mean wasn't Java supposed to solve all compatibility problems? With CF 3, 4, 5, I never encountered any compatibility problem with my C custom tags, whether they where compiled using VC++ 4, 5, or 6. Now that CF goes Java, it is fussy about a MINOR version? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217629 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
I always think it's funny to hear people talk about things that are going to eliminate compatibility problems. It makes you wonder why people strive so hard to say things that are gonna make them look ridiculous in hindsight. Compatibility problems exist becuase so many technologies are so different. Nothing is going to completely eliminate that. --Ferg Claude Schneegans wrote: You're using the Java 1.5 JDK, CF uses the 1.4 JVM. BTW, this is weird, I mean wasn't Java supposed to solve all compatibility problems? With CF 3, 4, 5, I never encountered any compatibility problem with my C custom tags, whether they where compiled using VC++ 4, 5, or 6. Now that CF goes Java, it is fussy about a MINOR version? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217634 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
Nothing is going to completely eliminate Ok, may be not completely eliminate, but Java was definitely not supposed to increase uncompatibilities. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217645 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
No, I wasn't baggin' on your statement Claude. I was baggin' on people I've heard make that statement over the years... --Ferg Claude Schneegans wrote: Nothing is going to completely eliminate Ok, may be not completely eliminate, but Java was definitely not supposed to increase uncompatibilities. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217654 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
I was baggin' on people I've heard make that statement over the years... Yeah, got it. Looks like the way Java has solved to compatibility problem is that no machine now is uncompatible with another one: The all are uncompatible with the same damn virtual and emulated dumb machine! ;-)) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217664 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Compiling Java ?%$/%??
Hi, In the CFMX docs about Writing a Java CFX tag, it looks so simple: Compile the java source file into a class file using the Java compiler. If you are using the command-line tools bundled with the JDK, use the following command line, which you execute from within the classes directory: javac -classpath cf_root\lib\cfx.jar MyHelloColdFusion.java ... If you receive errors during compilation, check the source code to make sure you entered it correctly. If no errors occur, you successfully wrote your first Java CFX tag. Now what if you get no error message and no tag compiled and no cab library updated, NO NOTHING? When I run the compiler, I see some black window open a fraction of a second, then POUF! it is gone! Where are my error messages? I tried to redirect text results from the compiler with some errors.txt file, like in good old days under DOS, I get a file, but it is empty :-( Can someone help? Thanks. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217573 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Compiling Java ?%$/%??
Now what if you get no error message and no tag compiled and no cab library updated, NO NOTHING? When I run the compiler, I see some black window open a fraction of a second, then POUF! it is gone! Where are my error messages? If you run the Java compiler from the command line, it should send all errors to STDOUT and you should see them right there in your command prompt window. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217575 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
If you run the Java compiler from the command line, it should send all errors to STDOUT and you should see them right there in your command prompt window. Yeah, but it has been so long before I used a command prompt, it looks like stone age. So I'm trying to define a command in a custom button in CF Studio, and I have problem to get the stdout to be piped to a file. I was hoping Eclipse could help me, but I see no settings no nothing for Java compiling :-( Although it appears full of features, I'm still looking for simple things I'm using a lot in Studio, like drag and drop to move a selection a couple of lines higher or lower. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217587 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Compiling Java ?%$/%??
So I'm trying to define a command in a custom button in CF Studio, and I have problem to get the stdout to be piped to a file. Ok, I managed to define a custom button in the Tools menu in CF Studio. This button calls the bat file below and passes the file name as first parameter (gee, DOS is really far away!) C:\Program Files\Java\jdk1.5.0_04\bin\javac -classpath C:\CFusionMX\lib\cfx.jar -d C:\CFusionMX\wwwroot\WEB-INF\classes %1 C:AAA.txt It works, I got the compile class at the right place, CF has recognized the CFX, but it is complaining that Unsupported major.minor version 49.0 about my tag ??? What the heck is that? version of WHAT? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217594 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Compiling Java ?%$/%??
You're using the Java 1.5 JDK, CF uses the 1.4 JVM. You need to tell the compiler to target Java 1.4. Try changing your command to C:\Program Files\Java\jdk1.5.0_04\bin\javac -target 1.4 -source 1.4 -classpath C:\CFusionMX\lib\cfx.jar -d C:\CFusionMX\wwwroot\WEB-INF\classes %1 C:AAA.txt -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 September 2005 3:04 p.m. To: CF-Talk Subject: Re: Compiling Java ?%$/%?? So I'm trying to define a command in a custom button in CF Studio, and I have problem to get the stdout to be piped to a file. Ok, I managed to define a custom button in the Tools menu in CF Studio. This button calls the bat file below and passes the file name as first parameter (gee, DOS is really far away!) C:\Program Files\Java\jdk1.5.0_04\bin\javac -classpath C:\CFusionMX\lib\cfx.jar -d C:\CFusionMX\wwwroot\WEB-INF\classes %1 C:AAA.txt It works, I got the compile class at the right place, CF has recognized the CFX, but it is complaining that Unsupported major.minor version 49.0 about my tag ??? What the heck is that? version of WHAT? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217596 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54