Compiling with KJC

2000-02-17 Thread Peter DeLaurentis




I am endeavoring to make some useful 
modifications to Kaffe - and the first step in this is getting Kaffe to build 
and successfully run Java applications. I am running on Windows 98, using 
CygWin32, and I have gotten Kaffe to successfully build.

Now, I am attempting to run Java apps using my 
built kaffe, and am running into some problems. When I test simple non AWT 
applications - they compile and run flawlessly. But when libraries such as 
java.io, or java.awt are included - the included java compiler fails with the 
error message:

assertion !INTS_DISABLED() failed: file 
exception.c, line 308
Tracing into the code - it would seem that 
interrupts are disabled in a place that they should be enabled. 
If anyone has seen this error and could give 
me some hint as to what I could do to remedy it, please let me 
know.

Thank you,
Peter DeLaurentis


IBM Java papers

2000-02-17 Thread Archie Cobbs


FYI-
A recent IBM systems journal was dedicated to Java..

  http://www.research.ibm.com/journal/sj39-1.html

There are a couple of interesting papers describing the IMB JIT
engine and the Jalepeno project which is a JVM written 99% in Java
that bootstraps and JITs itself.

-Archie

___
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com



Kaffe HPUX setup problem

2000-02-17 Thread Neumann, Matthew C


Hi, all!
I'm new to the Java world, just started a class this winter.  Apologies if
this is not the right list to be asking about this.

I've had some problems getting kaffe running on my HPUX box at work.
Console-based programs run fine, a la HelloWorld, but when I try something
in swing like (it's line 30 of my program, as1, BTW):

   courseName = JOptionPane.showInputDialog("Please enter Course Name");

it crashes hideously, with this output:

ewsh08:.m/kaffe bin/java -addclasspath $PWD as1

java.lang.IllegalMonitorStateException
at javax.swing.UIDefaults.get(UIDefaults.java:146)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:50)
at javax.swing.UIDefaults.getIcon(UIDefaults.java:234)
at javax.swing.UIManager.getIcon(UIManager.java:478)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIconForType(BasicOptionPaneUI.ja
va:474)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIcon(BasicOptionPaneUI.java:456)
at
javax.swing.plaf.basic.BasicOptionPaneUI.addIcon(BasicOptionPaneUI.java:437)
at
javax.swing.plaf.basic.BasicOptionPaneUI.createMessageArea(BasicOptionPaneUI
.java:274)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI
.java:127)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:95
)
at javax.swing.JComponent.setUI(JComponent.java:258)
at javax.swing.JOptionPane.setUI(JOptionPane.java:1296)
at javax.swing.JOptionPane.updateUI(JOptionPane.java:1318)
at javax.swing.JOptionPane.init(JOptionPane.java:1281)
at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:427)
at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:396)
at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:379)
at javax.swing.JOptionPane.showInputDialog(JOptionPane.java:367)
at as1.main(as1.java:30)
Dumping live threads:
`AWT-EventQueue-0' tid 4037d010, status SUSPENDED flags 
 blocked@40362910 (4037d010-|) 
`gc' tid 4015a010, status SUSPENDED flags 
 blocked@40130da0 (4015a010-|) 
`finaliser' tid 40151010, status SUSPENDED flags 
 blocked@40130d80 (40151010-|) 
Deadlock: all threads blocked on internal events
Abort(coredump)

I'm afraid I can't read the sun docs well enough to figure out what
UIDefaults.get is trying to do.  

Anyone out there have any advice?

--- Matt ---




Re: Compiling with KJC

2000-02-17 Thread Godmar Back


 
 assertion "!INTS_DISABLED()" failed: file "exception.c", line 308
 
 Tracing into the code - it would seem that interrupts are disabled in a =
 place that they should be enabled.  If anyone has seen this error and =
 could give me some hint as to what I could do to remedy it, please let =
 me know.
 

Peter, 

although I could tell you more if you showed me a stacktrace,
this error nsg most likely indicates a segfault within a section of
code where interrupts are disabled.
If the code segfaults there, it will try to throw a nullpointerexception
which will trigger this assertion failure.
No exceptions should ever be thrown from code that executes in a section
in which interrupts are disabled.  

- Godmar