Main Menu
Login
SSL SecureMode
Username:
Password:  
Lost Password?
Register now!
ChangeVision Members Map
Search
Forum Index   -   Topic Index
   Announcement on Astah products
     import java failed

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
dearjeny
Posted on: 2007/12/5 12:19
Just popping in
Joined: 2007/12/5
From:
Posts: 2
import java failed
Hi,

I got a message "Some Java files could not be imported. These files may contain compilation errors." when I attempted to import some java files. More detail follows here:
Failed to parse.ow: Lexical error at line 9, column 19. Encounted: "\ufffd" (65533), after : ""

It seems those files which cannot be imported are encoded in UTF-8.
I've tried that 'javac -encoding UTF-8' does not encounter compilation errors, and these java files works well in Eclipse.

JUDE/Community version: 5.1.1
JDK Verion: 1.4.2

Is there any solution to import a UTF-8 encoded java file?

Thanks a lot! :)
dearjeny
Posted on: 2007/12/5 16:35
Just popping in
Joined: 2007/12/5
From:
Posts: 2
Re: import java failed
Hi, it's me again.

I've got the solution from another forum:

Tool -> System Properties -> File -> Charset of imported java,
I set the value to 'UTF-8', then I imported the UTF-8 encoded java file successfully.
Joba
Posted on: 2007/12/10 9:16
Developer
Joined: 2006/6/6
From:
Posts: 969
Re: import java failed
Hi dearjeny,

Glad you figured it out.
Threaded | Newest First Previous Topic | Next Topic | Top