File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes help needed-j2ee installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help needed-j2ee installation" Watch "help needed-j2ee installation" New topic

help needed-j2ee installation

Jenny raj
Ranch Hand

Joined: May 19, 2005
Posts: 57
hi ranchers

i have installed j2ee 1.4 on my system succesfully and my default folder is c:\Sun\AppServer,i am trying to set the class path in system variables,but when i click on j2ee.jar file under c:\Sun\AppServer\lib it says

"failed to load main-class manifest attribute from c:\sun....."

what is the error message is all about?

does there any problem in installation?
Abhinaba Basu

Joined: Jun 06, 2006
Posts: 15
No dear, there is no error in your installation. Actually two types of jar files are there.
First type is which have a main method in any class(executable jar files). And doubleclicking on this it will run. If the jar file is archive of a swing project you can see the window, but if it is of a simple java project, you can't see anything and it will run in background.

2 nd type is simple archive, without any main method in any class. this type is not executable. It is only collections of some packeges. here j2ee.jar is second type jar files, which is a collections of som packages you need to compile and run your j2ee projects. So this files can't be execute as a executable jarfile.

No need to run the file, you just copy the file path and past it into class path variable values. That's all.

<b>Abhinaba basu</b><br />Software Engineer,<br /><a href="http://""" target="_blank" rel="nofollow">Kaizen Informatics Pvt Ltd</a><br /><a href="http://""" target="_blank" rel="nofollow">My site</a> | <a href="http://""" target="_blank" rel="nofollow">My Blog</a> | <a href="http://""" target="_blank" rel="nofollow">My office</a>
Jenny raj
Ranch Hand

Joined: May 19, 2005
Posts: 57
hi abhi,

thanks a lot for ur reply,
u have cleared my doubt
I agree. Here's the link:
subject: help needed-j2ee installation
It's not a secret anymore!