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

J2EE RI for a Mac

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am not sure how relevant this post is to this discussion thread as I have a machine specific problem.

I have a mac having OS X on it. Is there any J2EE RI available for this specific platform.
In the HFEJB I noticed that the deploy tool is running in a MAC environment, so there must be some way of doing it. Also since OS X is running on UNIX anyway, can I just install the Linux version and will it work.

Any clues?

Thanks

Thanks
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep -- you can install the Linux version and it will work just fine; the J2EE 1.3 RI is all-Java, so there's no problem. The only thing you need to do is be certain that you've set your environment variables correctly.

For example, here are the environment variables from my .tcshrc file:

setenv PATH ${PATH}:/Users/kathy/J2EEStuff/j2sdkee1.3.1/bin
setenv JAVA_HOME /usr
setenv J2EE_HOME /Users/kathy/J2EEStuff/j2sdkee1.3.1
setenv CLASSPATH .:${J2EE_HOME}/lib/j2ee.jar

This assumes that I placed the J2EE RI inside a directory named J2EEStuff within my home (kathy) directory.

If you make these changes, be sure you source it or open a new terminal, then you can test it by trying to open the deploytool:

% deploytool

and see what happens...

good luck!

We had no problems running the j2EE 1.3 RI under both 10.2 and 10.3, and using Java 1.3 (although you should have no trouble with Java 1.4).

cheers,
Kathy
 
Piyush Jain
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kathy.

J2EE RI 1.3.1 does work fine on Mac. Now you are using the tcsh shell whereas I have bash by default. i am able to open the deploytool by navigating to the j2ee bin directory but not otherwise from anywhere else. so I am having trouble configuring my environment variables. i dont see .cshrc, .profile or login_cshrc files in my home. i changed the path appropriately in /etc/profile but still doesn't work.

any clues?
 
Kathy Sierra
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've only used the default .tcsh shell, so these are the only instructions I can help with...

You can simply *create* a .tcshrc file in your home directory, if there isn't one. If you create it and save it in your home directory, then when you open a .tcsh terminal, it will all work and your env variables will be used.

I use pico as my editor for the .tcshrc file:


% pico .tcshrc

And mine looks like this currently (I have Tomcat configured as well)


setenv PATH ${PATH}:/Users/kathy/J2EEStuff/j2sdkee1.3.1/bin:/Users/kathy/J2EEStuff/apache-$
setenv JAVA_HOME /usr
setenv J2EE_HOME /Users/kathy/J2EEStuff/j2sdkee1.3.1
setenv ANT_HOME /Users/kathy/J2EEStuff/apache-ant-1.5.4
setenv CLASSPATH .:${J2EE_HOME}/lib/j2ee.jar:${ANT_HOME}/lib/ant.jar
setenv TOMCAT_HOME /Users/kathy/Applications2/tomcat

I'm hoping this will help...

Cheers,
Kathy
 
Piyush Jain
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That was perfect.

Thanks.
 
Kathy Sierra
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yay!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic