• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converter example of J2EETUTORIAL

 
pankaj agarwal
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am not able to compile ConverterClient.java. I am using ant. It points errors at "import Converter" and "import ConverterHome".
My classpath looks like this in autoexec.bat
set classpath=%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\jhall.jar;%J2EE_HOME%\lib\ejb10deployment.jar;%J2EE_HOME%\lib\j2ee-ri-svc.jar;%J2EE_HOME%\lib\system;.;%ANT_HOME%\lib;%classpath%
Please help me!
TIA
Pankaj
 
Michael Morett
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you have at least the following...
J2EE_HOME=c:\j2sdkee1.3
JAVA_HOME=c:\jdk1.3.1
ANT_HOME=c:\jakarta-ant-1.3
CLASSPATH=c:\jbuilder4\jdk1.3

(I know...I'm using two JDKs. I just noticed the inconsistency in the CLASSPATH, but my Converter example ran just fine.)
good luck.
 
Michael Morett
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me be more specific...
your JAVA_HOME and CLASSPATH should point to the same JDK and feel free to substitute your JDK in place of my example which showed JBuilder. I dont mean to imply that you literally need to have a CLASSPATH as shown in the previous example.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the exact error message? My guess is that your import statements are being rejected because they don't specify any package names as in "import com.sun.j2ee.tutorial.Converter".
Just a guess.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!