• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Converter example of J2EETUTORIAL

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
My pie came with a little toothpic holding up this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic