Converter classes not compiled (i am new!!)
Hello
I installed the j2eetutorial14 and tried the converter example. I tried the build with asant, it was not recognised, I found the a thread about the asant http://forums.java.sun.com/thread.jspa?threadID=560028&messageID=2751518
I followed some instruction on this thread which helped. In this thread it says to type "c:\Sun\AppServer\bin\asant.bat listprops" I typed it on the converter directory and the message was that the "build completed".
Now i do not know how it gives the message because it seems that the three classes in the converter directory has not compiled. There is a directory called converter which is empty. (I am not sure if that is the build directory as they say). I cannot find any build directory on the tutorial
I tried to compile them one by one on the commend line, class ConverterHome.java does not compile and give the through RemoteException error.
can someone help me please?
Thanks
[967 byte] By [
dsi_1] at [2007-9-30 23:17:16]

You should be able to type ant or asant build in the mainlevel converter directory.
This will then create a build directory which has the classes that were compiled and built
You will see it run the init, prepare and build targets and the output will be displayed to your screen.
Make sure you correctly set the properties in build.properties for your environment.
Hello and thanks for your reply,
When I write the asant in the converter directory the message is 慳sant?is not recogniezed?
I typed the full path 揅:\Sun\AppServer\bin\asant ? it started the init: but at the end it says 揃UILD FAILED? And then it give the path for tutorial C:/j2eetutorial1/examples/ejb/common/targets.xml:18 C:\Sun\appServer%PATH%\lib not found
In the
C:\j2eetutorial14\examples\common. Buildproperties.xml file I have
J2ee.home=%PATH%C:/Sun/appServer%path%
J2ee.tutorial.home=c:/j2eetutorial14
i do not know what is wrong with this
dsi_1 at 2007-7-7 13:50:06 >

try setting j2ee.home to C:/Sun/appServerJ2ee.home=C:/Sun/appServer
Ryan's response should get you going. J2ee.home along with the other properties expect that the values that are supplied that are exact, so you should not include %PATH%, just the path to the install directory
I corrected the two properties. Again when i typed asant on the converter directory, it does not recognise it. However, this time when i type c:\Sun\AppServer\bin\asant.bat listprops
'build successful', this message comes after a long output of classpaths and echos. But nothing is really build in the converter directory.
any more ideas.
dsi_1 at 2007-7-7 13:50:06 >

its me again, i just wanted to print my classpath and invoiement variables, i am a bit confused with classpath and path(do not know the diff)
ANT_HOME =C:\Sun\AppServer\bin
J2EE.HOME=C:\\Sun\\AppServer\\lib\\j2ee.jar
J2EE.TUTORIAL.HOME=C:\\j2eetutorial14
JAVA_HOME=C:\Sun\AppServer\jdk
CLASSPATH = %CLASSPATH%C:\orant\LITE\CLASSES\OLJDK11.JAR;C:\orant\LITE\CLASSES\OLITE40.JAR;C:\sss\LITE\CLASSES\OLJDK11.JAR;C:\sss\LITE\CLASSES\OLITE40.JAR;;%BASEDIR%\bin;%BASEDIR%\common\endorsed;%JAVA_HOME%\\bin;c:\\sun\AppServer\\jdk\\bin;C\\Sun\\AppServer\\lib;C:\\Sun\\AppServer\\lib\ant\\bin;C:\\Sun\\AppServer\\lib\\j2ee.jar;%J2EE.HOM%\\bin;C:\\j2eetutorial14\examples\\common; C:\\IBM\\Cloudscape_10.0\\frameworks\\embedded\\bin;%CLOUDSCAPE_INSTALL%\\lib\derby.jar;%CLOUDSCAPE_INSTALL%\\lib\derbytools.jar;%ANT_HOME%\\bin;c:\\j2eetutorial14\\examples;c:\\j2eetutorial14\\examples\\web\\hello1;%J2EE.TUTORIAL.HOME%\\bin;;%J2EE.TUTORIAL.HOME%\\lib;%J2EE.TUTORIAL.HOME%\\lib\\j2ee.jar;;%J2EE.TUTORIAL.HOME%\\lib\\endorsed;C:\\j2eetutorial14\\examples\\ejb\\common;C:\\j2eetutorial14\\examples\\common;C:\\Program Files\\Apache Group\\Tomcat4.1\\common\\lib\\servlet.jar;;%CLASSPATH%
Path=%PATH%C:\orant\bin;C:\sss\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\\Sun\\AppServer\\jdk\\bin;%ANT_HOME%\\bin; %J2EE.TUTORIAL.HOME%\\bin ;c:\\Sun\\AppServer\\lib\\ant\\bin;;%ANT_HOME\\bin;
I know i have mixed them up. But it has been two weeks now i am playing wiht them, i tried hard to make them up and running but could not. So i tought i should show it to the experts.
dsi_1 at 2007-7-7 13:50:06 >

The PATH variable tells the OS where to look for executable programs. The CLASSPATH variable tells the java compiler and VM where to look for class files. When using asant add the -verbose command line argument to see what the asant task is doing. This will give you a better idea of what is going on.
Hello and thanks for everyone who helped me on this.
I have changed classpath and path. Now the only way to work with asant is to type the full path "C:\Sun\AppServer\bin\asant" with -verbose. on the converter directory.
Can someone tell me why it does not work when i type 'asant build' on the converter directory.
thanks
dsi_1 at 2007-7-7 13:50:06 >

Add C:\Sun\AppServer\bin to your PATH variable.
thanks I thought I had that in the path. But it was missing, I added it and now it works perfectly. Thanks again
dsi_1 at 2007-7-7 13:50:06 >
