Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[class] is public, should be declared in a file named [class.java]

807603Dec 6 2007 — edited Dec 6 2007
Hi there,
I'm using an java-agent in LotusNotes 7.0.2 to communicate with a WebService. This agent contains a AXIS (1.2.1)-generated JAR-file (based upon the webservices' WSDL-file) which holds the WebService-stubs, -ports etc.. I just rebuilt the JAR using the latest WSDL and imported it into the Notes-agent. Save the agent brings up following message

"d:\temp\notes\jar49773.jar(de/kqv/wekservice/VermittlerWacServiceLocator.java):10: class VermittlerWacServiceLocator is public, should be declared in a file named VermittlerWacServiceLocator.java"

(Line 10 is: "import de.kqv.www.wekservice.VermittlerWacServiceLocator;")

For I'm quite a java-noob, I googled and found that "Any public java class must be declared in a file with the same name, so the class [class] must be declared in the file [class].java".
Well, my class' name is "VermittlerWacServiceLocator" and the file's name within the JAR-file is "VermittlerWacServiceLocator.java".

Can anyone enlight me...?

Thanks in advance,
Buzzy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2008
Added on Dec 6 2007
4 comments
3,666 views