• 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

setting J2EE_HOME

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I am using j2ee1.4.
How do i set J2EE_HOME.
i have already set this to c:\sun\AppServer, but still when i run j2ee, it shows the error J2ee_Home is not set to the correct location.
Plz help me

Rgds
Sree
 
author
Posts: 4356
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Umm, your question lacks a lot of information. What do you mean when you run J2EE? Are you running a J2EE server? If so, this information needs to be set on the server.

Where did you set the variable? In Windows? Servers often do not read Windows Environment variables as they have their own set of environment variables.

Please add more details about where you are setting this as well as how you are running your J2EE app.
 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am starting j2ee server by giving the command j2ee -verbose.
I've set the environmental variables in windows
 
Scott Selikoff
author
Posts: 4356
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Still doesn't answer a lot but this should work- use the -D switch to pass parameters when you start j2ee since your starting from command line (whereever you are setting the verbose switch).

From the java.exe help menu, :

-D<name>=<value>

with no spaces between values and no <> such as:

-DJ2EE_HOME=C:\J2EE
 
Ranch Hand
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) What Server are you using? Is it the Sun Java System App Server? (I am guessing this because you have c:\Sun\AppServer in one of your earlier posts)

2) Please copy and paste the actual error message that you get when you try to start the server.
 
Scott Selikoff
author
Posts: 4356
45
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh and I forgot to mention, 'verbose' has nothing to do with variables, it has to do with what information is outputted to the command line screen.
 
On my planet I'm considered quite beautiful. Thanks to the poetry in this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic