Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiling J2ee programs  RSS feed

 
Kathy OConnell
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have recently downloaded J2SDKEE1.3. I have not worked with J2ee before - only with sdk.
I am trying to run servlets. How do I compile and run programs in J2ee as the bin file does not have javac or java? In my path I have set up c:\jdk1.3.1_01\bin;j2sdkee1.3\bin;
When I compile in the command prompt using javac Test.java, I get a compile error
"Test.java:1: package javax.servlet does not exist
import javax.servlet.*;"
Can you please help!
 
Yoo-Jin Lee
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Try putting the servlets.jar file in the classpath.
cheers,
Yoo-Jin.
 
John Smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet class are in the file j2ee.jar.
Located in c:\j2sdkee1.3\lib
type in windows)
set classpath=c:\j2sdkee1.3\lib\j2ee.jar;%classpath%
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!