- This topic has 6 replies, 2 voices, and was last updated 18 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
BrettS38ParticipantI 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 WorkbenchVersion: 4.1.1 GA
Build id: 20060309-4.1.1-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.2
Build id: M20060118-1600Eclipse Platform
Version: 3.1.2
Build id: M20060118-1600Eclipse RCP
Version: 3.1.2
Build id: M20060118-1600Eclipse Java Development Tools
Version: 3.1.2
Build id: M20060118-1600Eclipse Plug-in Development Environment
Version: 3.1.2
Build id: M20060118-1600Eclipse Project SDK
Version: 3.1.2
Build id: M20060118-1600Eclipse 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
Riyad KallaMemberCan you create a small test project that exhibits this issue?
BrettS38ParticipantThanks 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 ??
Riyad KallaMemberI’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.
Riyad KallaMemberBrett,
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.
BrettS38ParticipantRiyad – 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 ??
Riyad KallaMemberHrrm, 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.
-
AuthorPosts