Jump to content
Excelsior Forums
Sign in to follow this  
qqxx2000

ProcessBuilder does not support Unicode as same as Java Runtime

Recommended Posts

We are trying a workaround proposed in the following Java bug:

(process) Runtime.exec() cannot invoke applications with unicode parameters (win)

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4947220

The workaround uses environment variables to pass unicode argument strings to a process. It works in Java runtime. But it failed after we compiled the workaround with JET. We used JDK 1.6.0_u24 and various professional versions of JET including the latest 7.6 MP2. We used all default settings for JET project.

I attached the source code of the test program that copies files to demonstrate the problem. When you run the program with Java Runtime directly, two "success" will be printed to the console. When you run the program with JET, you will get one "success" and one "fail".

One thing we noticed that JET failed even at Step 2, "Perform a test run", with the uncompiled jar. Is there some settings in JET we overlooked?

CopyFileTest.java

Share this post


Link to post
Share on other sites

Hi,

Indeed, Excelsior JET does not support passing of unicode environment to a new process.

However, it can be implemented in a hotfix to Excelsior JET 7.6.

Please contact our Support department via java at excelsior-usa.com e-mail.

Include details about your Excelsior JET version and edition.

-AlexM

Share this post


Link to post
Share on other sites

We have fixed the problem. Users of Excelsior JET 7.6 (prior MP3) that suffer from this problem can contact our support to get the hotfix under valid support contracts.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×