• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

J2EE setup and runnig

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?


 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See also http://forums.java.sun.com/thread.jsp?forum=13&thread=21673
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic