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

beginner

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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;.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Create a *.bat file that set the classpath, compiles all java files and runs the app.
 
You can't have everything. Where would you put it?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic