NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Changes in java code not reflecting in .jar file

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
pink123



Joined: 04 Feb 2011
Posts: 15

PostPosted: Fri Feb 18, 2011 6:03 pm    Post subject: Changes in java code not reflecting in .jar file Reply with quote

Hi,

I have a web application in netbeans.When I build my project,a .war file is generated at a location and the .war file contains .jar file.
All the .class files are inside the .jar file and not under web/inf/classes
when I extract the .jar file from the .war file the modified date is not changed and the .class is not modified.

Please help me to solve this issue.I am stuck up.

Thanks
Back to top
Tony
Posted via mailing list.





PostPosted: Fri Feb 18, 2011 8:35 pm    Post subject: Re: Changes in java code not reflecting in .jar file Reply with quote

Why are you trying to extract these files?

The jar is packaged ready to deploy. There should be no need to extract
them.

If you really, really need to look at the .class files, then you just look
under the build directory for the project (look on the files tab).

I think you might be trying to say that the build fails to modify the files
and no changes come through when you deploy the project. Have you tried to
Clean & Build?

Does the output window show any errors during the build?
A compile error will normally stop the build and NOT rebuild the WAR file.
Also, if you have been in debug mode and the server is currently running
(even if you have cancelled the debug session but not shut the server down),
the fact that the server has the files open will sometimes, under Windows,
cause the build process to fail.

Tony

-----Original Message-----
From: pink123 [mailto:address-removed]
Sent: 18 February 2011 18:04
To: address-removed
Subject: [nbj2ee] Changes in java code not reflecting in .jar file

Hi,

I have a web application in netbeans.When I build my project,a .war file is
generated at a location and the .war file contains .jar file.
All the .class files are inside the .jar file and not under web/inf/classes
when I extract the .jar file from the .war file the modified date is not
changed and the .class is not modified.

Please help me to solve this issue.I am stuck up.

Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo