facebook

‘bad class file’ when building a Web Project

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #256171 Reply

    BrettS38
    Participant

    I am having trouble building a Web Project. I receive an error on each JSP file that references a class file – ‘cannot access <file name>: bad class file: <file location>’

    I have deleted and re-created the project various times.
    And I have tried different solutions with regards to the PATH and CLASSPATH variables with no luck.

    Any suggestions would be appreciated – I can provide more info as needed.

    *** Date: Fri Aug 04 15:05:12 EDT 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.2_08

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060309-4.1.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Platform

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse RCP

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Java Development Tools

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Plug-in Development Environment

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Project SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Program Files\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    bf0_64
    -vm
    c:\j2sdk1.4.2_08\jre\bin\javaw.exe

    #256247 Reply

    Riyad Kalla
    Member

    Can you create a small test project that exhibits this issue?

    #256255 Reply

    BrettS38
    Participant

    Thanks for the reply.

    I do have a fairly small project in which I am having this problem. Are there any particular files that you need to see from the project ?? Any other information that you need ??

    #256325 Reply

    Riyad Kalla
    Member

    I’d like you to export this project (File > Export) and send it to me at support@genuitec.com ATTN Riyad. Include a link to this thread so I know why I’m receiving it, and I’ll have a look at it and reply.

    #256535 Reply

    Riyad Kalla
    Member

    Brett,
    There is nothing wrong with this project. I imported it, it built, and besides the 751 warnings (Empty block should be commented, Javadoc missing, and other little issues) there were no errors in the project at all.

    I would suggest you try starting with a clean project and slowly add files to it until it breaks or gives you this error. This error may also be indicative of a problem with your JDK install, although I haven’t seen that before.

    #256664 Reply

    BrettS38
    Participant

    Riyad – thanks for looking into this.

    I have started from scratch various times – and I get the errors when I add the .JSP files to the project. I am able to add all of the other files without any problems.
    Any chance this has to do with Environment Variables such as PATH, CLASSPATH, JAVA_HOME ??

    #256666 Reply

    Riyad Kalla
    Member

    Hrrm, did you modify your J2EE Library that ME ships at all? Go to Window > Prefs > MyEclipse > J2EE Project > Library Sets > J2EE 1.4, then click Restore Defaults. Then go to any project that has the problem, remove the 1.4 Library Set from the build path, hit OK to rebuild, you will get tons of errors. Then go back into properties and re-add it (it’s under Libraries > MyEclipse Libraries) and hit OK to rebuild, does it build fine now?

    If that fails, I’m going to declare shenanigans on your install and suggest you perform a brand new/clean install of Eclipse 3.2 SDK and MyEclipse 5.0.1 to brand new directories, with a brand new workspace to test with first.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: ‘bad class file’ when building a Web Project

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