JDK-4510701 : java fails to launch in some non-English locales (b82)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: solaris_9,1.4.0
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_2.6,solaris_8,solaris_9,windows_2000 generic,solaris_2.6,solaris_8,solaris_9,windows_2000
  • CPU: generic,x86,sparc
  • Submitted: 2001-10-04
  • Updated: 2001-10-05
  • Resolved: 2001-10-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta3Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
javac doesn't work in some locales, including ja, ko, zh_TW, etc.  The error is:

% uname
SunOS
% env LANG=ja /usr/local/java/jdk1.4/solsparc/bin/javac -verison
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
% env LANG=ko /usr/local/java/jdk1.4/solsparc/bin/javac -verison
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

% uname
Linux
% env LANG=ja /usr/local/java/jdk1.4/linux-i386/bin/javac -version
javac: invalid flag: -version
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -O                        Optimize; may hinder debugging or enlarge class file
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options

% env LANG=ja_JP.eucJP /usr/local/java/jdk1.4/linux-i386/bin/javac -version
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main

It doesn't work on Windows 2000 with setting ja locale.

See Comments for more information.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: merlin-beta3 INTEGRATED IN: merlin-beta3
14-06-2004

EVALUATION Due to an erroneous fix for 4429040. -- ###@###.### 2001/10/4
10-09-0170