For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 9 replies, 3 voices, and was last updated 19 years, 6 months ago by
Scott Anderson.
-
AuthorPosts
-
julzmagooMemberI know this error has bounced around the forums a bit, but I can’t seem to find a solution that works for me.
I am using Eclipse 3.2, MyEclipse 5.0, and Java 1.4.2. I cannot use Java 5.0 at this point. I am pointing to 1.4 in the Installed JREs, set the compiler compliance to 1.4, and have Tomcat 5.5 using 1.4.
Everything works just fine until I go to run an ant build. That’s when I get the error:
BUILD FAILED
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)Is there something I’m missing?
TIA,
Jules
February 9, 2007 at 11:21 pm #265933
GregMemberGo to Project > Properties > MyEclipse > XDoclet > Build > Java Language Support and set it to java 1.4.2. This will rebuild your xdoclet config and the next time you run it, it should not have a problem launching.
February 9, 2007 at 11:46 pm #265934
julzmagooMemberHi Greg,
Thanks for responding. Java Language Support is already set to 1.4.2. I am still getting the same error. Any other thoughts?
February 10, 2007 at 12:48 pm #265940
GregMemberHave you tried changing the option to java5?
February 12, 2007 at 11:36 am #265977
julzmagooMemberNeither option works 😕
February 12, 2007 at 2:56 pm #266001
Scott AndersonParticipantJules,
It’s likely that the default JRE in your system is set to a Java 1.5 instance. You can set it to 1.4.2 at Window > Preferences > Java > Installed JREs. Compiling with Java 1.5 and running with 1.4 is the only thing that will cause what you’re seeing, so that is definately what is hapening.
February 13, 2007 at 11:40 am #266055
julzmagooMemberScott,
Installed JRE’s is set to 1.4.2. I don’t even have 1.5 on my computer anymore, but now that you mention it, I did have it on my computer when I was doing the bulk of the project’s development. So, it makes sense that it was compiled with java 5. I’ve tried to rebuild the project, but I’m still having no luck. I can’t get the ant build to work. Now I know I’m just doing something stupid, but I’m still stuck.
February 13, 2007 at 1:43 pm #266063
Scott AndersonParticipantInstead of an Ant build, why not let MyEclipse just build the project normally then use the class files it generates in whatever Ant process you’re trying to run.
February 13, 2007 at 2:24 pm #266067
julzmagooMemberWell, I rebuilt the project again, and this time it worked. A step in the right direction. Now I just need to figure out why I can’t get the .war file to start in the Tomcat Manager… but I suppose that’s for another forum.
Thank you very much for your help. You guys are a lot nicer than some others I’ve run into on other forums 🙂
Thanks again!
February 14, 2007 at 10:22 am #266113
Scott AndersonParticipantNow I just need to figure out why I can’t get the .war file to start in the Tomcat Manager… but I suppose that’s for another forum.
Take a look at our Working with Web Projects quickstart. You don’t have to even use the Tomcat manager for our deployer to get your project started in Tomcat. Super easy.
Thank you very much for your help. You guys are a lot nicer than some others I’ve run into on other forums 🙂
We aim to please. 😉
-
AuthorPosts
