Hobione's Weblog

Living & Breathing in Web 2.0 Era

MyEclipse “Unknown tag warning for jsf tag libraries”

1. Unknown tag warning for jsf tag libraries.

– Using the -clean command line argument when starting up Eclipse can help a lot of strange problems disappear … more

eclipse.exe -clean
or, right click the MyEclipse shortcut, Property --> Shortcut
Start in: "C:\Users\Sohail\AppData\Local\Genuitec\MyEclipse 7.0\myeclipse.exe" -clean

– If above strategy does not work, create a brand new Web Project using MyEclipse IDE, add JSF capability then add Facelets capabality.
– Create a .xhtml page and add ui composition tag. This should solve it.

2. My Eclipse is too damn slow.
– Create project in local drive and do compile and run instead of running of network drive.
– You can go to Windows > Preferences > General > Capabilities > Advanced and disable the capabilities that you are not using. That would enhance the performance of the IDE.

3. How do I know what version of java MyEclipse IDE is using.
– MyEclipse –> Install Summary …
– MyEclipse –> Examples On-Demand … (pretty cool)

4. How to see warning and error details?
– Windows –>Show View –> Problems

5. No grammar constraints (DTD or XMl schema) detected for the document.
–  Window > Preferences > MyEclipse > Files and Editors > XML and select “Indicate when no grammar is specified” = Ignore.

6. java.lang.UnsupportedClassVersionError: Bad version number in .class file
– Downloaded Eclipse 7.1 and started getting above error even though I have successfully completed unit testing for all methods.  MyEclipse IDE 7.1 by default runs on java 1.5.  I needed to run my project on java 1.6.

*** Date:
Friday, April 3, 2009 7:56:14 PM CDT

** System properties:
OS version=5.1.0
Java version=1.5.0_11

I have changed the default JDK Compliance level to 1.6 by going as follows:
Windows –> Preferences –> Java –> Compiler
I have also added Maven JDK to 1.6, Windows –> Preferences –> MyEclipseEnterprise Workbench –> Maven4MyEclipse –> Maven.

But I have forgot this following step:
Right click on the project –> Properties –> Java Build Path then click Order and Export tab and click JRE System Library [jre-6] checkbox.
javabuildpathSuggestion: Close and start the IDE after make any configuration changes also help to clean cache data.  In order to run the project you need to add a server and JDK (not jre) home. Windows –> Preferences –> Servers –> Glassfish 2.x –> JDK



April 3, 2009 - Posted by | MyEclipse IDE

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: