Solved

Question about j2ee.jar

Posted on 2004-08-29
13
466 Views
Last Modified: 2012-08-13
Hello,

My system has the jdk1.4.2 installed at c:\jdk1.4\bin under win98

And j2ee1.3 at c:\j2ee1.3\bin

I have only recently installed j2ee and just started to learn this system.

And would much appreciate some guidance, where the j2ee programs should be based, in the (bin) directory of jdk1.4 or j2ee1.3?

And when I compile j2ee programs, should I use the jdk1.4.2 javac tool?

And finally, do I copy the j2ee.lib file from the j2ee1.3\lib folder to the jdk1.4\bin folder?

Thanks again
0
Comment
Question by:AntoniRyszard656
13 Comments
 
LVL 14

Accepted Solution

by:
sudhakar_koundinya earned 30 total points
ID: 11926066
>>And when I compile j2ee programs, should I use the jdk1.4.2 javac tool?

Use Javac of jdk1.4 only

>> Question about j2ee.jar
place it in jdk1.4\jre\lib folder


>>And finally, do I copy the j2ee.lib file from the j2ee1.3\lib folder to the jdk1.4\bin folder?

Not necessary

set path=%path%;c:\jdk1.4\bin;c:\j2ee1.3\lib;

set classpath=%classpath%;c:\jdk1.4\jre\lib\j2ee.jar
0
 

Author Comment

by:AntoniRyszard656
ID: 11926278

Thank you for replying.

When I typed set path=%path%;c:\jdk1.4\bin;c:\j2ee1.3\lib;

dos displayed the error

Too many parameters

Could anyone explain the reason for this?

thanks
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11928406
>> set path=%path%;c:\jdk1.4\bin;c:\j2ee1.3\lib;

Are you sure that's exactly what you typed? There doesn't seem to be anything wrong with it.
0
 

Author Comment

by:AntoniRyszard656
ID: 11929611
Hello,

I tried the line again, and still got "Too many parameters".

Do you think the existing path might be up it's limit?

And could I increase the limit?

Thank you
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11930179
I tried the same on mine and it works. Try without the semi-colon at the end.
0
 

Author Comment

by:AntoniRyszard656
ID: 11930330
This classpath line works, perhaps I do not need to set the path?

set classpath=%classpath%;c:\jdk1.4\jre\lib\j2ee.jar

I also compiled a j2ee program using the jdk1.4 javac tool and this worked.

I donot have a server yet on my system, if I choose the sun one application server, or tomcat server. Could anyone explain how to configure my system to run the .java code through a server?

Thanks
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 30

Expert Comment

by:Mayank S
ID: 11930499
Yes, for compiling, you don't need the path variable. The classpath is enough.

You can download Tomcat from http://jakarta.apache.org/tomcat/
0
 

Author Comment

by:AntoniRyszard656
ID: 11930587
And if I used sun's one application server, or tomcat, will I also need to link the jdk1.4, or j2ee1.3 to the server?

Thanks
0
 

Author Comment

by:AntoniRyszard656
ID: 11931991
Thank you for repying.

I wondered if I could ask finally, the reason I installed j2ee1.3 rather than 1.4 was I am using win98 second addition.

I tried to install sun's one application server 7, but this requires later versions of windows.

Could anyone advice of an method, so I could run j2ee program in win98?

Thank you
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11939354
Try installing Tomcat instead.
0
 
LVL 8

Expert Comment

by:thomas908
ID: 11970814
Is ur problem solved or do u need more help?
plz do let us know
0
 

Author Comment

by:AntoniRyszard656
ID: 11981091
Sorry I forgot to assign the points.

The j2ee1.3 is working and I managed to compile a example code.

With regards the application server, I read about a program called JRun.

This software is free to download, but I was unsure if JRun alone was all I needed to execute j2ee, could anyone advise?

Thanks
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11987057
JRun should be enough. You can read more on it here:

http://www.macromedia.com/software/jrun/?promoid=home_prod_jr_100803
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now