facebook

Class files are not being generated or updated!

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #260035 Reply

    Ghazalawahid
    Member

    Hi,

    I am working on a web project,problem is :

    – if i am making changes in java files,class files are not being updated.

    – if i am adding new java files in src folder ,the class files are not being generated in (WEB_INF/classes) folder.

    it was working fine in the begining e.g class files were being generated and updated but now no updation or creation of class files.What could be the reason?

    #260039 Reply

    Ghazalawahid ,

    You should check if :

    – WEB_INF/classes is output folder for your project.
    – the action ‘Project-Build Automatically’ is selected
    – the application server has been started in debug mode.

    Regards,
    Snjeza

    #260047 Reply

    Ghazalawahid
    Member

    – Build automatically is checked.

    – Source output folder was “/WebRoot/WEB-INF/lib” I have changed it to /WebRoot/WEB-INF/classes

    – How can i start an application server in Debug mode ?

    #260048 Reply

    Ghazalawahid,

    – Windows-Preferences-MyEclipse-Application Servers-<your server>-Launch and check ‘Debug mode’

    or

    – right-click the Server node in the Servers view and choose ‘Debug server’.

    Snjeza

    #260127 Reply

    Ghazalawahid
    Member

    I started JBOSS in debug mode, as soon as it starts,its gives following error :

    Thread [main](Suspended(exception ClassNotFoundException))
    ClassLoader.findBootstrapClass(String) line : not available(native method)
    ……………..
    so on,

    When i start server in run mode it does not give any error.

    #260149 Reply

    Ghazalawahid ,

    What version of JBoss and JDK do you use?

    Snjeza

    #260266 Reply

    Ghazalawahid
    Member

    Hi,

    – I am using Jboss-3.2.5

    – and, j2sdk1.4.1

    #260284 Reply

    Ghazalawahid ,

    It is possible that you have a breakpoint problem.
    If you have set some breakpoints in your workspace, switch to debug perspective, remove all breakpoints and start JBoss in debug mode.

    PS
    My advice is to switch over to JDK >=1.4.2 because ‘hot code replace’ has been enhanced in the newer versions.

    Snjeza

    #260332 Reply

    Ghazalawahid
    Member

    Hi,

    Thanks for all your help. I have not set any breakpoints in my workspace,so what i did is that I cretaed a new web project and copy all my code ,it took time but it is working (class files are being generated) .I don’t know what was wrong.So if i have any problem in future,I might come back to the forum.

    Thanks again.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Class files are not being generated or updated!

You must be logged in to post in the forum log in