JVM & CPU usage

1999-05-07 Thread Gabor Szentivanyi

Hi all,

I'm running a java app, and even if the app seems to be idle, it uses
quite a lot of CPU time. Is it because of the thread scheduler of the JVM?
Would it be different if I used native threads instead of green?


Regards,
Gabor

--   Gabor Szentivanyi, [EMAIL PROTECTED]--
--Multimedia Information Systems Design --
--  Information Technology and Systems, Delft University of Technology  --
-> http://www.linux.org --- May the source be with you! <-


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



Confirmation

1999-05-07 Thread F. Killedar


Hi ppl,
Just to confirm. Java JDK1.2.1 or anything lower than that does
not have the ability to display any Arabic fonts.
Yes or No.

I am aware that JDK1.2.2, the soon to be out release however does have the
ability.

Thanks Farhan


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



Re: java versus c++ or perl

1999-05-07 Thread Azazel



> Java also has the advantage that Perl (AFAIK--I'm not even a Perl newbie)
> lacks in that Java has JNI, which would allow you to "call down" to C++
> code if necessary.


Not true actually:  a lot of the big Perl modules have cores written in
C with stubs in Perl to allow one to call them easily.  The Perl interface
to PostgreSQL is the first example which comes to mind.  To make life even
more interesting, I imagine it's only a matter of time before it becomes
possible to run Java from Perl and vice versa (assuming it isn't already).

Ted's general point is correct tho: different langs suit different people
and different projects, although if you decided on COBOL or something you'd
obviously be quite mad. :)

Az.

+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0
  www:  http://www.azazel.net/
  mail: mailto:[EMAIL PROTECTED]
+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0+0


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



A bug(?) report

1999-05-07 Thread Topi Maenpaa

I have noticed some things that do not seem to work right in your current JDK1.2 
release for Linux. The reason why I consider these bugs is that the same things 
work on Sun's implementation.

1. Is there a problem with the ActionListeners? I have noticed that some events do 
not arrive to the listeners in the order the listeners were added. I mean that 
when I do button.addActionListener(listener1) followed by 
button.addActionListener(listener2), listener1 should receive action events first. 
If this is not the case, I am doing something very stupid...

2. ResourceBundle language = 
ResourceBundle.getBundle("language",Locale.getDefault()); does not work even 
though I have "language.properties", "language_en.properties" etc... A 
MissingResourceException is thrown. The same code works on Sun.

3. When I create a message dialog with 
JOptionPane.showMessageDialog(owner,message,title,type) it works fine and returns 
the right value. But when I do owner.dispose() after this, the awt event thread 
throws a NullPointerException. (Exception occured during event dispatch ...) I 
forgot to take the printout with me but I'll send it to you later.

-Topi-
 << http://ee.oulu.fi/~topiolli >>


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



Re: JDK 1.X on Rh 6

1999-05-07 Thread Piero Campanelli

Hello,

>JDK-1.1.7 test version(?) for glibc-2.1 is available in
>http://www.wisp.net/~kreilede/

thank you ... i am going to download it ...

>But native thread and swing does not work well. I think
>this is not related with jar file. Swing application stops
>responding when file chooser dialog is open an close.
>And there's more case that I have encountered when using

ok..ok this means that it is unstable and it isn't usableis it?
In other words i am really astonished about fact that under Redhat
6 i haven't any way to develop in Java: 

* Kaffe is beta and works only on 1.0 API
* jdk1.1.6 doesn't work
* jdk1.1.7 is a test version
* jdk1.2 doesn't work

problem is the same: libraries. Is there someone that has fix it ?


>native thread. But it's speed is very impressive. I even
>felt like my Windows NT 4.0 with IBM JDK( Celeron 333 )
>is slower than my Pentium 133 Linux Native JDK in some
>computation program.

this is strange. According to my experience, until some days ago
(with redhat 5.2 and jdk117-v2) java was very slow on my linux system
against implementation for Windows NT. (in the past jdk1.0 was faster on
linux than nt). Probalby in these days i make an error...and now i ask to
you: what is difference between green_thread and native? If you use native
is faster? and green is a special library?

Thank you
Piero



---
Piero Campanelli 
[EMAIL PROTECTED]


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



Re: Call To Action on Java Lobby

1999-05-07 Thread Michael Emmel

Hamdi Mohd Yusof wrote:

> Sorry, but I don't quite understand what is needed here. What is the action that
> JL members should take? If it's about voting on JL issues, that I do quite
> often. If it's more than that, then what is it actually?
>
> hamdi

I think the actual action depend on Sun.  The most basic would be to be able to
submit proposals
to Sun concerning the future of the Java language.

Personally I'd love to the the Java lobby responsible for Java  along  the same
lines as the Mozilla
organization with Sun employees initially responsible for java but the maintainence
slowly turned over to responsible groups.
Sun can still maintain its veto power over the java language. But there whole Java
Community process would migrate
under the control of the Java Lobby.

This is what I would personally like to see but I do know that the java lobby has
my best interests at heart.
And I would be very happy to see and organization of Java programmers in control of
Java as apposed to any Company.

If you see a different solution to secure java's future and WORA ( I tend to be  a
bit of a radical )  then join
the java lobby and make your voice heard as it decided exactly what its going to
do.

