• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

classpath

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What should be added to classpath to fix this?
My classpath does not have the right directories, as shown:
(1) The same TimeS.java file compiles on one machine and does not compile on a second machine. The classpath is :
set CLASSPATH=C:\J2SDKEE1.3\LIB;C:\jdk1.3.0_02\jre\lib;C:\jdk1.3.0_02\lib;.
Why does it compile on 1 machine and does not compile on another?
C:\orion\default-web-app\WEB-INF\classes>javac -classpath %CPATH% TimeS.java
TimeS.java:26: package javax.servlet does not exist
import javax.servlet.*;
^
TimeS.java:27: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
(2) C:\WINDOWS>j2ee -verbose
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/server/J2EEServer

 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This was addressed in Advanced.
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic