This topic covers new features and other enhancements that come with the SDK for Java, version 4.0.
Note The build numbers of the Microsoft VM and jvc for this SDK release can be found in Build.txt, located in the SDK's Relnotes folder.
Microsoft VM Enhancements
New Development Tools and Utilities
New Classes, Interfaces, and Methods
New Samples
New Documentation
For information on Microsoft VM issues that have been fixed, see Microsoft VM Updates. Information on fixes to the Microsoft VM after the SDK for Java 4.0 release will be posted to http://www.microsoft.com/java/download.htm .
The current release of the Microsoft VM continues its performance leadership and includes:
Be sure to have the CLASSPATH environment variable set correctly. Include the Bin folder for x86 architectures and the Binalpha folder for Compaq DIGITAL Alpha architectures. For more information on this and other tools, see the Tools Reference topic.
There are several new samples that demonstrate this and other aspects of Java/COM integration. See the New Samples section.
For more documentation on the Microsoft VM, see Microsoft Virtual Machine.
Tools and utilities are located in the Bin folder (for x86 architectures) and the Binalpha folder (for Compaq DIGITAL Alpha architectures). Be sure to have the CLASSPATH environment variable set correctly.
The Microsoft Compiler for Java (jvc) supports JDK 1.1 (with the exception of RMI, which is freely available from our ftp site ).
In this version of jvc, the /x option that disables Microsoft extensions is the default setting. For more information about jvc command-line options and error messages, see Jvc.
Note For users of Microsoft® Visual J++®, the Samples contained within the Microsoft SDK for Java support newer features supported by the Microsoft Compiler for Java (Jvc.exe).
To use these new language features with Microsoft® Visual J++® and the Microsoft SDK for Java Samples, you must replace three files in Visual J++ with their respective SDK versions:
Uninstaller.exe removes the Microsoft virtual machine from the computer.
IntegrationClasses.exe installs additional com.ms packages for integration purposes. IntegrationClasses2000.exe is for use on computers running Microsoft® Windows® 2000. It installs packages such as com.ms.iis.asp, which is required for running the ASP Java Component Framework Samples. It also installs com.ms.ie, which contains 47 class files that are hooks for Java into Microsoft® Internet Explorer.
This section organizes the additions according to the version of the Microsoft VM to which they apply.
Microsoft VM versions 2436 through 2925
Microsoft VM versions 2925 through 3167
Microsoft VM versions 3167 through 3234
unescapeChars
requiresQuotes
escapeString
escapeChars
unescapeString
com.ms.ui.IUIComponent com.ms.ui.AwtUIChoice.add(java.lang.String)
com.ms.fx.FxGraphics.drawFocusRect(int,int,int,int)
com.ms.fx.IFxSystemInterface.callRootOnEventThread(com.ms.ui.UIRoot)
com.ms.fx.FxComponentImage.getImage(int, int, int,
java.awt.Color, java.awt.Color)
toScriptObject
Variant(Object value, boolean unwrapScriptObjects)
unknownToPtr
ptrRelease
ptrToUnknown
makeProxyRef
executeOnContext
stringToHGlobalAnsi
copyUni
propagateStructFields
stringToCoTaskMemAnsi
stringToHGlobalAnsi
EnumFontFamExProc
NEWTEXTMETRIC
NEWTEXTMETRICEX
REBARBANDINFO_IE4
win
Win32Lib
windynamic
Note By design, individual members of the com.ms.win32 package are not documented.
PrepareThreadForJavaEx
execute_java_constructor_method
execute_java_constructor_methodV
do_execute_java_methodV
javaStringLengthAsCString
Class_GetConstantPoolCount
Class_CopyConstantPoolItem
ClassObjectToClassClass
ClassClassToClassObject
Thread_IsInterrupted
AddPathClassSource
AddModuleResourceClassSource
GetCurrentJavaTimeMillis
isUndoAllowed
allowUndo
IBindCtx
IClassFactory
IConnectionPoint
IConnectionPointContainer
IEnumConnectionPoints
IEnumConnections
IEnumMoniker
IEnumSTATSTG
IEnumString
IEnumUnknown
ILockBytes
IMarshal
IMoniker
IParseDisplayName
IPersist
IPersistFile
IPersistStorage
IPeristStream
IPersistStreamInit
IROTData
IRunningObjectTable
ISequentialStream
IStorage
BIND_OPTS
CONNECTDATA
COAUTHINFO
COAUTHIDENTITY
COSERVERINFO
MULTI_QI
Ole32
oleacc
getTimeLong()
FILETIME(int, int)
FILETIME(long)
com.ms.win32.winb
com.ms.win32.winc
com.ms.win32.winl
com.ms.win32.winm
com.ms.win32.winr
com.ms.win32.wins
Note By design, individual members of the com.ms.win32 package are not documented.
FindClassFromClass
ClassArrayAlloc2
GetNativeMethodsClass
GetNativeMethodsMethodInfo
CoSetProxyBlanket( )
CoQueryProxyBlanket( )
Note By design, individual members of the com.ms.win32 package are not documented.
The following samples are new and are located in subdirectories of %SDKDIR%\Samples:
Location: Samples\com\jexegen\stub
Location: Samples\com\custommarshal\vardate
Location: Samples\com\COMClassObject
Location: Samples\com\iid_is_size_is
Location: Samples\jdirect\mediaplayer
Location: Samples\profiler\heapmon
ASP Java Component Framework Samples
Location: Samples\ASP
For more information on samples, see the Samples Overview.
For a list of revisions made to the documentation since the last SDK release, see Documentation Updates.
Part | Location | Description |
SDKdocs | %SDKDIR%\Docs\Sdkdocs.chm www.microsoft.com/java/sdk/40/Start.htm |
Microsoft SDK for Java |
Integration | %SDKDIR%\Docs\Integration.chm | White papers and Java package reference information for integrating Java with Microsoft technologies |
Javadocs | %SDKDIR%\Docs\Javadocs.chm | Java 1.1 Core API |
Samples | %SDKDIR%\Samples\Start.htm | Samples included in the SDK for Java |