Mike


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



Re: A bug(?) report

1999-05-07 Thread Pavel Tolkachev



Topi Maenpaa wrote:
> 
> I have noticed some things that do not seem to work right in your current JDK1.2
> release for Linux. The reason why I consider these bugs is that the same things
> work on Sun's implementation.
> 
> 1. Is there a problem with the ActionListeners? I have noticed that some events do
> not arrive to the listeners in the order the listeners were added. I mean that
> when I do button.addActionListener(listener1) followed by
> button.addActionListener(listener2), listener1 should receive action events first.
> If this is not the case, I am doing something very stupid...
...

For this 1st issue, you assumption is not true. Specification does not
warrant the order in which listeners will obtain notifications.
Moreover, if AWTEventMulticaser is used to support event delivery (that
is probably the case for your button), the order will be reverse to the
listener adding order.

All the Best
Pavel


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



Unidentified subject!

1999-05-07 Thread Pallavi Gawande

Hello everybody,
I am working on Linux and in X Motif.Now I want to record some word and
then compare that word with the original word.
I come to know some functions like audiocompose,showaudio.
Recording facility is provided with audiocompose,but after reacording I
am not able to play that sound file.It says /dev/audio & resources are
busy.
Can you suggest some solution.
Waiting for kind help.
thankx,
pallavi.
_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



Re: A little help

1999-05-07 Thread Mario Jorge Nunes Filipe

Hi Again

I wanted to thanks everyone for your help!


-- 
Mario Filipe 
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf


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



isPopupTrigger

1999-05-07 Thread Greg O'Keefe

HI

Which mmouse button is  supposed to be the popup trigger in linux? I
have some code that worked under M$ win95, where right clicking bought
up a pop up menu, but I can't get the menu up under Linux unless I
remove the if(e.isPopupTrigger()) code. Or isn't it as simple as that?
I'm using rh5.2 with kde1.1, and Blackdown jdk1.2 pre v1, and none of
the mouse buttons seems to satisfy isPopupTrigger(). Is it a bug, or do
I need to put something in a config file somewhere or what?

Cheers

GregO


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



Re: java versus c++ or perl

1999-05-07 Thread Patrick Lamb

I'd like to add three things to Ted's comments.  With respect to speed, if
you want to get  running quickly, perl is probably faster to write and
debug than either Java or C++ (if you are equally fluent in all three
languages).  If you are writing something to be called through CGI, perl's
CGI.pm will speed things along even more.

Also, for text processing, such as parsing or form generation, perl can
match or exceed C++.  I don't know how it does it, but it does it.

Finally, if you are connecting to an external database, you might consider
an Apache/mod-perl combination.  With the mod-perl module, you can open a
connection into the database for each server and keep it open; I'm told
this can save half a second or more for each server connection.  I haven't
done this one myself, but I can vouch for the first two.

You might ask, what's a perl fanatic doing on a Java mailing list?  I use
perl for most of the server-side work, and Java on the browser side.

Pat

At 02:36 PM 5/6/99 -0700, Ted Neward <[EMAIL PROTECTED]> wrote:
>Oh, Lord, what, you WANT a flame war?
>
>Look, here's my bottom line: With Power Comes Complexity. Perl is simpler
>than Java, Java is simpler than C++. With that simplicity you lose a
>corresponding amount of power. But the end result is that it doesn't
>matter--you can accomplish just about any project in just about any
>language. C++ will be fastest, Java will come in second (due to the
>presence of JITs and the like), and Perl will be last.
>
...
>My personal preference is for C++ and Java, since (a) those are the two
>languages I know the best, and (b) I'm adept enough with either one that I
>can produce reusable code that can be used in a variety of situations. If I
>had to choose one vs. the other, I'd lean towards Java, simply because it's
>a nice compromise between a high-level language like Perl and an
>object-oriented language like C++--not too much power sacrificed to get
>some nice simplicity.
>
...
>At 02:08 PM 5/6/99 -0700, [EMAIL PROTECTED] wrote:
>>we are having a discussion here at work about the deployment of a web based
>>database,
>>
>>i think jdbc is the choice othere think perl or c++ is the way to go, any
>>thoughts/links etc?
>>
>>thanks


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



JDK 117_v2 for glibc 2.1 works

