This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/14145] New: libgcj, Re: Pinskia


Hi,

problem is that there aren't all classes needed
by my program in libgcj-3.3.1.jar.

I got this error:

$ HelloWindows
Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.awt.g
tk.GtkToolkit not found in [file:.\, core:/]
*** Got java.lang.NullPointerException while trying to print stack trace.

So I checked the jar contents and effectively there aren't
all classes that "make" (of entire gcc-3.3.1) compiles...
(for example there isn't gnu.awt.gtk.GtkToolkit)

So I'm thinking there are some development reasons
that explain this fact that I ignore.

This is my test program: (HelloWindows.java)

import java.awt.*;
import java.awt.event.*;

public class HelloWindows extends Frame {
 public static void main(String args[]){
  HelloWindows app = new HelloWindows();
 }
 public HelloWindows() {
  super("Hello Windows!");
  setSize(200,200);
  addWindowListener(new HelloWindows.WindowEventHandler());
  show();
 }
 public void paint(Graphics g) {
  g.drawString("Hello Windows!",50,90);
 }
 class WindowEventHandler extends WindowAdapter {
  public void windowClosing(WindowEvent e){
   System.exit(0);
  }
 }
}

I'll check for updates, maybe, like you told me,
downloading new version (3.4) will solve the problem.

Later,

Davide

-- 
           Summary: libgcj, Re: Pinskia
           Product: gcc
           Version: 3.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: scaccopardo at tiscali dot it
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14145


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]