Solved

Question about j2ee.jar

Posted on 2004-08-29
13
471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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
 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why my table column Id is not passed to java object? 4 46
ejb stateless example 2 44
Setup GlassFish 4 37
How to fix  socket closed error 11 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

730 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