*
The moose likes EJB and other Java EE Technologies and the fly likes beginner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "beginner" Watch "beginner" New topic
Author

beginner

satish roy
Greenhorn

Joined: Feb 27, 2007
Posts: 1
hi guys! I am new user of this site as well as new student of J2ee. I am not able set path for J2EE technologies ? can any one tell me how can i set Environment variables(CLASSPATH,PATH..etc)? I hope you can do this help. any way advance thanks to you.

CLASSPATH=c:\programfiles\java\jdk1.5.0\bin;.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Well you can set some environment variables like JAVA_HOME and include it in the PATH environment variable like %JAVA_HOME%\bin.

But you do not want to create an environment variable called CLASSPATH. Why? Because it is considered bad form. What happens is this, there are lots of applications that need Java out there, and if you have your CLASSPATH set, then it might make those other programs not work, and the other way around.

So your classpath should be set at "runtime" meaning at the command line when you start up your app. As a command line argument for Java.exe like "java -cp"

Or if you open a seperate command window, you can set a local to that command window variable.

So for j2ee, just when running your app have java -cp somewhere\j2ee.jar

Good Luck

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Arman Galustyan
Greenhorn

Joined: Mar 07, 2007
Posts: 10
Create a *.bat file that set the classpath, compiles all java files and runs the app.


Software development is risky.
 
Don't get me started about those stupid light bulbs.
 
subject: beginner
 
Similar Threads
Ant tool?
new to servlets! plz help!!!
J2ee env. variables
installation of j2sdkee1.3.1
servlet error!!!