Dear All,
 
  I have a strange compilation problem.  I am able to compile a java program here on WinNT(jdk1.3) Platform without any problems but the same program I am not able to compile on Ret Hat Linux 7.1(jdk1.3.1_02).
 
  Now to compile this program I need to include a jar file (somname.jar) in the classpath.  Which I did on both the environment.
 
  For WinNT
 
  set classpath=%classpath%;c:\karthik\cc.jar;
 
  For Linux
 
  CLASSPATH=$CLASSPATH:/usr/local/lib/cc.jar
  export CLASSPATH
 
  But on Linux platform I am getting the following errors :
 
  for package name it says - package somepackagename does not exist
 
  and for classes that comes inside the package which ofcourse is being used by this program   I am getting
 
  cannot resolve symbol error.
 
 
  Now could you believe it I know that if I put any jar files inside
 
  c:\JAVA_HOME\jre\lib\ext\
 
  the above directory I do not need to set classpath for the jar files inside those directory, it will be taken automatically when compiling.  Which worked for WinNT environment.  But the same thing if I do for Linux it doesn't work.
 
  Now we can specify classpath when we are trying to compile like this.
 
  javac -classpath <path> - but this works well for directories but not for .jar files.
 
  Now what I am doing wrong here. 
 
  Looking forward for yours response.
 
karthikeyan.
 
-------------------------------------------------------------------------------------------------------------
Judge not, that ye be not Judged - Abraham Lincoln's favorite quote
-------------------------------------------------------------------------------------------------------------

Reply via email to