[1191] in java-interest

home help back first fref pref prev next nref lref last post

Digest #130 responses

daemon@ATHENA.MIT.EDU (Jonathan Payne)
Fri Aug 25 16:34:37 1995

Date: Fri, 25 Aug 1995 09:53:19 -0700
From: jpayne@starwave.com (Jonathan Payne)
To: java-interest@java.Eng.Sun.COM

Hope these answers help.

------------------------------

    From: sbk@netcom.com
    Date: Thu, 24 Aug 1995 15:52:25 -0700 (PDT)
    Subject: What is this error?

    I don't understand this error, what am I doing wrong? This is the alpha
    3 version.

    - --
    % uname -a
    SunOS mizar 5.4 generic sun4m sparc
    % cat a.java
    import awt.*;
    import java.lang.*;

    public class a extends Frame
    {
      public a(WServer ws)
	{
	  System.out.println("Starting");
	  super(ws, true, null, 100, 100, Color.lightGray);
	}
    }

    % javac a.java
    a.java:6: No constructor matching Frame() found in class awt.Frame.
      public a(WServer ws)
	     ^
    1 error

You must call the superclass constructor as the first thing in a
method. Since you didn't do that, the compiler used the default
constructor with no arguments, which of course doesn't exist in Frame.

------------------------------

    From: randoid@spacetime.com (Randal Walser)
    Date: Mon, 21 Aug 1995 18:44:15 -0700
    Subject: invoking javah and javap

    In the "Implementing Native Methods" example, I'm unable to apply either
    javah or javap to the class files I generate with javac.  When I try
    to execute

	javap demo.File

    for example, javap reports it can't find a class called demo.File.
    I've confired that this isn't a CLASSPATH problem, and I've tried 
    every permutation of options and class names and I can think of. 
    Interestingly, javah and javap work fine on classes in hotjava/classes/...

You should say:

	javap <classname>

e.g.,
	javap java.lang.String

    Also, while I'm at this: is it really possible to execute native methods
    using the NT alpha2 release?  I seem to recall someone mentioning that
    a critical .dll is missing from the release.  

Yes, this works.

------------------------------

From: "John D. Mitchell" <johnm@emf2-003.emf.net>
Date: Thu, 24 Aug 1995 22:47:08 -0700
Subject: Re: what is wrong with an answer that has C++ sucks in it?

    Sorry, I keep hoping that the Java team folks will start particpating in
    this forum again... :-(

Instead they are working 15 hours a day getting the beta version ready
for release.

    It seems that the Sun Java team doesn't have the
    time/energy/bandwidth/etc. to deal with all of the issues that
    they need to address so they have prioritized their list of
    issues.  The standalone Java support seems to have been placed
    relatively low on their list. :-(

Yeah, but Sun is a big company, and they might have other parts of the
company, that has practice creating development enviroments, working on
some of the other aspects of the language.  The Java team is working
on the technology at its lowest level.  Some of the other 12000 Sun
employees are working on the rest.

------------------------------
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post