• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Accessing Microsoft classes from Sun jvm

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a program that uses the Microsoft foundation classes. Up to now it has been run using the MS jvm (ie with jview) but this appears to have a memory leak, and I am trying to run the program with the Sun jvm to see if it is better.
The Microsoft classes I need to use are in zip files in c:\winnt\java\packages. These files have weird names (eg S44gy28.zip), and to get the jvm to find them I put these names in a -classpath clause on the command line. I cannot put *.zip. I have to name each zip file separately.
I need to run this program on a few different PCs. These weird names are different on each PC I have looked at. I would prefer to have the same bat file running all the different instances of the program.
Is there a way to get the MS classes picked up without having to put the zip files individually in the classpath?
Catherine
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This would be one of the basic problems with Microsofts policy of "embrace and extend". It's purpose is to lock you into Microsoft products.
Sorry that I don't have a solution.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I extract the zip files into an directory and add the classpath.
I use KAWA 4.05 from www.tek-tools.com . I dont't know if this helps you but this way I work with the MS classes.
 
Catherine McManus
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for you replies. When running the program it turns out that the MS classes use windows native code anyway, so I cant easily use another VM.
My preferred option at this stage would be to rewrite the ms specific stuff using JDBC or something. Hopefully the PTBs (Powers That Be) will let me do that at some point
Catherine
reply
    Bookmark Topic Watch Topic
  • New Topic