File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes j2ee install 1.3.1 on dapper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "j2ee install 1.3.1 on dapper" Watch "j2ee install 1.3.1 on dapper" New topic
Author

j2ee install 1.3.1 on dapper

prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Hi All,

It keep popping from time to time as you can see from here,here,here,here and here
I have downloaded j2ee from sun "1.3.1 FCS Release" but I am not getting any .bin file what I get is a tar that I started to install using this
but my default shell is bash and I don't know where to go once I've extracted the tar in my usr/local please guide me beyond this

Cheers

["Your links go nowhere" Oops]
[ April 04, 2007: Message edited by: prateek urmaliya ]

this message brought to you by .... PIE! .... it's yummy! ;)
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

Your links go nowhere, so I don't really know what you are talking about.
After installing the J2EE, the instructions recommend several starting points.


[How To Ask Questions On JavaRanch]
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Are you sure you want to install j2ee and not j2sdk?
And why 1.3 and not 1.5 or 1.6?

The provided gcj-Java is not at all up to date.
There is a sun-java5-sdk (=1.5) available with synaptic/aptitude too.


http://home.arcor.de/hirnstrom/bewerbung
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Are you sure you want to install j2ee and not j2sdk?

Yes
And why 1.3 and not 1.5 or 1.6?

because I am reading a book that uses that version,
I have the JDK(sun) in place but on wiki there is no instruction for j2ee !!
Please let me know if you have done it on dapper for j2ee 1.3.1
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Thanks joe,

I guess I can use the same
bash$ MYVAR=widget
bash$ export MYVAR
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
well i guess the problem is not fixed fully
I am not able to run j2ee from terminal
it is giving NoClassDefFoundError , I found this

You should go to at least J2EE1.4 (EJB 2.1) or, even better JEE 5

I am using 5.0 but it seems it is not compatible with j2ee1.3
which jdk I should use (I can't move to j2ee 1.4)?
[ April 05, 2007: Message edited by: prateek urmaliya ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

From the download page it appears the supported configurations are either JDK 1.3.1_02 or 1.4.
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Thanks joe
I'll try with 1.4
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87

It's workin
I'll list here the steps involved lest I forget
1. I wanted to install j2ee for reading and practicing head first ejb on dapper drake.
2. I need to have j2ee 1.3.1 coz first chapter admonished so
3. So I went to sun and downloaded j2sdkee-1_3_1-linux.tar.gz
4.copied it to /usr/local (you can choose whatever suits you)
5.

this will create a directory with the name j2sdkee1.3.1 in /usr/local
6.had java 5.0 on my machine that can cause this problem removed it using synaptic
7. got java 1.4 java 1.4courtesy joe
note it's j2sdk-1_4_2_14-linux-i586.bin one without "rpm"
8.

9.didn't had fakeroot,make,java-package

which created j2sdk-1_4_2_14-linux-i586.deb in same directory where .bin was

10.just to make sure gcj will not be used

11.did java -version
12.need to set environment variable

* J2EE_HOME - the directory where you've installed this release.
* JAVA_HOME - the directory where the Java 2 SDK Standard Edition is installed.
* PATH - include the bin directory beneath the directory where you've installed this release.

hmmm..
I found this
13.created file pu_env in /etc

and added these lines to /etc/bash.bashrc and /etc/X11/Xsession.d/55gnome-session_gnomerc

courtesy NeTo
14.did j2ee

Thanks Joe Stefan NeTo
Please suggest if something could be done in better way
[ April 06, 2007: Message edited by: prateek urmaliya ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: j2ee install 1.3.1 on dapper