Re: Classpath help
> ? I need some help configuring my classpath. > ? I can javac on file it works fine ie: > ? javac hello.java > ? this creates the .class file. It may be usefull a common solution to use -d option in javac command.Just create a directory named myclass and do compile all class files in it. Something, like that javac -d /home/someone/java/myclass hello.java. Point your CLASSPATH to myclass, as CLASSPATH=myclass:$CLASSPATH, and run java hello. -- Cheers. Alexander
RMI-Problem
Hi, I do have a real problem with RMI and linux :-( Perhaps it´s my own fault ... but I don´t know how to handle the problem ... There runs a server that provides a remote-object. A client connects to this server and provides him- self another remote-object to the server. The server scans the connected clients and perhaps sends an update-message to them (if some conditions are fullfilled). Everything is running so far. If the server runs idle for 10 to 15 minutes and a new client tries to connect the connection is established ... but then both - the server and the client - stop working. There is no way but killing the processes (rmiregistry, java server and java client). No exception is thrown. I´m using JDK 1.1.5 Rel. 7 on linux kernel 2.0.33. Any ideas ?? Thanks in advance. Greetings, Lars Rusdorf S.u.S.E. GmbH,Gebhardtstr. 2, 90762 Fuerth,Germany Tel: +49-911-32471-86 Fax: +49-911-3206727 http://www.suse.deEmail: [EMAIL PROTECTED]
JDK 1.1.5 Download!!
Hi, I'am not able to download JDK1.1.5 v7 for arch libc from the mirror sites available in the blackdown.org ,after exactly 6508828 bytes the connection gets cut and after that i'am not able to recover,i have tried as many as 20 times and i get in to the same problem. Can u please tell me the original site or some other site for java-linux port??,can u please help on this. Thanks in advance, Muthukumaran.A
Free javac?
A transient (slightly off-topic) thought on the way from C++ to Java I was wondering whether there is an attempt to implement a free javac? Thought: the JVM defines the bytecodes. For portability, it is not an issue which language was used to generate the bytecode. Now, rather then using c2java or cpp2java steps, I am wondering about small extensions to the Java language. Runtime issues (like "signed") won't work, but compile time issues would. Example: "const". A const qualifier on call-by-reference parameters and reference returns could be checked at compile time. It is not perfect (your bytecode, w/o any const qualifier in signatures, might run with other bytecode that will not be aware of any restrictions on your accessor methods etc.), but it is a huge step, at the expense of having to remove a single keyword with a filter prior to compiling it with javac. GNU gcc had certain extensions enabled by compiler command options, used for not-yet-ANSI and experimental features, like signatures. Maybe some of the gcc C++ parser code could actually be used as a start? This is not about optimizing or JIT or creating native code from Java source or bytecode, but those might be other potential benefits. b.
Re: Newbie question, answered
what is this kaffe javac. why is it there in /usr/bin ? sorry for such a silly question. kiran At 03:57 PM 5/25/98 +0200, you wrote: >Stephen Wynne wrote: > >> Yay, we're running Kaffe! Could you make sure that $JAVA_HOME/bin is >> *ahead* of anything in your $PATH that looks like it has Kaffe in it >> on your system, such as /usr/bin? >> > >You are right. The javac which was giving the problem was >/usr/bin/javac, that is the kaffe javac. Now that I moved $JAVA_HOME/bin >ahead in my $PATH, both javac and java work, and I see a wonderful >"Hello, World!". > >Thank you indeed, > >Daniele Lugli > >
Linux and Modems
OK - I have a Motorola VoiceSurfr 56K modem (pnp). When trying to get my modem to work with Linux RedHat 5.0 it does not work. Thanks to the large community of docs out there however, I quickly found that there are a miriad of ways to get it to work. Most, however, involve doing things to Linux that I have never heard of and worse, I do not even understand how to start on! Most make the FIRST recommendation to buy a REAL modem (non-pnp). I am there! Any suggestions on a good non-pnp 56K modem that works well with RedHat 5.0 (out of the box preferably)? I have a P200 system. Any help would be appreciated! Brett Roy [EMAIL PROTECTED]
Re: MissingResourceException from appletviewer
A new day, a fresh mind...
Found the problem in the html file - having a comma between the
WIDTH and HEIGHT parameters cause this problem.Amazingly removing
this comma is the fix. Sorry for the bandwidth...
smb
zembee wrote:
> I having problems running the appletviewer [RH5.0, jdk1.1.5v7]. I
> created the simple Scribble example from O'Rielly and the
> corresponding
> html file [attached].
>
> bash$ echo $JAVA_HOME
> /usr/local/java/
> bash$ echo $CLASSPATH
> .:/usr/local/java/lib/classes.zip
> bash$ appletviewer Scribble.html
> java.util.MissingResourceException: Can't find resource
> at java.util.ResourceBundle.getObject(ResourceBundle.java)
> at java.util.ResourceBundle.getString(ResourceBundle.java)
> at
> sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:54)
>
> at
> sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:570)
>
> at sun.applet.AppletPanel.init(AppletPanel.java:147)
> at sun.applet.AppletViewer.(AppletViewer.java:199)
> at
> sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:87)
>
> at sun.applet.AppletViewer.parse(AppletViewer.java:938)
> at sun.applet.AppletViewer.parse(AppletViewer.java:904)
> at sun.applet.AppletViewer.main(AppletViewer.java:1081)
>
> I do have the appletviewer.properties file:
>
> bash$ ls /usr/local/java/lib
> appletviewer.properties font.properties.ru
> awt.properties font.properties.tr
> classes.zip font.properties.zh_GB2312
> content-types.propertiesfont.properties.zh_TW_Big5
> font.properties font.properties.zh_TW_CNS11643
> font.properties.cs i386@
> font.properties.el i486@
> font.properties.hu i586/
> font.properties.ja i686@
> font.properties.ko psfont.properties.ja
> font.properties.lt rmic.properties
> font.properties.lv security/
> font.properties.pl serialver.properties
>
> so what am I missing?
>
> Thanks,
> smbinyon
>
>
> --
> Visit my home page at http://zembee.home.ml.org
> [EMAIL PROTECTED]
>
>
> import java.applet.*;
> import java.awt.*;
> import java.awt.event.*;
>
> /** A simple applet taht uses the Java 1.1 event handeling model */
>
> public class Scribble2 extends Applet
> implements MouseListener, MouseMotionListener
> {
> private int last_x, last_y;
>
> public void init()
> {
> // Tell this applet what MouseListener and
> MouseMotionListener
> // objects to notify when mouse and mouse motion
> events occur.
> // Since we implement the interfaces ourself, our own
> methods are called.
>
> this.addMouseListener(this);
> this.addMouseMotionListener(this);
> }
>
> // A method from the MouseListener interface. Invoked when the
> // user presses the mouse button.
>
> public void mousePressed(MouseEvent e)
> {
> last_x = e.getX();
> last_y = e.getY();
> }
>
> // A method from the MouseMotionListener interface. Invoked
> when the
> // user drags the mouse with a button pressed.
>
> public void mouseDragged(MouseEvent e)
> {
> Graphics g = this.getGraphics();
> int x = e.getX(), y = e.getY();
> g.drawLine(last_x, last_y, x, y);
> last_x = x; last_y = y;
> }
>
> // The other, unused methods of the MouseListener interface
>
> public void mouseReleased(MouseEvent e) {;}
> public void mouseClicked(MouseEvent e) {;}
> public void mouseEntered(MouseEvent e) {;}
> public void mouseExited(MouseEvent e) {;}
>
> // The other method of the MouseMotionListener interface.
>
> public void mouseMoved(MouseEvent e) {;}
> }
>
>
>
--
Visit my home page at http://zembee.home.ml.org
[EMAIL PROTECTED]
jdk 1.2
Hi, will there be a jdk1.2 port in the near future (even for the betas)? I'd like to use collections and I'm not willing to switch to NT :-( cheers, Gabor -- Gabor Szentivanyi, [EMAIL PROTECTED] -- -- Multimedia Information Systems Design -- -- ITS, Delft University of Technology -- -- "The more I practice, the luckier I get."--
Re: jdk 1.2
Hello Gabor, Look at JGL pure Java container library (http://www.objectspace.com/jgl/) from Object Space. It is absolutely free, is given in source code and much more powerful that 1.2. collection stuff. I have read that Sun licenseed their library for 1.2. but apparently they reduced it if used it at all. For other things of this sort, look also at http://www.x3m.com/. Their library is even smarter (unlike JGL, it does not simulate C++'s STL) but had no new release for more than one year. Or you can try to compile Sun's source code with 1.1. (but it is not possibly allowed by their license -- read it carefully before doing this). All the Best Pavel [EMAIL PROTECTED] wrote: > > Hi, > > will there be a jdk1.2 port in the near future (even for the betas)? I'd > like to use collections and I'm not willing to switch to NT :-( > > cheers, > > Gabor > > -- Gabor Szentivanyi, [EMAIL PROTECTED] -- > -- Multimedia Information Systems Design -- > -- ITS, Delft University of Technology -- > -- "The more I practice, the luckier I get."--
RMI and jdk1.1.5v7-*
Hello people, I want to share with you some trouble/observations I encountered with SB's 1.1.5v7-libc and 1.1.5v7-glibc. The machine that is the server is running RH 5.0 with patches applied. When calling remote methods from a server/stub/skel compiled and running 1.1.5v7-glibc from a *remote* client invoked on a number of JVM's (including Sun's 1.1.6) I see the following error: richmc@phoenix:~/Client%java InventonClient Exception! InventonClient. Error is java.rmi.ConnectException: Connection refused to host: [localhost:11040]; nested exception is: java.net.ConnectException: Connection refused Calling the remote methods from a *local* client results in a successful execution of the program. When calling the same methods from a server/stub/skel compiled and running on 1.1.5v7-libc from both remote and local clients the program works as expected. This behavior can be duplicated with the Core Java "Product" example (vol 2 ch 5). The problem is more or less solved for me since I am now using 1.1.5v7-libc, but if I can be of further use feel free to contact me. Take it easy, Rich
Re: Linux and Modems
-- > From: Brett Roy <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Linux and Modems > Date: maandag 25 mei 1998 18:33 > > OK - I have a Motorola VoiceSurfr 56K modem (pnp). When trying to get my > modem to work with Linux RedHat 5.0 it does not work. > > Thanks to the large community of docs out there however, I quickly found > that there are a miriad of ways to get it to work. Most, however, involve > doing things to Linux that I have never heard of and worse, I do not even > understand how to start on! > > Most make the FIRST recommendation to buy a REAL modem (non-pnp). I am > there! Any suggestions on a good non-pnp 56K modem that works well with > RedHat 5.0 (out of the box preferably)? I have a P200 system. > > Any help would be appreciated! > Try to find out the IRQ and IO-address off the modem under DOS or Windows95, and change the setting with setserial under Linux (in /etc/rc.local) if necessary. This has worked for me.
minor bug in java.awt.List.removeAll()
If you call java.awt.List.removeAll() on a List that's never had anything added to it, you get a warning from Motif: Warning: Name: slist Class: XmList Item(s) to be deleted are not present is list. Should I file a bug report to the formerly Open Group about the typo in the warning message, too? :-)
Re: minor bug in java.awt.List.removeAll()
Nelson Minar wrote:
>
> If you call java.awt.List.removeAll() on a List that's never had
> anything added to it, you get a warning from Motif:
>
> Warning:
> Name: slist
> Class: XmList
> Item(s) to be deleted are not present is list.
>
> Should I file a bug report to the formerly Open Group about the typo
> in the warning message, too? :-)
By all means file a bug report about the typo. ;-)
I also found this while working an example in "Core Java 1.1", v.2,
"ZipTest". If I changed a method which exhibited the bug from:
public void scanZipFile()
{ fileList.removeAll();
try...
to
public void scanZipFile()
{ if (fileList.getItemCount() != 0)
fileList.removeAll();
try...
then the bug went away.
FWIW.
Bob L.
P.S. Where it is really irritating, and you cannot do anything to change
it, is the "GroupReader" applet at JavaSoft's Java Developer's
Connection. G!
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/
Re: CJK fonts.properties?
> Has anyone adjusted fonts.properties under i18n for Chinese/Japanese/Korean
> support on Linux/XFree86? For example, fonts.properties.ja looks like it's
> still the Solaris/CDE version to me.
I tried many cases, but I cannot show japanese charcter
in TextField and/or TextArea.
i.e. \u3042 is converted to \u0042 in TextArea/TextField.
other components are OK (list, label, etc)
only TextArea/TextField are NG.
my environment is
libc 5.4.44 & jdk1.1.5v7 & kernel 2.0.33, installed from slakware.
if anyone success to show japanese charcters in TextArea,
please teach me your howto.
thanks.
--- cut here ---
import java.io.*;
import java.lang.*;
import java.awt.*;
public class CJK extends java.applet.Applet {
public void init () {
String s = new String ("\u3042\u3044\u3046\u3048\u304A");
// japanese a i u e o
setLayout (new BorderLayout ());
TextArea out = new TextArea (12, 60);
Label l = new Label (s);
add ("Center", out); //BDFHJ
add ("South", l);//this is shown correctly.
out.append (s);
System.out.println (s); //this line is OK too.
}
}
Newbie question, answered
Stephen Wynne wrote: > Yay, we're running Kaffe! Could you make sure that $JAVA_HOME/bin is > *ahead* of anything in your $PATH that looks like it has Kaffe in it > on your system, such as /usr/bin? > You are right. The javac which was giving the problem was /usr/bin/javac, that is the kaffe javac. Now that I moved $JAVA_HOME/bin ahead in my $PATH, both javac and java work, and I see a wonderful "Hello, World!". Thank you indeed, Daniele Lugli
Cannot post to the mailing lists
I cannot post to [EMAIL PROTECTED], nor to [EMAIL PROTECTED], nor to [EMAIL PROTECTED] if I use my netscape for linux. Symptoms are: - It says "successfully sent". - When sending to java-linux-request or to karl, I get no reply. - When sending to java-linux, my message does not appear on the list. - I can post to other mailing lists with my netscape for linux. - I can post to java-linux, java-linux-request (and I hope to karl) if I use microsoft explorer (as I'm doing now) or netscape for macintosh. Of course it is much more handy to access the list from the same machine where I have java, so I hope that some of you can give me a hint. Thans in advance, Daniele Lugli
Re: Difficulty installing kaffe
On Sat, 23 May 1998, Roger Hill wrote: > I have just gone through the Kaffe install, but every time I try anything > (eg javac HelloWorldApp.java), I get: > > [rhill@lappie test]$ javac HelloWorldApp.java > java.lang.NoSuchMethodError: initializeSystemClass You need a patch for kaffe. Try looking through the kaffe mailing list archives at http://rufus.w3.org/kaffe/ . . . Sean.
Re: Free javac?
On Mon, 25 May 1998, Bernd Kreimeier wrote: > > A transient (slightly off-topic) thought on the way from > C++ to Java I was wondering whether there is an attempt > to implement a free javac? There's guavac, which is a javac written in C++. Then there's pizza, an extended version of the Java language. There's also Jump, another Java variant with parameterized data types. Then there's also another Java variant being developed at MIT LCS, used by the software engineering classes. Of the four, only guavac is free afaik but it seems development has stopped. Cygnus is reportedly interested in developing a javac-frontend to gcc. . . . Sean.
Re: jdk 1.2
On Mon, 25 May 1998 [EMAIL PROTECTED] wrote: > will there be a jdk1.2 port in the near future (even for the betas)? I'd > like to use collections and I'm not willing to switch to NT :-( It is possible to use 1.2 collections with the jdk 1.1. If you go to http://java.sun.com, go into the InfoBus area and there will be a version of 1.2 collections suitable for 1.1. The only things you'll need to change are the package names. I don't believe 1.2 will be ported to Linux until after the official 1.2 jdk is released, since, (I'm guessing here), the source isn't released to licensees until then. . . . Sean.
Re: jdk 1.2
there will be ports, if there will be src. i guess its up to sun/javasoft to say yay/nay. gat [EMAIL PROTECTED] wrote: > Hi, > > will there be a jdk1.2 port in the near future (even for the betas)? I'd > like to use collections and I'm not willing to switch to NT :-( > > cheers, > > Gabor > > -- Gabor Szentivanyi, [EMAIL PROTECTED] -- > -- Multimedia Information Systems Design -- > -- ITS, Delft University of Technology -- > -- "The more I practice, the luckier I get."--
