Tagged: package public error
- This topic has 5 replies, 2 voices, and was last updated 8 years, 3 months ago by support-swapna.
-
AuthorPosts
-
mike nastavParticipantHello:
I am trying to create a new web client using the built in JAX-WS. When I import the wsdl file I get an error about a package not being a valid package name. Then when I manually try and create the package it complains about the word “public”. Any idea why? Can I some how change the myEclipse settings to allow for the work public in a package? Or do I need to change something on my project? I can not change the wsdl its fixed in place. Thanks in advance for any help. Using myElcipse 10 and jdk 1.4 (older project).Attachments:
You must be logged in to view attached files.
support-swapnaModeratorMike,
Sorry that you are seeing this issue. Versions earlier than MyEclipse 2015 are no longer fully supported. We try and assist licensed users working with previous versions but no fixes will be made to those versions.
MyEclipse 10.x is quite an older release and is unstable when compared with the newer releases. I strongly recommend you update to MyEclipse 2016, our latest release based on Eclipse Mars and take advantage of the several fixes and enhancements made since the MyEclipse 10.x release.
You can download the latest MyEclipse 2016 installer from here : https://www.genuitec.com/products/myeclipse/download/
Install it to a different location alongside your existing MyEclipse 10.x installation and import your projects. The MyEclipse Migration wizard will take care of the projects migration process. The license you currently hold is valid for MyEclipse 2016 as well.
Let us know if you see any issues.
–Swapna
MyEclipse Support
mike nastavParticipantTried with 16, still same error. Invalid package name. ‘public’ is not a valid Java identifier. Can not create a package with the work public in it.
support-swapnaModeratorMike,
Thank you for updating to MyEclipse 2016.Package name cannot contain Java reserved key words.This is a Java constraint which cannot be relaxed.’public’ is a reserved key word and so it cannot be used in the package name.
Please refer to this link for the list of reserved words in Java : http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html
Please correct the package name and ensure no Java reserved key words are used.
Hope this helps.Let us know if you have any questions.
–Swapna
MyEclipse Support
mike nastavParticipantThis helps a ton. I suspected it was a reserved word but your confirmation is what I needed. Another group is trying to force a package name containing the word public in a wsdl. Thanks yo for your help.
support-swapnaModeratorMike,
Glad that we could help.
Let us know if you see any issues with MyEclipse.–Swapna
MyEclipse Support -
AuthorPosts