Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Change the Google App Engine's Javac Compiler Encoding
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jxva  
View profile  
 More options Apr 13, 6:05 am
From: Jxva <jxva....@gmail.com>
Date: Mon, 13 Apr 2009 03:05:46 -0700 (PDT)
Local: Mon, Apr 13 2009 6:05 am
Subject: Change the Google App Engine's Javac Compiler Encoding
    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
linux_china  
View profile  
 More options Apr 13, 9:45 am
From: linux_china <libing.c...@gmail.com>
Date: Mon, 13 Apr 2009 06:45:02 -0700 (PDT)
Local: Mon, Apr 13 2009 9:45 am
Subject: Re: Change the Google App Engine's Javac Compiler Encoding
Great! Now all is right!  yeah!!!

On Apr 13, 6:05 pm, Jxva <jxva....@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DogBitesMe  
View profile   Translate to Translated (View Original)
(1 user)  More options Apr 13, 12:16 pm
From: DogBitesMe <wind.oc...@gmail.com>
Date: Mon, 13 Apr 2009 09:16:07 -0700 (PDT)
Local: Mon, Apr 13 2009 12:16 pm
Subject: Re: Change the Google App Engine's Javac Compiler Encoding
That's great!

And I have an alternative way to fix this problem.

I wrote a simple tool to add the encoding argument to javac.exe.

Just rename javac.exe to javac1.exe, and rename the tool to javac.exe.

Here is the main part of the tool (wrote in C#):

       static int Main(string[] args)
        {
            string arg = "";

            var cmd = Environment.CommandLine;
            arg = cmd.Substring(cmd.IndexOf(args[0]));

            if (!arg.Contains(" -encoding"))
                arg += " -encoding UTF8";
            Console.WriteLine("argment:{0}", arg);

            Process p = new Process();
            p.StartInfo.FileName = "javac1.exe";
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.Arguments = arg;

            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.RedirectStandardError = true;
            p.StartInfo.CreateNoWindow = false;
            p.Start();

            while (true)
            {
                var msgStd = p.StandardOutput.ReadLine();
                if (msgStd != null)
                    Console.WriteLine(msgStd);
                var msgErr = p.StandardError.ReadLine();
                if (msgErr != null)
                    Console.WriteLine(msgErr);

                if (msgStd == null && msgErr == null)
                    break;
            }

            return p.ExitCode;
        }

On 4月13日, 下午6時05分, Jxva <jxva....@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deggoo  
View profile  
 More options Apr 16, 10:58 am
From: Deggoo <reene2...@gmail.com>
Date: Thu, 16 Apr 2009 07:58:18 -0700 (PDT)
Local: Thurs, Apr 16 2009 10:58 am
Subject: Re: Change the Google App Engine's Javac Compiler Encoding
    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gus  
View profile   Translate to Translated (View Original)
 More options Apr 28, 1:24 pm
From: Gus <dotnetdev.java...@gmail.com>
Date: Tue, 28 Apr 2009 10:24:10 -0700 (PDT)
Local: Tues, Apr 28 2009 1:24 pm
Subject: Re: Change the Google App Engine's Javac Compiler Encoding
Great! You just saved my little project from this horrible bug! \o/

On Apr 13, 1:16 pm, DogBitesMe <wind.oc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google