Re: Non mofit AWT.
That's a question you should pose to Sun. Matthew Panetta wrote: > > Given that there are a few good windowing toolkit out now for linux (GTK, > QT, JX) could the JDK be proted to these instead of useing mofit? > > Regards Matt > -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: go back to gzip!
If you "only have access to a Win95 machine", why aren't you just getting the Win32 version of Java from Sun? Win95 and Linux are so completely *not* similar in any way... Volker Augustin wrote: > > Ok, there has been a long discussion about using bzip2 or not. Apart from personal >problems using > bzip2 (I have only access to a Win95 machine and bzip2 --help does display help, but >since it's > going to stderr you cannot read all of it and since I could not find documentation I >have no clue > how to use bzip2) I would recommend that you provide both a bzip2 and a gzip-version >of the > distribution. Isn't that a fabulous idea? Why didn't anyone else come up with it? >It's the obvious > thing to do, isn't it? It solves all problems - well maybe not all, since e.g. I've >been trying to > work effektively on Win95 for a long time now without result... :-) > Volker > -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: javac can not find com.sun.java.swing.JApplet class
com.sun.java.swing.* have been renamed to javax.swing.*.
Update your import declarations and you should be fine.
> Richard James wrote:
>
> I am new to java and the 1.2 JDK. I am running RedHat 5.2 and the
> Blackdown JDK1.2-v1pre-release. The install went fine. I have finally
> figured out the libstdc++ link and I can successfully compile command
> line applications.
>
> However, I am getting the following error on this simple applet. Any
> ideas on how to resolve this.
>
> [root@localhost java]# cat RootApplet.java
> import java.awt.*;
>
> public class RootApplet extends com.sun.java.swing.JApplet {
> int number;
>
> public void init() {
> number = 225;
> }
>
> public void paint(Graphics screen) {
> super.paint (screen);
> Graphics2D screen2D = (Graphics2D) screen;
> screen2D.drawString("The square root of " +
> number +
> " is " +
> Math.sqrt(number), 5, 50);
> }
> }
> [root@localhost java]# javac RootApplet.java
> RootApplet.java:3: Superclass com.sun.java.swing.JApplet of class
> RootApplet not found.
> public class RootApplet extends com.sun.java.swing.JApplet {
> ^
> 1 error
> [root@localhost java]#
>
> Thanks
> Richard James
>
>
--
Jeff Galyan
http://www.anamorphic.com
http://www.sun.com
jeffrey dot galyan at sun dot com
talisman at anamorphic dot com
Sun Certified Java(TM) Programmer
==
Linus Torvalds on Microsoft and software development:
"... if it's a hobby for me and a job for you, why are you doing such a
shoddy job of it?"
The views expressed herein do not necessarily reflect those of my
employer.
Sun Microsystems, Inc., has no connection to my involvement with the
Mozilla Organization.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Windows PLAF hack?
The reason the Windows L&F doesn't run on other platforms is because it is not known whether Sun can legally distribute that L&F on non-Windows platforms. The MacOS L&F doesn't work on non-Macintosh platforms for the same reason. Matthew McKeon wrote: > > I don't suppose anyone knows of / can recommend a hack > to get around the windows PLAF block in v1.2 of the Linux JDK? > Is such a thing possible? Is the block integral to the VM > or is it located somewhere in the runtime libs? > I'm just looking to hack it to the point where > I can get it up and running on my dev box, > since my target client platform is Windows anyway. > > Or is doing so illegal? :) > -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: javac-BUG ???
"Dipl.-Ing. Dr. Mustafa Radi" wrote: > since Sun does not see, that Linux is becoming a competitive > alternative to Microsoft's Windows > You clearly have not been paying attention to the news, have you? -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to make JDK1.2-pre-v1 as my default JVM
On Thu, 1 Apr 1999, Joe Lin wrote: > Hi, > > I have realized after many agonizing hours that some of my problem is really > due to Kaffe. I'm currently running RedHat 5.2 and I downloaded JDK preview > v1. I set the PATH variable to point to "/usr/jdk1.2/bin". However, this > does not prevent Kaffe VM to kick in if I simply type "java .." in the > command line. I have to type "/usr/jdk1.2/bin/java..", instead. I'm new > to Linux. Is there any way I can make the JDK 1.2 VM as the default? Thanks. > > Joe reset the PATH export PATH=/usr/jdk1.2/bin:$PATH > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > Advanced Technology Group, River Valley Technologies URL http://www.river-valley.com Personal: http://personal.vsnl.com/greenpastures -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: javac can not find com.sun.java.swing.JApplet class
On Wed, 31 Mar 1999, Richard James wrote:
> I am new to java and the 1.2 JDK. I am running RedHat 5.2 and the
> Blackdown JDK1.2-v1pre-release. The install went fine. I have finally
> figured out the libstdc++ link and I can successfully compile command
> line applications.
>
> However, I am getting the following error on this simple applet. Any
> ideas on how to resolve this.
>
> [root@localhost java]# cat RootApplet.java
> import java.awt.*;
>
> public class RootApplet extends com.sun.java.swing.JApplet {
change com.sun.java.swing.JApplet into javax.swing.JApplet
now your code will compile
> int number;
>
> public void init() {
> number = 225;
> }
>
> public void paint(Graphics screen) {
> super.paint (screen);
> Graphics2D screen2D = (Graphics2D) screen;
> screen2D.drawString("The square root of " +
> number +
> " is " +
> Math.sqrt(number), 5, 50);
> }
> }
> [root@localhost java]# javac RootApplet.java
> RootApplet.java:3: Superclass com.sun.java.swing.JApplet of class
> RootApplet not found.
> public class RootApplet extends com.sun.java.swing.JApplet {
> ^
> 1 error
> [root@localhost java]#
>
> Thanks
> Richard James
>
>
>
Advanced Technology Group, River Valley Technologies
URL http://www.river-valley.com
Personal: http://personal.vsnl.com/greenpastures
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Non mofit AWT.
> "Jeff" == Jeff Galyan <[EMAIL PROTECTED]> writes: Jeff> That's a question you should pose to Sun. Matthew Panetta Jeff> wrote: >> Given that there are a few good windowing toolkit out now for >> linux (GTK, QT, JX) could the JDK be proted to these instead of >> useing mofit? I did this, since I asked for a non-motif-based AWT some month ago. The answer by Sun was: It exists. It is called Swing. Ulli -- ETH Zentrum, IFW B43, CH-8092 Zürich Phone +41-1-63 27393 // FAX +41-1-63 21172 ~~ Order Cinderella (http://www.cinderella.de) now: http://www.amazon.com/exec/obidos/ASIN/3540147195/theinteractivege ~~ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Non mofit AWT.
Ulli Kortenkamp wrote: > > "Jeff" == Jeff Galyan <[EMAIL PROTECTED]> writes: > > Jeff> That's a question you should pose to Sun. Matthew Panetta > Jeff> wrote: > >> Given that there are a few good windowing toolkit out now for > >> linux (GTK, QT, JX) could the JDK be proted to these instead of > >> useing mofit? > > I did this, since I asked for a non-motif-based AWT some month > ago. The answer by Sun was: It exists. It is called Swing. And I have rewritten the AWT to run on top of Swing so I don't use Motif. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Non mofit AWT.
My understanding is that Netscape will be using GTK+ instead of Motif for Netscape 5.0 (which may explain why they are slow to get it out) so Sun may already be considering this (save those license fees). Someone should ask. Couldn't hurt. On Sat, 3 Apr 1999, Jeff Galyan wrote: > That's a question you should pose to Sun. > > > Matthew Panetta wrote: > > > > Given that there are a few good windowing toolkit out now for linux (GTK, > > QT, JX) could the JDK be proted to these instead of useing mofit? > > > > Regards Matt > > > > > -- > Jeff Galyan > http://www.anamorphic.com > http://www.sun.com > jeffrey dot galyan at sun dot com > talisman at anamorphic dot com > Sun Certified Java(TM) Programmer > == > Linus Torvalds on Microsoft and software development: > "... if it's a hobby for me and a job for you, why are you doing such a > shoddy job of it?" > > The views expressed herein do not necessarily reflect those of my > employer. > > Sun Microsystems, Inc., has no connection to my involvement with the > Mozilla Organization. > > > -- > 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: Non mofit AWT.
I suspect that they didn't get the point. What people are asking for is that the graphical elements of java be implemented with GTK+ rather than Motif or some other platform specific GUI kit (GTK exists for win32 now as well...). Even Swing must at some level call on GUI elements that are coded not with Java but with a lower-level graphics library. Besides, Swing is still, well, SLOW. Especially on Linux. I have a Cel400 w/128meg, so it shouldn't be, but it is. On Sat, 3 Apr 1999, Ulli Kortenkamp wrote: > I did this, since I asked for a non-motif-based AWT some month > ago. The answer by Sun was: It exists. It is called Swing. > > Ulli > > -- > ETH Zentrum, IFW B43, CH-8092 Zürich > Phone +41-1-63 27393 // FAX +41-1-63 21172 > ~~ > Order Cinderella (http://www.cinderella.de) now: > http://www.amazon.com/exec/obidos/ASIN/3540147195/theinteractivege > ~~ > > > -- > 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: Non mofit AWT.
Jonathan Mark Brooks wrote: > > I suspect that they didn't get the point. What people are asking for is > that the graphical elements of java be implemented with GTK+ rather than > Motif or some other platform specific GUI kit (GTK exists for win32 now as > well...). Even Swing must at some level call on GUI elements that are > coded not with Java but with a lower-level graphics library. What is it exactly that people are asking for? Yet another implementation of the AWT (YAAWT) or a good GUI? It should certainly be possible to do YAAWT with . It will look different from all the other YAAWTs, and add yet another layer of complexity to the already difficult problem of writing Java apps that look good on all platforms. Swing is a good GUI -- in fact, an excellent GUI -- with a good set of widgets and a collection of L&Fs that look good everywhere. Unfortunately, it suffers from some serious performance problems for a couple of reasons: 1) Everything is implemented in Java. 2) "Lightweight" components are anything but lightweight. They move a significant amount of activity from the X server to the client, where it is handled much less efficiently and with much higher network bandwidth costs between client and X server. (This is not a new issue; Motif dealt with it years ago in the widgets vs gadgets debate.) Several things *could* happen to improve the Swing performance story: 1) Portions of Swing could be implemented natively. 2) Swing could increase its reliance on native windows rather than owning everything below the top-level window. 3) The relentless upward march of clockspeeds could make Swing performance acceptable, as finally happened to MSWindows a few years ago :-). Nathan Meyers [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Non mofit AWT.
On Sat, 3 Apr 1999, Jonathan Mark Brooks wrote: > I suspect that they didn't get the point. What people are asking for is > that the graphical elements of java be implemented with GTK+ rather than > Motif or some other platform specific GUI kit (GTK exists for win32 now as > well...). Even Swing must at some level call on GUI elements that are > coded not with Java but with a lower-level graphics library. I'm already working on this with the Blackdown 1.2 Linux sources. It's working well enough to run the SwingSet demo, but I still have much work to do to implement all of the AWT widgets. As soon as the source diffs for 1.2 are available, I will be making my diffs available to anyone who is interested in helping me finish the implementation. (I have already made them available to the other members of the Blackdown porting team but, not surprisingly, they are all too busy with the actual porting to be able to help with this project.) Cheers, Nigel Nigel Gamble[EMAIL PROTECTED] Mountain View, CA, USA. http://www.nrg.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problems getting host IPaddress
Chris Abbey wrote:
>
> Are you firewalling the AUTH port? ...
> Anyway, if you can successfully do `nslookup smtp-server` on the workstation
> you _shouldn't_ have any problems with inetaddr.get{all}byName either, at
> least I've never seen any. Good luck. -=Chris
Hi , thanks, I'll take care about the AUTH port and try that
nslookup-thing.
> p.s. how are you finding the javamail stuff to work with? I'm considering
> using it in a project and would be interested to hear how you've gotten
> along with it? good, bad, or indifferent. . . .
For mail receiving I was working with a mailhost supporting the
imap-protocol. There you got all the possibilities (selecting mail,
moving it to other folders and so on), with the pop3-protocol it's no
fun (..but you can receive mail).
For mail sending you need to know someting about MIME-Types and how to
build up a correct message (-> using javax activation framework). This
you have to find out for yourself (if you're not an expert already).
The demos were working at once, everything well documentated. At the
mailing list the developpers are responding to any question unanswered.
There were critical voices, which find some method call unelegant or
unnecessary, - may be or not : personally I would consider to implement
the protocols myself only in case of simple text messages.
With adding a mail client to existing applications/browsers I've got no
experience, but obviously it's done (except Netscape's not working with
javamail).
A javamail enthousiast ;-)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk1.2 awt problems
When i am trying ln -s /usr/lib/libstdc++-lib6.0-1.so.2 -> /usr/lib/libstdc++.so i am getting an error that the last argument must be a directory. Please help me because jdk1.2 doesn't run. ___ Get your free, private email at http://mail.excite.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.2 awt problems
I believe your using the link command incorrectly. I could be wrong in
regards to Linux usage, but I believe the proper way would be;
ln {args} source target
the "->" shouldn't be there. And you can link file to file, so I'd have to
look at this in Linux myself. But I'd try it w/out the "->" first.
[EMAIL PROTECTED] wrote:
> When i am trying
>
> ln -s /usr/lib/libstdc++-lib6.0-1.so.2 -> /usr/lib/libstdc++.so
>
> i am getting an error that the last argument must be a directory.
>
> Please help me because jdk1.2 doesn't run.
>
> ___
> Get your free, private email at http://mail.excite.com/
>
> --
> 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: This works on Linux/ W95 not on NT. Why?
Jeff Galyan wrote: > > Jim Frost wrote: > > > > > Maybe because NT is notorious for being very unfriendly to Java? > > > > Huh? NT is one of the best Java platforms around. It's relatively stable, has > > great JVM availability, has very stable JVMs, has a slew of IDEs and other > > tools, has several very fast compilers > > > > We do almost all development on NT for these reasons even though we typically > > deploy on Solaris (for scalability and core OS reliability). > > > > Pardon me, but... > > WRONG! > > It's been proven in court that Microsoft's JVM is utterly > *non-compliant*, NT crashes way too frequently to be considered *alpha* > quality software, Microsoft's IDE produces binaries that simply will not > run on any platform except Win32 (again, proven in court)... > > "NT is one of the best Java platforms around" ? What have you been > smoking? > Gee Jeff - a little testy? NT is just the os. There are a bunch of jvm's that work just fine on nt. Don't forget not everybody has a solaris box. I'm running dual boot nt and linux at home, and developing on solaris at work. I for one am grateful that java runs on all these systems. Regards, -- Michael Doherty http://top.monad.net/~vsi/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: This works on Linux/ W95 not on NT. Why?
> > > Maybe because NT is notorious for being very unfriendly to Java? > > > > Huh? NT is one of the best Java platforms around. It's relatively stable, has > > great JVM availability, has very stable JVMs, has a slew of IDEs and other > > tools, has several very fast compilers > > > > We do almost all development on NT for these reasons even though we typically > > deploy on Solaris (for scalability and core OS reliability). > > Pardon me, but... > > WRONG! > > It's been proven in court that Microsoft's JVM is utterly > *non-compliant*, [...] This is why we don't use the Microsoft JVM. There are several others, including Sun's. In fact, Sun's JDK has always been available first on NT *then* on SPARC -- sometimes (as in the case of Java2) separated by months! > NT crashes way too frequently to be considered *alpha* > quality software, [...] I do not find this to be the case. My NT development systems stay up for weeks at a time. Sure, they BSOD on me on occasion, but once every few months is not a critical problem for a development system. Now, if you're talking about deployment systems I'd say you're on the money. NT is too unstable and not nearly scalable enough. > Microsoft's IDE produces binaries that simply will not > run on any platform except Win32 (again, proven in court)... So don't use their IDE. There are several dozen others available. Personally I just use emacs. > "NT is one of the best Java platforms around" ? What have you been > smoking? "Best" is a matter of opinion, of course, but I figure that if it has the most available JVMs, the most mature JVMs, the most available compilers, the most mature compilers, the most available IDEs, the most mature IDEs, the most available debugging tools, the most mature debugging tools Well, I'm sure you get the picture. jim -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: This works on Linux/ W95 not on NT. Why?
Jim Frost wrote: > > > Maybe because NT is notorious for being very unfriendly to Java? > > Huh? NT is one of the best Java platforms around. It's relatively stable, has > great JVM availability, has very stable JVMs, has a slew of IDEs and other > tools, has several very fast compilers > > We do almost all development on NT for these reasons even though we typically > deploy on Solaris (for scalability and core OS reliability). > Pardon me, but... WRONG! It's been proven in court that Microsoft's JVM is utterly *non-compliant*, NT crashes way too frequently to be considered *alpha* quality software, Microsoft's IDE produces binaries that simply will not run on any platform except Win32 (again, proven in court)... "NT is one of the best Java platforms around" ? What have you been smoking? -- Jeff Galyan http://www.anamorphic.com http://www.sun.com jeffrey dot galyan at sun dot com talisman at anamorphic dot com Sun Certified Java(TM) Programmer == Linus Torvalds on Microsoft and software development: "... if it's a hobby for me and a job for you, why are you doing such a shoddy job of it?" The views expressed herein do not necessarily reflect those of my employer. Sun Microsystems, Inc., has no connection to my involvement with the Mozilla Organization. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
