๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3644

Using AFC: Here's How

#3644
From: Chris Dickerson
Date: Sat, 01 Nov 1997 00:00
59 lines
2582 bytes
    If you wish to seperate AFC to work with "OTHER" VM's.. such
    as Sun's, or Borland's, you need 3 sections from Microsoft's
    CLASSES.ZIP that comes with SDK 2.0 release.

        com.ms.ui
        com.ms.fx
        com.ms.util.cab

    You can package these up with JAR.EXE that ships with JBuilder, or Sun's
JDK 1.1.x. Use this
    command while in the directory that contains the 'com' directory
    (i.e. C:\TEMP if that's where you unzipped everything..)

        JAR CVF AFC.JAR COM

    This will create an archive AFC.JAR.. with COM as the directory to
    process.. and which will automatically be parsed (every subdirectory
under
    it).

    Then, simply use the JAR in your CLASSPATH

            set
CLASSPATH=C:\JDK1.1.4\LIB\AFC.JAR;C:\JDK1.1.4\LIB\CLASSES.ZIP

    Your errors may have come from using ms/awt classes. Microsoft has
    butchered Java code at will.

Regards,
Chris Dickerson         | web http://www.tsc.com/~chrisd/
Technology Service Corp | JBuilder http://www.borland.com/jbuilder/
chrisd@tsc.com          | paper
http://www.borland.com/jbuilder/papers/visualjpp/

Piaw Na wrote in message <345A5372.E8E8D5A3@mpath.com>...
>I gather some of you have been playing with AFC. How do you go about
>doing this? I've unzipped the .zip file from the winnt\java directory.
>I've repacked some of it into a jar file, specifically com\ms\util,
>com\ms\fx, com\ms\ui, com\ms\awt, but when I run one of the samples that
>I compiled, I still get the error message from the appletviewer:
>
>appletviewer *.htm
>java.lang.NoClassDefFoundError: com/ms/com/IUnknown
> at com.ms.fx.FxToolkit.ยข(Unknown Source)
> at com.ms.fx.FxToolkit.ยฃ(Unknown Source)
> at com.ms.fx.FxToolkit.getSystemInterface(Unknown Source)
> at
> at
> at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
> at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
> at sun.applet.AppletPanel.run(AppletPanel.java:237)
> at java.lang.Thread.run(Thread.java:474)
>
>IUnknown is a COM interface, and I'm pretty sure is then Win32
>independent. I thought AFC was supposed to be 100% Pure Java?
>
>Piaw
>
Technical Details
Message-ID: <63h06f$o5b6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,UTF8
X-Google-Thread: 1089d0,843cd8e8ab817249,start
X-Google-Attributes: gid1089d0,public
From: "Chris Dickerson" <chrisd@bloomington.in.us>
Subject: Using AFC: Here's How
Date: 1997/11/01
Message-ID: <63h06f$o5b6@forums.borland.com>
X-Deja-AN: 286537132
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: None
Newsgroups: borland.public.jbuilder.java.api