开发者

Where can I bring com.ms.* packages to build

开发者 https://www.devze.com 2022-12-14 16:55 出处:网络
I\'m trying to bu开发者_运维问答ild mS-java compatible applet and I have references to classes in com.ms.*.

I'm trying to bu开发者_运维问答ild mS-java compatible applet and I have references to classes in com.ms.*. But I can't find the required libraries.


They're part of the old Microsoft Java SDK, which is no longer available.

I think the only way to get your hands on the com.ms.* packages is by getting your hands on an old Microsoft J++ disc set. They don't sell those anymore, of course, but you can find some on ebay.

I would strongly recommend not using the J++ libraries, including com.ms.*. They're not supported, deprecated, and you won't find documentation online for them anymore. Also, there might be a questionable legality of using or selling software built with J++, given Microsoft's legal agreement with Sun to retire J++.


I found a solution, which I am going to add here for posterity. After much searching, I found this: http://www.jguru.com/faq/view.jsp?EID=286826. In short, the solution was to go look in the Windows registry to see what classpath Microsoft Java VM uses by default. It turned out that the prize was hidden in c:\WINNT\Java\Classes\classes.zip (which you obviously include in the classpath like any other Jar). When I added that zip file to my project classpath, all my com.ms.* dependencies were resolved! Note that I already had c:\WINNT\Java\Classes in my classpath.

(@Judah Sometimes you have to work with legacy code and you have little choice but to use ancient libraries...)

0

精彩评论

暂无评论...
验证码 换一张
取 消