1999-05-07 Thread Stephan Greene


Thanks to the list for the explanation why glibc 2.1 breaks the older
JDKs. The newly posted 117_v2 for glibc 2.1 works and I can now test out
the Enhydra server app.

Steve


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



problem with libraries

1999-05-07 Thread Jean-Laurent SOLTNER

Hello,

please help me to resolve te following problem:

Regards

JL

-

Our platform:

Redhat-6.0 ( kernel 2.2.5-15 )
i686
jdk-1.1.7_v1a
glibc
soft installed in /usr/local/jdk117_v1a


Our program:
 
public class Hello {
public static void main(String[] args) {
System.out.printl("Hello " + args[0]);
}
}

result of javac Hello.java:

/usr/local/jdk117_v1a/bin/../bin/i686/green_threads/java: error in loading
shared libraries:
/usr/local/jdk117_v1a/bin/../lib/i686/green_threads/libjava.so:
undefined symbol: _dl_symbol_value

---
result of ldconfig -D:

/sbin/ldconfig: version 1999-02-21
/usr/i486-linux-libc5/lib:
libz.so.1 => libz.so.1.0.4
libvgagl.so.1 => libvgagl.so.1.2.13
libvga.so.1 => libvga.so.1.2.13
libtermcap.so.2 => libtermcap.so.2.0.8
libstdc++.so.27 => libstdc++.so.27.1.4
libpanel.so.3.0 => libpanel.so.1.9.9e
libncurses.so.3.0 => libncurses.so.1.9.9e
libmenu.so.3.0 => libmenu.so.1.9.9e
libm.so.5 => libm.so.5.0.6
libg++.so.27 => libg++.so.27.1.4
libform.so.3.0 => libform.so.1.9.9e
libdb.so.2 => libdb.so.2.0.0
libc.so.5 => libc.so.5.3.12
libXtst.so.6 => libXtst.so.6.1
libXt.so.6 => libXt.so.6.0
libXpm.so.4 => libXpm.so.4.9
libXp.so.6 => libXp.so.6.2
libXmu.so.6 => libXmu.so.6.0
libXi.so.6 => libXi.so.6.0
libXext.so.6 => libXext.so.6.3
libXaw3d.so.6 => libXaw3d.so.6.1
libXaw.so.6 => libXaw.so.6.1
libXIE.so.6 => libXIE.so.6.0
libX11.so.6 => libX11.so.6.1
libSM.so.6 => libSM.so.6.0
libPEX5.so.6 => libPEX5.so.6.0
libICE.so.6 => libICE.so.6.3
/usr/X11R6/lib:
libXpm.so.4 => libXpm.so.4.10
libXtst.so.6 => libXtst.so.6.1
libXt.so.6 => libXt.so.6.0
libXp.so.6 => libXp.so.6.2
libXmu.so.6 => libXmu.so.6.0
libXi.so.6 => libXi.so.6.0
libXext.so.6 => libXext.so.6.3
libXaw.so.6 => libXaw.so.6.1
libXIE.so.6 => libXIE.so.6.0
libX11.so.6 => libX11.so.6.1
libSM.so.6 => libSM.so.6.0
libPEX5.so.6 => libPEX5.so.6.0
libICE.so.6 => libICE.so.6.3
libXaw3d.so.6 => libXaw3d.so.6.1
libx11amp.so.0 => libx11amp.so.0.9.0
libMagick.so.4 => libMagick.so.4.0.22
/usr/local/jdk117_v1a/bin/i686/green_threads:
/usr/local/jdk117_v1a/lib/i686/green_threads:
libsysresource.so => libsysresource.so
libsysresource_g.so => libsysresource_g.so
libjpeg_sun.so => libjpeg_sun.so
libjpeg_sun_g.so => libjpeg_sun_g.so
libtawt.so => libtawt.so
libtawt_g.so => libtawt_g.so
libawt.so => libawt.so
libawt_g.so => libawt_g.so
libmmedia.so => libmmedia.so
libmmedia_g.so => libmmedia_g.so
libagent.so => libagent.so
libagent_g.so => libagent_g.so
libnet.so => libnet.so
libnet_g.so => libnet_g.so
libzip.so => libzip.so
libzip_g.so => libzip_g.so
libmath.so => libmath.so
libmath_g.so => libmath_g.so
libjava.so => libjava.so
libjava_g.so => libjava_g.so
/usr/lib:
libz.so.1 => libz.so.1.1.3
libtk8.0.so => libtk8.0.so
libtixsam4.1.8.0.so => libtixsam4.1.8.0.so
libtix4.1.8.0.so => libtix4.1.8.0.so
libtkx8.0.4.so => libtkx8.0.4.so
libtclx8.0.4.so => libtclx8.0.4.so
libtcl8.0.so => libtcl8.0.so
libvgagl.so.1 => libvgagl.so.1.3.1
libvga.so.1 => libvga.so.1.3.1
libslang.so.1 => libslang.so.1.2.2
libreadline.so.3 => libreadline.so.3.0
libhistory.so.3 => libhistory.so.3.0
libpq.so.2.0 => libpq.so.2.0
libpq++.so.2.0 => libpq++.so.2.0
libpgtcl.so.2.0 => libpgtcl.so.2.0
libecpg.so.2.6.2 => libecpg.so.2.6.2
libORBitutil.so.0 => libORBitutil.so.0.4.3
libORBitCosNaming.so.0 => libORBitCosNaming.so.0.4.3
libORBit.so.0 => libORBit.so.0.4.3
libIIOP.so.0 => libIIOP.so.0.4.3
libIDL-0.6.so.0 => libIDL-0.6.so.0.4.2
libnewt.so.0.40 => libnewt.so.0.40
libmikmod.so.1 => libmikmod.so.1.0.0
libxml.so.0 => libxml.so.0.0.0
libungif.so.4 => libungif.so.4.1.0
libungif.so.3 => libungif.so.3.1.0
libtiff.so.3 => libtiff.so.3.4
libstdc++.so.2.8 => libstdc++.so.2.8.0
libstdc++.so.2.7.2 => libstdc++.so.2.7.2.8
libstdc++-libc6.1-1.so.2 => libstdc++-2-libc6.1-1-2.9.0.so
libg++.so.2.7.2 => libg++.so.2.7.2.8
libpng.so.2 => libpng.so.2.1.0.3
libjpeg.so.62 => libjpeg.so.62.0.0
libgtop_sysdeps.so.1 => libgtop_sysd

