[3192] in java-interest

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

Re: win95 alpha3 Frame instantiation error

daemon@ATHENA.MIT.EDU (Thomas Ball)
Thu Nov 2 20:33:56 1995

Date: Thu, 2 Nov 1995 14:35:55 -0800
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: garya@village.org
Cc: java-interest@java.Eng.Sun.COM

>  Using alpha3 on win95,

The beta's out, and is the first release that officially supports Win95.

>  If I try to instantiate a Frame as follows:
>  
>  	wserver = new WServer();
>  	wserver.start();
>  	main_win = new Frame( wserver, true, false, null, 200, 200, null );
>  
>  I get the following message:
>  
>  Exception in thread "main" java.lang.NullPointerException
>   at awt.Frame.<init>(F:\ws\liveoak.porting\src\share\awt\awt\Frame.java:72)
>   at MyApp.MyApp.main(C:\GARYA\JAVA\Test\MyApp\MyApp.java:22)
>  
>  If I try the following:
>  
>  	wserver = new WServer();
>  	main_win = new Frame( wserver, true, false, null, 200, 200, null );
>  
>  I get:
>  
>  Exception in thread "main" java.lang.UnsatisfiedLinkException frameCreate
>   at awt.Frame.<init>(F:\ws\liveoak.porting\src\share\awt\awt\Frame.java:72)
>   at MyApp.MyApp.main(C:\GARYA\JAVA\Test\MyApp\MyApp.java:21)
>  
>  It appears to be trying to grab something from the sun source site used
>  to port this.  

In the alpha release, the full path of a class's source file was saved.
In beta, it will just say "Frame.java:72".

>  What's going on?  What am I doing wrong?  It has found the
>  classes ok, since new WServer gets instantiated ok.

frameCreate is a native library -- my guess is that the awt.dll couldn't
be dynamically loaded.  Check that it is in your PATH.

>  Finally, what is 
>  	../alpha3/hotjava/lib/javai.lib
>  	and what uses it?

That's the java interpreter -- all java executables use it.

Tom Ball
Java Products Group
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

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