* JDE compile server and ant server problem
@ 2007-07-17 14:14 lu
2007-07-17 18:07 ` Suraj Acharya
0 siblings, 1 reply; 4+ messages in thread
From: lu @ 2007-07-17 14:14 UTC (permalink / raw)
To: jde, help-gnu-emacs
I use ntemacs22,jde to develop java application,when I compile the source
It seems the encoding is wrong,the compile server's
output looks like the following.
-classpath d:/home/lu/build -g d:/soft/emacs-22.1/bin/Test.java
d:/soft/emacs-22.1/bin/Test.java:3: <identifier> \202\302\252........
My Os is windows xp(japanese language)
what's the problem.
by the way,it is no problem on linux(utf8)
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: JDE compile server and ant server problem
2007-07-17 14:14 JDE compile server and ant server problem lu
@ 2007-07-17 18:07 ` Suraj Acharya
2007-07-17 23:40 ` lu
0 siblings, 1 reply; 4+ messages in thread
From: Suraj Acharya @ 2007-07-17 18:07 UTC (permalink / raw)
To: lu@luxdo.jp; +Cc: jde, help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
The default encoding on windows is not utf8. System.getProperty("
file.encoding") will tell you what it is, but if your source file is utf8
then you need to explicitly tell the compiler to use that encoding.
Try adding the arguments "-encoding" and "utf8" to
jde-compile-option-command-line-args.
Suraj
On 7/17/07, lu@luxdo.jp <lu@luxdo.jp> wrote:
>
> I use ntemacs22,jde to develop java application,when I compile the source
> It seems the encoding is wrong,the compile server's
> output looks like the following.
>
> -classpath d:/home/lu/build -g d:/soft/emacs-22.1/bin/Test.java
> d:/soft/emacs-22.1/bin/Test.java:3: <identifier> \202\302\252........
>
> My Os is windows xp(japanese language)
> what's the problem.
>
> by the way,it is no problem on linux(utf8)
>
> Thanks.
>
>
[-- Attachment #2: Type: text/html, Size: 1304 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: JDE compile server and ant server problem
2007-07-17 18:07 ` Suraj Acharya
@ 2007-07-17 23:40 ` lu
[not found] ` <871wf59mxm.fsf@adler.orangeandbronze.com>
0 siblings, 1 reply; 4+ messages in thread
From: lu @ 2007-07-17 23:40 UTC (permalink / raw)
To: sacharya, jde, help-gnu-emacs
Thanks for your reply.
I'm sorry but the part of wrong encoding is not from source,
The source is very simple and looks like
public class Test {
aa
}
the part of wrong encoding is from compiler's output.
How to solve this problem.
Thanks
Suraj Acharya writes:
> The default encoding on windows is not utf8.
> System.getProperty("file.encoding") will tell you what it is, but if
> your source file is utf8 then you need to explicitly tell the compiler
> to use that encoding.
>
> Try adding the arguments "-encoding" and "utf8" to
> jde-compile-option-command-line-args.
>
> Suraj
>
> On 7/17/07, * lu@luxdo.jp <mailto:lu@luxdo.jp>* <lu@luxdo.jp
> <mailto:lu@luxdo.jp>> wrote:
>
> I use ntemacs22,jde to develop java application,when I compile the
> source
> It seems the encoding is wrong,the compile server's
> output looks like the following.
>
> -classpath d:/home/lu/build -g d:/soft/emacs-22.1/bin/Test.java
> d:/soft/emacs-22.1/bin/Test.java:3: <identifier> \202\302\252........
>
> My Os is windows xp(japanese language)
> what's the problem.
>
> by the way,it is no problem on linux(utf8)
>
> Thanks.
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: JDE compile server and ant server problem
[not found] ` <871wf59mxm.fsf@adler.orangeandbronze.com>
@ 2007-07-19 23:39 ` lu
0 siblings, 0 replies; 4+ messages in thread
From: lu @ 2007-07-19 23:39 UTC (permalink / raw)
To: JM Ibanez, jde, help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]
JM Ibanez writes:
> "lu@luxdo.jp" <lu@luxdo.jp> writes:
>
>
>> Thanks for your reply.
>> I'm sorry but the part of wrong encoding is not from source,
>> The source is very simple and looks like
>> public class Test {
>> aa
>> }
>>
>> the part of wrong encoding is from compiler's output.
>> How to solve this problem.
>>
>
> What he means is that the compiler looks at the system's default
> encoding to determine what the source file encoding is; however, in
> Windows, the default encoding may not be UTF-8, and so would cause your
> source file to be interpreted in the wrong encoding (hence the
> error). If you try adding the suggested command line options, it may
> force the compiler to ignore the system encoding and treat the source as
> UTF-8. Please try the suggestion first.
>
> HTH
>
>
>
Thanks for your reply.
I tried,but it is same.please see the attachment.
javac compiler is ok,but the javac server is wrong encoding.
I think the problem is not the encoding of source,
the error message is from compiler server.(perhaps bean shell's problem?)
(Buy the way,it works well on linux.)
[-- Attachment #2: jde-compile-usejavac.GIF --]
[-- Type: image/gif, Size: 21348 bytes --]
[-- Attachment #3: jde-compile-usejavacserver.GIF --]
[-- Type: image/gif, Size: 22536 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-19 23:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17 14:14 JDE compile server and ant server problem lu
2007-07-17 18:07 ` Suraj Acharya
2007-07-17 23:40 ` lu
[not found] ` <871wf59mxm.fsf@adler.orangeandbronze.com>
2007-07-19 23:39 ` lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).