This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Zero to AI - A non-technical, hype-free guide to prospering in the AI era and have Nicolò Valigi and Gianluca Mauro on-line!
See this thread for details.
Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Glassfish Installation Help

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

My Directory Structure

C:\Java\JDK -> Java 1.6
C:\Java\SDK -> JAVA EE
C:\Java\Glassfish -> Glassfish

What i did
1. Installed Java 1.6
2. installed Java EE
3. Env Variables
J2EE_HOME to C:\Java\SDK
JAVA_Home to C:\Java\JDK\bin
added C:\Java\SDK\bin;C:\Java\JDK\bin to PATH
added %J2EE_HOME%\lib\j2ee.jar to CLASSPATH
4. ran
java -Xmx256m -jar glassfish-installer-v2ur2-b04-windows.jar from its location and got installation complete.

Problem...
---------
When i run
ant -f setup.xml i get the command not recognized error...
I didnt install ant separately since it said it is optional
I havent used ant before plese help me how to get this up and running.

Other questions
---------------
1)I get command not recognized for j2ee -verbose too...is the new version installation different from the old?
2) the same error i get when i try java -version with only the JAVA_HOME and the path variable not added c:\Java\SDK\bin.

J2EE_HOME and JAVA_HOME has no effect now?

3)the Java EE said it has Glassfish in it... http://java.sun.com/javaee/downloads/index.jsp --- i got the 160MB version. Is it the same as the Glassfish i am trying to install separately?


NOTE
Inspite of this errors i am able to log to he admin console
Thanks
[ September 28, 2008: Message edited by: Srividhya Anand ]
 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok...
I added C:\Java\Glassfish\glassfish\lib\ant\bin to my path and now the
ant -f setup.xml returns me
Buildfile: setup.xml does not exist!
Build failed

Any help?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Buildfile: setup.xml does not exist!


Did you change directory ?

cd glassfish
ant -f setup.xml
 
Balaji Anand
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks... the ant script is successful. i didnt change to the glassfish directory after i changed the path.
 
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic