Linux-Bug with ?

1999-07-15 Thread Oktay Akbal


If anyone got my earlier messages to this topic
please excuse. But I never got the mails back and
they did not show up in the archive so I assume
something went wrong.

Hello !

I think there is a Bug in the implementation of the conditional
(ternary) operator in the latest jdk1.2 for linux.

Given the following code:

class test{
public static void main(String[] args) {
int x=6;
double d=7.7;
if (x>d) System.out.println("true");
else System.out.println("false");
System.out.println( (x>d)?99.9:9);
}
} 

the correct output is:

false
9.0

as tested with jdk1.2.2 for win32; jdk1.1.7 for linux

jdk1.2-v2 (glibc2.0.7) gives me:

false
99.9

(tested on SuSe-Linux 6.1 )

Could someone please confirm this ?


Oktay Akbal.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: J2SEE 1.3 for Linux!

2000-06-06 Thread Oktay Akbal


> What kind of segmentation fault?
> I could not find no information what glibc version is required
> on the Sun web pages? 

They say 2.1 or higher the rpm states 2.1.2.

What do you mean: Which kind of segmentation fault ?
strace: --- SIGSEGV (Segmentation fault) ---

I would like to know if it works on rh6.2.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: J2SEE 1.3 for Linux!

2000-06-06 Thread Oktay Akbal

> > 
> > What do you mean: Which kind of segmentation fault ?
> > strace: --- SIGSEGV (Segmentation fault) ---
> > 
> > I would like to know if it works on rh6.2.
> 
> I guess one of us will have to sock it and see. 
> Try both IBM's and Sun. In my dreams I can see Blackdowns 1.3
> floating in the skies ...

The one from IBM works great with Suse.
Never had Problems with Blackdown.

Whats the problem at Sun ?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: J2SEE 1.3 for Linux!

2000-06-06 Thread Oktay Akbal



On Tue, 6 Jun 2000, Rob Saul wrote:

> Oktay Akbal wrote:
> > 
> > I would like to know if it works on rh6.2.
> 
> So far it works just fine on my rh6.2 system.

That means the segfault on SuSe6.4 is not just the glibc-Version.
I claim to remember that both are using 2.1.3.

Strange.

Oktay Akbal


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: J2SEE 1.3 for Linux!

2000-06-07 Thread Oktay Akbal


I played again with Suse6.4:

java -classic 

works (of course then without hotspot).

It seems that the VM dies after reading (or trying to read) .hotspotrc.

Creating an empty File makes no difference.
But I can't imagine what this file should contain.
Anything (for example blabla) entered there produces:

java
Unrecognized VM option 'blabla'
Could not create the Java virtual machine.
 

Oktay


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




J2SEE 1.3 works on Suse6.4

2000-06-07 Thread Oktay Akbal


After much testing with the new J2See1.3 from Sun under Suse6.4
I finally made it working. The surprising Workaround is not
to use the Suse-Kernel but a plain Kernel (maybe from 6.4 but without
Suse-modifications). Maybe someone likes to make a diff between the
Suse-Version and the plain Version. I assume there is some mmap-Problem.
(strace on redhat reads something about old_mmap).

Oktay Akbal


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Window Manager ?

2000-06-09 Thread Oktay Akbal


Hello Everyone.

Are there known Problems with running of of the latest jdks (blackdown,
sun, ibm) under X11 but without a Windowmanager ? The application uses
only one "Window".

Thanks.

Oktay Akbal 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: hotspot server jit?

2000-06-14 Thread Oktay Akbal



On Wed, 14 Jun 2000, noisebrain wrote:

> 
> The download page for the sun 1.3 beta states that 'both client
> and server' jits are bundled.   I don't see the server - 

java -server starts the HotSpot-Server-Version
 
java -server -version:

java version "1.3.0beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
Java HotSpot(TM) Server VM (build 1.3.0beta-b04, mixed mode)
     ^



Oktay Akbal


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: J2SEE 1.3 on SuSE Linux 6.4 with SuSE Kernel

2000-06-14 Thread Oktay Akbal

> 
> I install the Sun JDK1.3Beta on my SuSE 6.4 Linux box. I ran the JVM and it sure
> enough core dumped. I tried this trick last night and ``bash'' would n't allow me
> to write to that particular file ( /proc/sys/vm/heap-stack-gap )

What exactly did you try ?

su 
echo 0 >/proc/sys/vm/heap-stack-gap 



Oktay


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: J2SEE 1.3 on SuSE Linux 6.4 with SuSE Kernel

2000-06-15 Thread Oktay Akbal


> What is this supposed to do?

It seems that you just missed the Solution to the Problem of running
the new Sun J2SDK 1.3 on Suse 6.4. 
   ??
The command below seems to disable some VM-Kernel-Patch that Suse
introduced, that was not in plain 2.2.14. But what it exactly does
reveals only to Kernel-Hackers. 




> "CH" == Carsten Hoeger <[EMAIL PROTECTED]> writes:
> 
>   CH> echo "echo 0 > /proc/sys/vm/heap-stack-gap" >>
>   CH> /sbin/init.d/boot.local
> 
>   CH> So this will switch off this feature during each boot process.
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




j2sdk-1.3.0-Sparc Problems!

2001-06-27 Thread Oktay Akbal


Hello Everyone,

are there any Processor-Requirements with this Version of j2sdk for
Sparc-Linux? We made a short try on an old Ultra 2 and did not get
any Standard-Demo to work. Mostly we got ArrayIndexOutBounds-Exceptions.

Is this a Problem with the old Ultra2 or does our Distribution
(Suse7.1 on Sparc with Kernel 2.2.x glibc2.2) not meet the requirements ?

Thanks for help

Oktay Akbal


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: "java.lang.InternalError: Unsupported 16-bit depth"

2001-08-08 Thread Oktay Akbal

As a simple guess I would say that the RH-Box uses 16-Bit Color which
the JRE on the hp and aix not supports. Try setting the Linux-Box to
more Colors.

Oktay


On Thu, 9 Aug 2001, Amol Kulkarni wrote:

> Hi  All,
> I am running a gui tool devloped using swings with jdk1.2 on hp and aix
> platform. I am doing this on another m/c and viewing the
> gui on a RHL7.1 box. But when the gui is invoked it gives the following
> error
>
> "java.lang.InternalError: Unsupported 16-bit depth"
> at sun.awt.motif.X11Graphics.X11LockViewResources(Native Method)
> at sun.awt.motif.X11Graphics.getImageType(X11Graphics.java:885)
> at
> sun.java2d.loops.LockableRaster.(LockableRaster.java:102)
> at
> 
>sun.java2d.loops.RasterOutputManager$RenderImageCachedState.getDstLR(RasterOutputManager.java:395)
>
> at
> sun.java2d.loops.RasterOutputManager.renderImage(RasterOutputManager.java:506)
>
> at
> sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:2024)
> at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1616)
> at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:465)
> at
> sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:684)
>
> at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:645)
> at ZeroGw.paint([DashoPro-V1.2-120198])
> at java.awt.Container.paint(Container.java:778)
> at ZeroGu.paint([DashoPro-V1.2-120198])
> at ZeroGu.update([DashoPro-V1.2-120198])
> at
> sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:279)
> at java.awt.Component.dispatchEventImpl(Component.java:2456)
> at java.awt.Container.dispatchEventImpl(Container.java:1040)
> at java.awt.Component.dispatchEvent(Component.java:2316)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:366)
> at
> java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
>
> Any ideas as to why this happens. When i open it through an solaris box
> it opens nicely
>
> Thanks and regards
> Amol
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: GUI Application

2001-09-11 Thread Oktay Akbal

On Tue, 11 Sep 2001, BERNARDES,JOAN (Non-HP-Brazil,ex1) wrote:

>   Hi,
>   I want to run a java GUI application in a bootable CD with Linux, I
> have already in this bootable CD:
>   I want to know want kind of Window Manager I have to install (Gnome,
> KDE, TWM, other) and want kind of applicative I have to install to start the
> java app.
>   I'm using the jre 1.3.1 from Sun, there is another jvm that I can
> use to improve (performance, size, etc.) my CD?

We have one Application running on TouchScreen with Xfree86 without
WindowManager. The application was started directly with xinit.
In your case you could use JRE1.3 from IBM which is smaller than JRE from
sun. But this might be, because sun has additional classes in their JRE.

-- 
Oktay Akbal


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: GUI Application

2001-09-13 Thread Oktay Akbal

On Wed, 12 Sep 2001, BERNARDES,JOAN (Non-HP-Brazil,ex1) wrote:

>   How can I start my applicative using xinit?

xinit java Application


>   The JVM from IBM have any constraints with using in a commercial
> product?

I don't think so (for JRE). But please ask a lawyer.

Oktay


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Unusual "java.lang.NoClassDefFoundError"

2001-11-12 Thread Oktay Akbal

To bad you did not send the error message, but I assume you wrote
"java HelloWorld.class" instead of "java HelloWorld".


Oktay


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: ssh question

2001-09-28 Thread Oktay Akbal

Please read the GPL-Faq at http://www.gnu.org/licenses/gpl-faq.html.

Oktay

On Fri, 28 Sep 2001, Thomas Nichols wrote:

> At 23:53 27/09/2001 -0700, Avi Cherry wrote:
> >>Yes, the site says so. But this is interesting! Once GPLed code cannot be
> >>made non-GPL later on even by the original author.
> >
> >Depends how you look at it.  They can't prevent earlier versions from
> >being re-distributed according to the GPL, but they can re-licence the
> >code any way they want for newer versions, preventing IT from being
> >redistributed.  The original author still owns the code, and can licence
> >it any way they want, as many different ways as they want.
>
> Hmmm, I'm not sure it _does_ depend how you look at it. From the GPL
> included (file "COPYING") with the MindTerm v1.0 code, section 2:
>
> b) You must cause any work that you distribute or publish, that in
>  whole or in part contains or is derived from the Program or any
>  part thereof, to be licensed as a whole at no charge to all third
>  parties under the terms of this License.
>
> So unless MindTerm v2 is a complete rewrite (which it may be), they'll be
> in breach of the GPL. Which is probably not a good idea.
>
>  - Thomas.
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




weird xinerama problem

2002-03-15 Thread Oktay Akbal

Hello!

We made an Application that runs with sun j2sdk1.4.0 on Suse7.3.
The PCs have Matrox G400 Dual-Head-Cards.
Our Application mainly consists of several sub-Applications that are
lauchned in seperate Threads. Everything works normally. Moving the
Applications to the second screen and back is no Problem. One of the
Applications launches a JDialog that stays on screen to display some
changing Information. As soon this Dialog is moved to a Screen different
from the one the Application is running on the whole Application slows down
(nearly freezing Screen refresh does take minutes). the java-Process is
consuming all cpu-time. When the dialog is moved back to the same screen the
application is running on it takes 5-10 seconds and all returns to normal.

Someone has an idea ?
I will try to make an easy Test-Programm at monday.
Could this problem be related to XFree86 (4.1.0) and not to Java?
Unfortunatly all Xinerama-PCs I have access to are identically configured.

Thanks

Oktay



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: weird xinerama problem

2002-03-18 Thread Oktay Akbal

Hello again.

I just tested our application with the beta2 of j2sdk-1.4.0 and the
application ran fast. With the final version or beta3 still 
slow. The release notes gave not hint so far.

I am excited to test the Blackdown-Version when it comes out.

Oktay


