holy crap!!! the compiling is fixed.
i tried this at the command line:
javac -classpath CFusionMX\lib\cfx.jar c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java
when it should be
javac -classpath c:\CFusionMX\lib\cfx.jar c:\CFusionMX\wwwroot\WEB-INF\classes\MyHelloColdFusion.java
i forgot the drive letter in the classpath .. DOH!!!
i may be back :)
thanks for responding so quickly!
- joe
>Joe,
>
>It appears as though you the cfx.jar is not in your class path. This JAR
>contains all of the interface classes that the ColdFusion Server uses to
>connect to your Java CFX.
>
>For CFMX this can be located in the lib subdirectory of your server
>installation.
>For CF 5 you can locate this in the Java subdirectory of your server
>installation.
>
>rish
>
>-----Original Message-----
>From: joe velez [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 18, 2004 4:01 PM
>To: CF-Talk
>Subject: CFX_MyHelloColdFusion
>
>
>Hi -
>
>Trying the most basic cfx tag to see if i can get one working.
>When I try to compile the .java file (copied from ) i get the following
>errors
>
>MyHelloColdFusion.java [11:1] package com.allaire.cfx does not exist
>import com.allaire.cfx.* ;
>^
>MyHelloColdFusion.java [13:1] cannot resolve symbol
>symbol : class CustomTag
>location: class MyHelloColdFusion
>public class MyHelloColdFusion implements CustomTag {
> ^
>MyHelloColdFusion.java [14:1] cannot resolve symbol
>symbol : class Request
>location: class MyHelloColdFusion
> public void processRequest( Request request, Response response )
> ^
>MyHelloColdFusion.java [14:1] cannot resolve symbol
>symbol : class Response
>location: class MyHelloColdFusion
> public void processRequest( Request request, Response response )
> ^
>4 errors
>Errors compiling MyHelloColdFusion.
>
>JAVA FILE
>
>import com.allaire.cfx.* ;
>
>public class MyHelloColdFusion implements CustomTag {
> public void processRequest( Request request, Response response )
> throws Exception {
> String strName = request.getAttribute( "NAME" ) ;
> response.write( "Hello, " + strName ) ;
> }
>}
>
>Ok, now i think the last 3 errors occur because of the first error, so lets
>start there.
>
>How can i add the package or what do i need to do to get this working?
>
>I'm running CFMX 6,1,0,63958 on Win2K Server and the version info for Java
>is:
>java version 1.4.2_04
>Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
>Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
>
>If anyone can help, thanks! If I can get this one working, I'm hoping to
>create my first real custom tag :)
>
>Thanks
>
>Joe
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- cfx_MyHelloColdFusion joe velez
- RE: cfx_MyHelloColdFusion Guy Rish
- Re: cfx_MyHelloColdFusion joe velez
- CFX_MyHelloColdFusion joe velez
- RE: CFX_MyHelloColdFusion Guy Rish
- Re: cfx_MyHelloColdFusion joe velez
- Re: CFX_MyHelloColdFusion joe velez
- Re: CFX_MyHelloColdFusion Pete Freitag
- RE: CFX_MyHelloColdFusion Dave Watts