Re: isPopupTrigger

1999-05-07 Thread Juergen Kreileder

> Greg O'Keefe writes:

Greg> HI

Greg> Which mmouse button is supposed to be the popup trigger in
Greg> linux? I have some code that worked under M$ win95, where
Greg> right clicking bought up a pop up menu, but I can't get the
Greg> menu up under Linux unless I remove the
Greg> if(e.isPopupTrigger()) code. Or isn't it as simple as that?
Greg> I'm using rh5.2 with kde1.1, and Blackdown jdk1.2 pre v1,
Greg> and none of the mouse buttons seems to satisfy
Greg> isPopupTrigger(). Is it a bug, or do I need to put something
Greg> in a config file somewhere or what?

On ms windows `right button released' is the popup trigger but on
Xwindows it's 'right button pressed'!  
You have to test for isPopupTrigger both in mousePressed and
mouseReleased.


Juergen


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



split string ...

1999-05-07 Thread Daniel Ignat


word1 word2 word3

how can i create 3 vectors for store one word
System.out.println("String " + vecCh1 + vecCh2 + vecCh3 );

FileInputStream file = new FileInputStream("test");
BufferedReader br = new BufferedReader(new InputStreamReader(file));

char ch = (char)br.read();
char vecCh1[] = new char[10];
int chRead1 = br.read(vecCh1, 1, 5);

char ch = (char)br.read();
char vectCh2[] = new char[10];
int chRead2 = br.read(vecCh2, 7, 5);

.
i'm not a java programmer .. it's a good direction's ?
for a static string i hope so .. but if string it's dynamic i need read
space, ... your's suggestions is ...


DANIEL
[EMAIL PROTECTED]


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



Re: JDK 1.X on Rh 6

1999-05-07 Thread papiraki


Hey,

this is all true. But, they are thinking of releasing a
jdk-1.1.7_v2 that runs with glibc-2.1. So look at this as a temporary
solution. Untill then, you can live without jar files.

Just find a box that can unjar them, and zip them. Use the .zip
files instead...


Papi




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



JDK117 problems

1999-05-07 Thread sgee


Does anyone know of any current problems relating to Redhat5.2 with kernel 2.2.6
and javac?
I get the typical "how-to" when I type #java 
I get a core dump when I type # javac geko.java
and this error when I type #javac_g
/usr/local/jdk117/bin/i686/green_threads/java_g: error in loading shared
libraries:
 /usr/local/jdk117/lib/i686/green_threads/libjava_g.so: undefined symbol:
_dl_symbol_value

I have never had problems with the JDK on linux before, so I don't really know
where to start.

Thanks

Steve Gee
Java Developer
Maxor National Pharmacies
Information Technologies

[EMAIL PROTECTED]
806.324.5540
www.maxor.com
806.324.5400

"...it's better to burn out, than to fade away..."



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



JavaPlugin 1.1.2

1999-05-07 Thread pridemor

Anyone else tried the JavaPlugin from http://www.wisp.net/~kreilede/ ?
I tried the version for glibc 2.0 on my RedHat 5.2 box (glibc 2.0.7) and
Netscape 4.51.  After installation, running netscape immediately resulted
in "Bus error".  :-(



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



... vector

1999-05-07 Thread Daniel Ignat


char ch = (char)in.read();
char vectCh1[] = new char[10];
int chRead_a = in.read(vectCh1, 1, 6);
pw.println("First vector " + ch + vectCh1);

if i read a string like < I read this ... >
vectCh1 store " read" first character not appear "I"
but it's store in (ch) ... why?

DANIEL
[EMAIL PROTECTED]


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



Re: JDK117 problems

1999-05-07 Thread Michael Sinz

On Fri, 7 May 1999 10:37:25 -0500, [EMAIL PROTECTED] wrote:

>
>Does anyone know of any current problems relating to Redhat5.2 with kernel 2.2.6
>and javac?
>I get the typical "how-to" when I type #java 
>I get a core dump when I type # javac geko.java
>and this error when I type #javac_g
>/usr/local/jdk117/bin/i686/green_threads/java_g: error in loading shared
>libraries:
> /usr/local/jdk117/lib/i686/green_threads/libjava_g.so: undefined symbol:
>_dl_symbol_value

You are running GLIBC 2.1 (dl_symbol_value is one of the things that we
happened to use in GLIBC 2.0 that is no longer available - a new release
should be showing up very soon now.)


Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] - http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz



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



politics - "Rival Java consortium founded"

1999-05-07 Thread Nelson Minar

There's an article on the latest move in Java standards politics:
  
http://technews.netscape.com/computing/technews/newsitem/0,290,36236,00.html?pt.netscape.fd.hl.ne

  A group of companies that don't want to play by Sun Microsystems'
  Java rules have formed an outside work group into an outfit called
  the J Consortium.

  The companies, including Hewlett-Packard, Microsoft, and NewMonics,
  have formalized an ongoing effort to set a standard for a component
  of Java called "real-time" extensions

My feeling is this split actually has some meaning. HP knows what
they're doing in the embedded market. Not clear what the Linux angle
on this is. Seems like we're not players at all.

Replies directed to me alone, since java-linux doesn't really need
lots of political discussion.

  [EMAIL PROTECTED]
.   .  . ..   .  . . http://www.media.mit.edu/~nelson/


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



Re: newb: running Java service?

1999-05-07 Thread zun


On Thu, 6 May 1999, John N. Alegre wrote:

> Sorry I got into this thread late, but look into what information you
> can get on J2EE (Java 2 Enterprise Edition).  This will be the eclipse
> of EJB for sure.  Can not say much more than that without breaking non
> disclosure. 

I'm not sure how J2EE is supposed to "eclipse" EJB.  All it seems to me is
a reference implementation of EJB, JTS, JNDI, servlets, etc. etc. in one
bundle (finally).

Working products based on these specs are already available, albeit
separately.

. . . Sean.



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



Re: politics - Rival Java consortium founded

1999-05-07 Thread Nathan Meyers

[EMAIL PROTECTED] wrote
> My feeling is this split actually has some meaning. HP knows what
> they're doing in the embedded market. Not clear what the Linux angle
> on this is. Seems like we're not players at all.
> 
> Replies directed to me alone, since java-linux doesn't really need
> lots of political discussion.

Actually, there is one interesting Linux connection. In the ZDNet article I read
about this this morning, Transvirtual (purveyor of Kaffe) was mentioned as a
player.

(This comment is non-political, under IRS guidelines 501.c.3 :-)

Nathan Meyers
[EMAIL PROTECTED]

-
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



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



Re: JDK117 problems

1999-05-07 Thread papiraki

Hello,

well, to be honest, there are no problems with linux-2.2.6 and
jdk. I've used 2.2.*|2.1.* since linux-2.1.128 and vever had any problems
related to java.

On the other hand, it seems that you are having a problem with
glibc. Are you using glibc-2.1 ? That would be the cause of your problems.
If so, downgrade to jdk-1.1.6_v5. It worked for me.


papi




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



Re: java versus c++ or perl

1999-05-07 Thread ruff

A very nice scripting language which integrates C++ and Java is TCL.

If you have a C++ or C application and want to add a scripting language
(to control/test/.. your C++ application), TCL is a perfect possibility.

If you want to connect your C++ application to Java (maybe to use Swing
as your
GUI toolkit for the C++ core),  you may use TCL (TclBlend 1.2.2).
(Using CORBA may be a good alternative as well, or JNI - but it is a lot
of coding).
But with TclBlend it is an easy and powerfull way to go.

See http://www.scriptics.com/software/java.html and thanks to Mo DeJong
for
his very good support.

Marcel



--
Marcel Ruff
[EMAIL PROTECTED]
http://www.lake.de/home/lake/swand/




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



Re: java versus c++ or perl

1999-05-07 Thread ruff

Sorry the link to TclBlend 1.2.2 is:
  http://www.scriptics.com/java/

and

 http://www-users.cs.umn.edu/~dejong/tcl/tcljava/

Marcel

--
Marcel Ruff
[EMAIL PROTECTED]
http://www.lake.de/home/lake/swand/




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



Java and Endianess

1999-05-07 Thread Bernd Kreimeier


The only statement I found is in the VMspecs, basically 
saying:

  Multibyte data items are always stored in big-endian 
  order, where the high bytes come first.

Does this apply to "int" in memory? Is the VM on Linux
using big endian and swaps when it interfaces native code?
Is a local int variable in a method stored as big endian?

Let's say I want to hand over 4 bytes as a single int,
to native code that requires a given order, e.g.
  OpenGL C4UB, MSB==Red
e.g. as an int[] array.

Is there a pure Java way to put together the 32bpp ints 
from the 4 bytes that works for Linux and Solaris?

Is there a pure Java way to determine the endianess of 
the hosting system hardware?

What I am looking for is essentially 
   java.lang.Integer.byteBitsToInt( byte[] ).



 b.



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



Re: java versus c++ or perl

1999-05-07 Thread zun

As has been pointed out, it really depends on the context of what you want
to do.  Choose the right tool for the job, and don't get stuck in the
"when all you have is a hammer everything looks like a nail" syndrome.

Here's my take on the various languages (having pretty much done work in
all of them):

C++: heavy duty, > 10k lines of code, best performance, large projects

Java: easier to develop than C++, my choice for projects that are more
  involved than a script and need to be maintained for a while
  (using JavaBeans/servlets/EJB to help reduce development time is
   good here)

Perl: best data processing capabilities, FASTER than Java and sometimes
  C++ (it's true and I can tell you why =)
  great for fill-in-the-gap programs, migration of data formats
  has a huge library of prebuilt code (see www.perl.com)
  extensible but not easily so
  easy for programmers already familiar with Unix sh, sed, awk
  maintenance becomes more nightmarish for larger programs
  hard to do good data structures and OO in

Python: almost on par with Perl, cleaner syntax, easier to learn
with JPython (Python running in Java) ideal for adding scripting
to Java apps, good OO
much better data structures than any of these other languages
www.python.org, www.jpython.org

Tcl: easiest to learn especially for non-programmers, slowest of all, and
 least powerful in its own right BUT
 most easily extensible by C code, embedded in C
 (I think there's a Java TCL interpreter also available)
 www.scriptics.com

At 02:08 PM 5/6/99 -0700, [EMAIL PROTECTED] wrote:
>we are having a discussion here at work about the deployment of a web
based
>database,
>
>i think jdbc is the choice othere think perl or c++ is the way to go, any
>thoughts/links etc?

IMHO:

Forget about C++.  Not needed, too complex.

Good choices here would be Java, Perl, or Python.  If the database is
going to be on the order of 10k clients, going Java with JDBC and servlets
is probably the way to go, with the proper development tools.  However
this technology is still maturing.

For something you need ASAP Perl can't be beat.  Small-sized (department
level) databases would be ok.  Most everything on the web is done with
Perl.

Python has a good web-publishing environment called Zope available.  It
has the advantage of being open-source AND backed by a commercial company.
Have not tried it personally but I've heard it's recommended.
www.zope.org

. . . Sean.





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



Re: Java and Endianess

1999-05-07 Thread Daniel W. Dulitz x108

Bernd Kreimeier writes:
> The only statement I found is in the VMspecs, basically 
> saying:
> 
>   Multibyte data items are always stored in big-endian 
>   order, where the high bytes come first.
> 
> Does this apply to "int" in memory? Is the VM on Linux
> using big endian and swaps when it interfaces native code?
> Is a local int variable in a method stored as big endian?

Not having seen the source, I can't give a specific answer.  There is
no way you can tell what the VM "really" uses.  From the Java side,
the VM is big-endian (per your quote from the spec above).  From the
JNI side, the VM has the endianness of the native hardware (per the
JNI spec).  There is no other interface to the VM, so I'm not sure why 
it would matter what the VM "really" uses.

> Let's say I want to hand over 4 bytes as a single int,
> to native code that requires a given order, e.g.
>   OpenGL C4UB, MSB==Red
> e.g. as an int[] array.
> 
> Is there a pure Java way to put together the 32bpp ints 
> from the 4 bytes that works for Linux and Solaris?

I am not sure what you mean here.  Do you have a native method that
wants an int[], and each element of the array contains four 8-bit
fields, with the MSB being red?  That's easy.  In Java, set the MSB of
your int to the red field.  Then the MSB of the int elements returned
by JNI will be the red value, on all platforms.  JNI performs endian
conversion, if necessary, automatically.  That's the major benefit of
JNI.

If you have a native method that wants a byte[], and it gloms together
four contiguous elements and treats them as an integer according to
the processor's hardware endianness, then your native interface is
irreparably screwed up, and you should fix the interface instead of
trying to program around it.

> Is there a pure Java way to determine the endianess of 
> the hosting system hardware?
> 
> What I am looking for is essentially 
>java.lang.Integer.byteBitsToInt( byte[] ).

No, there is no such thing.  Search the archives for the last batch of
postings on endianness, or email me privately and I'll resend some
earlier mails.

Best,
daniel dulitz

Valley Technologies, Inc.   Peak Performance Real-Time DSP
State College, PA


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



Re: JDK 1.X on Rh 6

1999-05-07 Thread Paolo Ciccone

> "PC" == Piero Campanelli <[EMAIL PROTECTED]> writes:

PC> ok..ok this means that it is unstable and it isn't
PC> usableis it?  In other words i am really astonished about
PC> fact that under Redhat 6 i haven't any way to develop in Java:

That shouldn't a surprise since RH 6.0 has been just released. The
decision to go with the new glibc was a RH one and the JDK porting
team has no control over it. BTW, the JDK is not the only thing that
is going to be broken, a lot of other applications will need
recompilation using glibc 2.1, this is going to be fixed in the next
few weeks/months.

PC> * Kaffe is beta and works only on 1.0 API * jdk1.1.6 doesn't
PC> work * jdk1.1.7 is a test version * jdk1.2 doesn't work

PC> problem is the same: libraries. Is there someone that has fix
PC> it ?

See above.

PC> this is strange. According to my experience, until some days
PC> ago (with redhat 5.2 and jdk117-v2) java was very slow on my
PC> linux system against implementation for Windows NT. (in the
PC> past jdk1.0 was faster on linux than nt). Probalby in these
PC> days i make an error...and now i ask to you: what is
PC> difference between green_thread and native? If you use native
PC> is faster? and green is a special library?

Native threads are implemented by the OS and use the OS scheduler,
gree threads are "cooperative" subprocesses completely handled by the
JVM.

--Paolo



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



Need help ?

1999-05-07 Thread ALLEON Guillaume

Hi,

As I am quite interested in runing Java2 applications on my Linux box with
glibc2.1,
I am quite ready to help you in your port if you believe I can help !!
Anyway thanks for your great work,

Guillaume




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



Re: why do we need X11 to run purely command line java stuff?

1999-05-07 Thread Chris Abbey

At 08:34 PM 5/6/99 -0500, John N. Alegre wrote:
>
>On 04-May-99 Michael Sinz wrote:
>> 
>> As it turns out, we are about to do a JDK 1.1.7 V2 release in order to work
>> with the new glibc 2.1 (plus a few other fixes) and I was wondering if
>> there is a problem with doing this change in the 1.1.x JDK.  (We also want
>> to do this in the 1.2 release but it is a bit further down the road)
>> 
>OH please, Oh please ...when when.  Then I can get back to work!!
>
>john

if you're in that big a hurry you can do it your self and have it tonight:
in the $java_home/bin/.java_wrapper script just add a few lines like:

if [ -z "$DISPLAY" ] ; then
NS_JAVA=TRUE
fi

I've had that in mine for a very long time :)  -=Chris

!NEW!-=> <*> cabbey at home dot net  http://members.home.net/cabbey/ <*>
"What can Microsoft do? They certainly can't program around us." - Linus

-BEGIN GEEK CODE BLOCK-   Version:3.12   http://www.geekcode.com
GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL UA++$ P++ L++ E- W++ N+ o? K? !P
w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
--END GEEK CODE BLOCK--


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



...

1999-05-07 Thread Riyad Kalla

Is there a way to make a java program self executable on
linux? I know on the window platform some programs do, or
atleast used to compile into native code for you if you
wanted. But I was just wondering if this was an option on a
linux box so incase I wanted to distribute the file, i could
distribute it as a binary as well as source (for people that
wouldn't know hwo to compile it, etc. etc.)

Thanks!

--
(:   Riyad Kalla :)
(:CS Major - U of A  :)
(: http://www.u.arizona.edu/~rsk :)




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



Re: ...

1999-05-07 Thread Paolo Ciccone

Well, look at javac, it's a so called "self-executable" and it's
basically Java. You can take a look at the code downloading the
Solaris JDK. It's basically a C program that parses the command-line,
starts the JVM and passes to it a given class to run.

--Paolo


> "RK" == Riyad Kalla <[EMAIL PROTECTED]> writes:

RK> Is there a way to make a java program self executable on
RK> linux? I know on the window platform some programs do, or
RK> atleast used to compile into native code for you if you
RK> wanted. But I was just wondering if this was an option on a
RK> linux box so incase I wanted to distribute the file, i could
RK> distribute it as a binary as well as source (for people that
RK> wouldn't know hwo to compile it, etc. etc.)

RK> Thanks!

RK> -- (: Riyad Kalla :) (: CS Major - U of A :) (:
RK> http://www.u.arizona.edu/~rsk :)




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



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



Re: Java binaries as self executable.

1999-05-07 Thread Jani Mikkonen

Linux kernel has support of "Misc executables" and Java executables. 
With both of these options you can execute class files straingt from
command line. Documents say that with this kernel option you can even
run html files containing applet tag only, thus making applets executable.

Ofcourse this way, you still need the JVM to reside somewhere in your
path. So what u need to do is, read the documentations about these two
options, compile the kernel, chmod a+x YourClassFile.class and then execute
./YourClassFile.class .. There, "semi"-selfexecuting binary.




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



Arabic

1999-05-07 Thread egomolka


>Hi ppl,
>Just to confirm. Java JDK1.2.1 or anything lower than that does
>not have the ability to display any Arabic fonts.
>Yes or No.
>Thanks Farhan
Just a couple of days ago, someone posted some example
code using Arabic. It was called ArabicExample.
I tried it out and it worked great under both
1.2 and 1.2.1. Admittedly, it was only a couple of characters.
Here it is, with my apologies to the author.
The important thing is to use Swing. Regular AWT won't work.

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

import javax.swing.*;

public class ArabicExample {
  public static void main(String[] args) {
JFrame f = new JFrame("ArabicExample v1.0");
f.addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent we) { System.exit(0); }
});
f.setSize(200, 200);
f.setLocation(200, 200);

JTextField field = new JTextField(10);
field.setFont(new Font("Lucida Sans Regular", Font.PLAIN, 12));
field.setText("\u062e\u0644\u0639");

f.getContentPane().setLayout(new FlowLayout());
f.getContentPane().add(field);

f.setVisible(true);
  }
}

Hope this helps.
-- 
Ed Gomolka ([EMAIL PROTECTED])


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



Re: java versus c++ or perl

1999-05-07 Thread Jonathan Mark Brooks

Python combines a lot of the features one might want from
TCL/TK and Perl with object orientation and a very
nice Java implementation (JPython).  Cross-platfore
like Perl and TCL/TK too, but probably more so
from Win32 perspective.

Choose your weapons.  Python and TCL/TK are both
larger than Perl, unless you have a hella lot
of Perl modules, which seems to happen somehow. :)

I'm learning Python myself for scripting, and for
other neat little applications.

On Fri, 7 May 1999 [EMAIL PROTECTED] wrote:

> A very nice scripting language which integrates C++ and Java is TCL.
> 
> If you have a C++ or C application and want to add a scripting language
> (to control/test/.. your C++ application), TCL is a perfect possibility.
> 
> If you want to connect your C++ application to Java (maybe to use Swing
> as your
> GUI toolkit for the C++ core),  you may use TCL (TclBlend 1.2.2).
> (Using CORBA may be a good alternative as well, or JNI - but it is a lot
> of coding).
> But with TclBlend it is an easy and powerfull way to go.
> 
> See http://www.scriptics.com/software/java.html and thanks to Mo DeJong
> for
> his very good support.
> 
> Marcel
> 
> 
> 
> --
> Marcel Ruff
> [EMAIL PROTECTED]
> http://www.lake.de/home/lake/swand/
> 
> 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


* J. Mark Brooks, Attorney at Law  *
* P.O. Box 39, Randleman, NC 27317 *
* [EMAIL PROTECTED]  *
* ICQ# 33436248*
* http://www.jmbrooks.net/law.html *



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



Re: ...

1999-05-07 Thread ALLEON Guillaume



Riyad Kalla wrote:

> Is there a way to make a java program self executable on
> linux? I know on the window platform some programs do, or
> atleast used to compile into native code for you if you
> wanted. But I was just wondering if this was an option on a
> linux box so incase I wanted to distribute the file, i could
> distribute it as a binary as well as source (for people that
> wouldn't know hwo to compile it, etc. etc.)
>
> Thanks!
>

You can have a look to http://egcs.cygnus.com, they announce that they have
released
gcj which is supposed to create executable from .java or .class files. I haven't
et tried it
so I don't know which JVM it is compatible with !!

Yours

Guillaume

>
> --
> (:   Riyad Kalla :)
> (:CS Major - U of A  :)
> (: http://www.u.arizona.edu/~rsk :)
>
> --
> 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]