> Hello!
> 
> We made an Application that runs with sun j2sdk1.4.0 on Suse7.3.
> The PCs have Matrox G400 Dual-Head-Cards.
> Our Application mainly consists of several sub-Applications that are
> lauchned in seperate Threads. Everything works normally. Moving the
> Applications to the second screen and back is no Problem. One of the
> Applications launches a JDialog that stays on screen to display some
> changing Information. As soon this Dialog is moved to a Screen different
> from the one the Application is running on the whole Application slows
> down
> (nearly freezing Screen refresh does take minutes). the java-Process is
> consuming all cpu-time. When the dialog is moved back to the same screen
> the
> application is running on it takes 5-10 seconds and all returns to
> normal.
> 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: weird xinerama problem

2002-03-18 Thread Oktay Akbal


Hello again.

I just tested our application with the beta2 of j2sdk-1.4.0 and the
application ran fast. With the final version or beta3 still 
slow. The release notes gave not hint so far.

I am excited to test the Blackdown-Version when it comes out.

Oktay


> Hello!
> 
> We made an Application that runs with sun j2sdk1.4.0 on Suse7.3.
> The PCs have Matrox G400 Dual-Head-Cards.
> Our Application mainly consists of several sub-Applications that are
> lauchned in seperate Threads. Everything works normally. Moving the
> Applications to the second screen and back is no Problem. One of the
> Applications launches a JDialog that stays on screen to display some
> changing Information. As soon this Dialog is moved to a Screen different
> from the one the Application is running on the whole Application slows
> down
> (nearly freezing Screen refresh does take minutes). the java-Process is
> consuming all cpu-time. When the dialog is moved back to the same screen
> the
> application is running on it takes 5-10 seconds and all returns to
> normal.
> 



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: weird xinerama problem

2002-03-18 Thread Oktay Akbal

For completeness:

-Dsun.java2d.pmoffscreen=false 

can be used as a workaround.

Oktay Akbal

On Mon, 18 Mar 2002, Oktay Akbal wrote:

> 
> Hello again.
> 
> I just tested our application with the beta2 of j2sdk-1.4.0 and the
> application ran fast. With the final version or beta3 still 
> slow. The release notes gave not hint so far.
> 
> I am excited to test the Blackdown-Version when it comes out.
> 
> Oktay
> 
> 
> > Hello!
> > 
> > We made an Application that runs with sun j2sdk1.4.0 on Suse7.3.
> > The PCs have Matrox G400 Dual-Head-Cards.
> > Our Application mainly consists of several sub-Applications that are
> > lauchned in seperate Threads. Everything works normally. Moving the
> > Applications to the second screen and back is no Problem. One of the
> > Applications launches a JDialog that stays on screen to display some
> > changing Information. As soon this Dialog is moved to a Screen different
> > from the one the Application is running on the whole Application slows
> > down
> > (nearly freezing Screen refresh does take minutes). the java-Process is
> > consuming all cpu-time. When the dialog is moved back to the same screen
> > the
> > application is running on it takes 5-10 seconds and all returns to
> > normal.
> > 
> 
> 
> 



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: modal dialogs in 1.4

2002-04-07 Thread Oktay Akbal

There seem to be several issues with modal JDialogs in 1.4-final.
Some (?) of them do not show up in -beta2.
We have a Problem with blank Dialogs and hanging Application that
does not only show up under KDE.

Is it possible for you to test beta2 ?

Oktay


On Fri, 5 Apr 2002, Glenn Holmer wrote:

> We're evaluating JDK1.4 here, and find a serious issue with KDE.
> Many of our Java apps start by showing a setup dialog, and the way
> they usually do it is by listening on windowActivated for the main
> JFrame.  That handler checks a first-time-thru flag, and if true,
> shows the modal dialog.
> 
> What we find is that both the JFrame and the dialog come up blank
> (no text, no visible components) and the window's close widget
> doesn't respond.  This is only in KDE; I tried windowmaker,
> enlightenment, fvwm, olvwm, and gnome, and they all worked OK.
> 
> Does anybody know why this might be and if there's a workaround?
> KDE has always been our standard, so we'd rather not switch.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]