aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE setup and runnig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE setup and runnig" Watch "J2EE setup and runnig" New topic
Author

J2EE setup and runnig

Jahchand
Greenhorn

Joined: Jul 08, 2001
Posts: 1
Hi,
I have just got J2EE
I am sure that I have set the appropriate classpaths and environment varaibles..
But when I try to run J2EE from bin directory I get the following:
C:\j2sdkee1.3\bin>set J2EE_HOME=C:\j2sdkee1.3
C:\j2sdkee1.3\bin>set JAVA_HOME=C:\jdk1.2.2
Syntax error
Syntax error
Syntax error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context
Can anyone help?
thanks
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Jahchand",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
tatae alvostru
Greenhorn

Joined: Jun 04, 2001
Posts: 17
I get the same synzatx errors but don't know where they come from. I also have to set the env space to 32k. Are you on WinMe ?
Andrew Jahchand
Greenhorn

Joined: Jul 09, 2001
Posts: 7
No I am using windows 98
Originally posted by tatae alvostru:
I get the same synzatx errors but don't know where they come from. I also have to set the env space to 32k. Are you on WinMe ?

Roopa Bagur
Ranch Hand

Joined: Nov 03, 2000
Posts: 267
You have to set your Classpath to point to j2sdkee\lib\j2ee.jar
Originally posted by Jahchand:
Hi,
I have just got J2EE
I am sure that I have set the appropriate classpaths and environment varaibles..
But when I try to run J2EE from bin directory I get the following:
C:\j2sdkee1.3\bin>set J2EE_HOME=C:\j2sdkee1.3
C:\j2sdkee1.3\bin>set JAVA_HOME=C:\jdk1.2.2
Syntax error
Syntax error
Syntax error
Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context
Can anyone help?
thanks

Rishi Kumar
Greenhorn

Joined: Mar 28, 2001
Posts: 19
Hi guys,
How did you get away with it?
I have set the classpath to C:\j2sdkee1.3\lib\j2ee.jar but still giving syntax error.
Please help.
THank you


Rishi Kumar,SCJP SCJD SCWCD
m rahman
Greenhorn

Joined: Aug 22, 2001
Posts: 1
Make sure that all bat files are in PC format. If you open any bat file using notepad and see black rectangular boxes instead of
new line character, delete all boxes and replace them with new carriage return.
If still you have syntax error problem, you have to do something else that can be discussed later.

Originally posted by Rishi Kumar:
Hi guys,
How did you get away with it?
I have set the classpath to C:\j2sdkee1.3\lib\j2ee.jar but still giving syntax error.
Please help.
THank you

Frank Glinka
Greenhorn

Joined: Aug 25, 2001
Posts: 2
Hi. 3 lines of the setenv.bat File causes this Error Messages.
Take a look at: http://www.javaranch.com/ubb/Forum11/HTML/000956.html
Frank Glinka
Greenhorn

Joined: Aug 25, 2001
Posts: 2
See also http://forums.java.sun.com/thread.jsp?forum=13&thread=21673
 
Don't get me started about those stupid light bulbs.
 
subject: J2EE setup and runnig