cancel
Showing results for 
Search instead for 
Did you mean: 

Java Development using NWDS

Former Member
0 Kudos

Hello all,

I am just trying to creat a small J2EE application in NWDS..

I dont know wats wrong but I am not getting proper option to create .Jar file in J2EE explourere and when I create this file ... It is not creating with all the classes it should..

when i click it to open it gives me an error that invalid jar file...

Plzzzzzzzz guide me asap... and if possible proper document also..

Thanks in advance,

Yashvi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

from the context menu of the web module in j2ee explorer you can select <b>Build Web archive.</b>

from the context menu of the ejb module in j2ee explorer you can select <b>Build EJB archive.</b>

from the context menu of the EAR project , which references the EJB / Web modules in j2ee explorer you can select <b>Build Application archive</b>.this will inturn invoke build on the referenced modules.

what is the way you are trying to build it?

Former Member
0 Kudos

Hello Amol,

I have tried that option only and it is creating .jar file also but when i click on that jar file it gives me invalid jar file and dont open the same...

pl guide...

thanks,

yashvi

Former Member
0 Kudos

why do you want to open the jar file?

opening a jar file on double click needs a lot of settings and then only can run executable jar files.

if you want to deploy the J2ee application ear that you created then in the J2EE explorer , right click on the EAR and select <b>Deploy to J2EE engine</b>

.

If you want to check the contents of the EAR / JAR / WAR file you could do so by navigating to the folder on file system where it is created , and either open it with WinZip or on the command prompt using jar command viz <b>jar -tvf xyz.jar</b> will output the contents of the jar on the console.