Community
Participate
Working Groups
OS: SLES 9 Beta 5 Language: Japanese (ja_JP.UTF-8 locale) Build level: M9 JDK version: IBM JDK 1.4.2 Beta cxia32dev-20040524 Steps to recreate problem: 1-ceate a Swing appl and save it 2-select it and Run from the context menu. Error: 1 Java Application menu isn't shown. Only Run... is shown. Expected Result: Menu 1 Java Application should be shown at the Run menu.
Created attachment 11317 [details] swing appl. test case in zip
The Java model is throwing an JavaModelException with an error code of "ELEMENT_DOES_NOT_EXIST" for the compilation unit. Moving to JCORE for comment.
*** Bug 64716 has been marked as a duplicate of this bug. ***
It worked for me and I could run the swing app attached. Here are my steps: 1) Create a Java project 2) Change its encoding to UTF-8. 3) Import the attached swing app 4) Run it. It works!
Did you get your file from CVS? If yes, then did you set your file as binary on CVS or as ASCII file? If you encoding is not ASCII, then you should set all new files as binary from a CVS stand point. Otherwise you might have some wrong conversion made by CVS when you check out your project.
Created attachment 11343 [details] screen shot Here is the screen shot encoded by UTF-8 and MS932. Java application menu is missing on UTF-8 encoded file. Yes, the appl run successfully on both encodings. I got the file from cvs ascii mode.
Try to get the file from CVS as a binary file. You should not retrieve your file from CVS as ASCII file if the encoding is not ASCII. Could you please try to get it as binary and confirm it is working fine? Thanks.
I got the same result with binary.
I could not reproduce. I tried your attached test case and it works fine. Could you please: - clarify your steps to reproduce - set up a CVS server we can access to reproduce this issue? Thanks.
I found the problem that UTF-8 file name and its class name were not same while these names in MS932 test case were same. I'm sorry about that, please close.
closing