Optimal Directory Structure?

1998-09-04 Thread Steve Cohen
I realize that there is not one answer to this question but I would like some of you veteran java/linux developers to suggest what the optimal directory structure and setup of the CLASSPATH variable is. I am, frankly, a C++ programmer trying to learn java and I am continually frustrated over the

Re: More keyboard problems

1998-06-30 Thread Steve Cohen
Joachim Schaaf wrote: > Steve Cohen wrote: > > > > I am getting my feet wet with java-linux. > > As a first step, I am simply copying code from the disk included with > > the book > > "Java for C/C++ Programmers" by Michael C. DaConta. > > Th

Re: More keyboard problems

1998-06-30 Thread Steve Cohen
Juergen Kreileder wrote: > Steve Cohen <[EMAIL PROTECTED]> writes: > > > Joachim Schaaf wrote: > > > > > Steve Cohen wrote: > > > > > > > > I am getting my feet wet with java-linux. > > > > As a first step, I am simply copyin

Re: Emacs and java...

1998-07-27 Thread Steve Cohen
I have been using SlickEdit (and its successor Visual Slick Edit) on DOS and Windows platforms for almost 10 years. I swear by them. You can configure it to just about any keystroke configuration you wish - vi, emacs, cua, your own hybrid. Plus you get a lot of bells and whistles in it besides

Re: What's up with this?

1998-08-30 Thread Steve Cohen
My apoologies (and thanks) to all who responded to my poorly formulated original question in this thread. I was in a hurry to leave town for the weekend and did a much worse job than I had thought, of framing the issue. In the first place, the code fragment should have shown both paint methods a

Re: Trouble JDK 1.1.6 + HOTJAVA

1998-09-30 Thread Steve Cohen
Alexandre Boissy wrote: > Steve Byrne wrote: > > > David Buddrige writes: > > > Hi all, > > > > > > I have recently downloaded JDK 1.1.6 from > > > ftp.progsoc.uts.edu.au/pub/Linux/java to run on my Redhat 5.1 system... > > > I've un-tar'ed it into /usr/local/jdk1.1.6, and then added the fol

Write Once Run Anywhere?

1998-09-30 Thread Steve Cohen
I have built an application and an applet using jdk 1.1.6 under linux RedHat 5.0. Both the application and the applet (which use much of the same code) compile and work under linux. When I copy the class files to a Win95 system, they fail with NoClassDefFoundError. If, instead, I copy the .java f

Re: Write Once Run Anywhere?

1998-10-01 Thread Steve Cohen
Sean Starkey wrote: > On Wed, 30 Sep 1998, Steve Cohen wrote: > > > I have built an application and an applet using jdk 1.1.6 under linux > > RedHat 5.0. Both the application and the applet (which use much of the > > same code) compile and work under linux. > >

Re: Write Once Run Anywhere?

1998-10-01 Thread Steve Cohen
Ross Golder wrote: > Steve Cohen wrote: > > > > No, that's not it. The classpath is right. With the same classpath, under > > Win95, the copied CLASS files fail, but compiled source files work. > > You're not using a Microsoft Java VM (/compiler) ? > >

Re: Write Once Run Anywhere?

1998-10-01 Thread Steve Cohen
Ming-Ching Tiew wrote: > Steve Cohen wrote: > > > > I have built an application and an applet using jdk 1.1.6 under linux > > RedHat 5.0. Both the application and the applet (which use much of the > > same code) compile and work under linux. > > When I copy

Re: Write Once Run Anywhere?

1998-10-01 Thread Steve Cohen
Thanks to all who responded to my plea for help with the problem of not being able to run class files generated under linux under Win95, while if the same files were recompiled under Win95, they run fine. However, most of your proposed solutions fall wide of the mark. 1) Classpath is irrelevant s

Re: Write Once Run Anywhere?

1998-10-02 Thread Steve Cohen
Rob Nugent wrote: > Are you on JDK 1.1 on your Win95 Box ? > > Try doing a "java -version" on both platforms. If you are trying to run JDK1.1 > compiled code on JDK 1.0 that might cause problems. > > Rob > > -- > > Rob Nugent > Development Manager > UniKix Technologies Europe > [EMAIL PROTECTED]

Re: Write Once Run Anywhere?

1998-10-02 Thread Steve Cohen
Nelson Minar wrote: > >However, most of your proposed solutions fall wide of the mark. > > Gee, so sorry. Again, there's no fundamental problem with Linux Java, > the problem is something in your own environment. I'm sure you're right. I was just trying to figure out what that was. > >Now here

Re: Write Once Run Anywhere? - MYSTERY SOLVED

1998-10-02 Thread Steve Cohen
Steve Cohen wrote: > Nelson Minar wrote: > > > >However, most of your proposed solutions fall wide of the mark. > > > > Gee, so sorry. Again, there's no fundamental problem with Linux Java, > > the problem is something in your own environment. > >

Two questions on Swing:

1998-11-17 Thread Steve Cohen
Here are two questions I've had on swing. One pertains to java-linux, the other doesn't, but you guys have been very helpful to me so I thought I'd ask both. 1) Accessing top level menus via keyboard in Swing. Using Swing 1.0.3 and jdk 1.1.6. I can attach keystrokes to menu items via setMnemo

nested classes, packages, and javac depend

1998-12-03 Thread Steve Cohen
I find that I'm unable to get rid of the following errors when I do a javac depend of my whole project: error: File /usr/local/java/xyz/Scheduler.java does not contain nested class xyz.Scheduler. 1 as expected. Please adjust the class path so that the file does not appear in the package xyz. Wh

Re: nested classes, packages, and javac depend

1998-12-04 Thread Steve Cohen
David Warnock wrote: > Steve, > > > I find that I'm unable to get rid of the following errors when I do > a > > javac depend of my whole project: > > I have read soimewhere sometime that javac -depend is not reliable. > > Can I suggest you download the JIKES compiler from IBM. It's free, it > run

Re: nested classes, packages, and javac depend

1998-12-04 Thread Steve Cohen
David Warnock wrote: > > > The address is http://www.alphaworks.ibm.com/formula/Jikes/ (it's > > > available as a link from the blackdown site). > > > Either this URL is wrong or their server is down. I cannot > connect. > > Steve, > > I am pretty sure the url is correct but I also could not

Sorry, but

1998-06-28 Thread Steve Cohen
tion. But the symbolic links are all wrong. Every executable (for example, javac) I try to run brings up a message like this: javac was not found in /usr/bin/jdk-1.1.6/../bin/i586/green_threads/javac Fiddling with my path does no good either. How should I best proceed? Steve Cohen

More keyboard problems

1998-06-30 Thread Steve Cohen
I am getting my feet wet with java-linux. As a first step, I am simply copying code from the disk included with the book "Java for C/C++ Programmers" by Michael C. DaConta. The first "Hello World" program worked okay but the second one, attached, does not. On my RedHat 5.0 systems (yes, I've upg

Running java binaries under Linux

1999-01-25 Thread Steve Cohen
The file java.txt in the /usr/src/linux/documentation directory gives information on compiling the java kernel to provide support for running java binaries. (This file is in the 2.0.36 source trees and I believe earlier ones as well. It appears to be somewhat out of date. For one thing, it ment

Wierd results using binfmt_misc

1999-02-19 Thread Steve Cohen
I have recently installed binfmt_misc on my linux system using kernel 2.2.1. I have this game application I've written. It lives in its own package in its own directory one level down from ./usr/local/java. Following the suggestions of people here, I have gotten into the habit of NOT defining cla

Re: Wierd results using binfmt_misc

1999-02-19 Thread Steve Cohen
Michael Sinz wrote: > On Fri, 19 Feb 1999 05:55:52 -0600, Steve Cohen wrote: > > >I have recently installed binfmt_misc on my linux system using kernel > >2.2.1. > >I have this game application I've written. It lives in its own package > >in its own direct

java question

1999-02-19 Thread Steve Cohen
I realize that this is not the proper forum for this, but I consider this list pretty knowledgeable about java and I just toy around with it at the moment. My employer is working on an application that is deliverable on many platforms, from a standalone win32 platform to client-server versions se

can't find libjava.so

1999-03-10 Thread Steve Cohen
I have installed jdk 1.2 on my redhat 5.2 system and pointed my path at it. When I try to run java, I get the Error can't find libjava.so. I can find this file in jdk1.2/jre/lib/i386. I tried copying it to /lib. That didnt' work. Where is it expecting to find this file? -

Re: can't find libjava.so

1999-03-10 Thread Steve Cohen
Per Widerlund wrote: > Steve Cohen wrote: > > I have installed jdk 1.2 on my redhat 5.2 system and pointed my path at > > it. When I try to run java, I get the Error can't find libjava.so. > > I can find this file in jdk1.2/jre/lib/i386. I tried copying it to &

Re: can't find libjava.so

1999-03-10 Thread Steve Cohen
Alvaro del Castillo wrote: > Steve Cohen wrote: > > > I have installed jdk 1.2 on my redhat 5.2 system and pointed my path at > > it. When I try to run java, I get the Error can't find libjava.so. > > I can find this file in jdk1.2/jre/lib/i386. I tried copyin

Re: can't find libjava.so

1999-03-11 Thread Steve Cohen
Bruno Boettcher wrote: > > > Steve Cohen wrote: > > > > I have installed jdk 1.2 on my redhat 5.2 system and pointed my path at > > > > it. When I try to run java, I get the Error can't find libjava.so. > > > > I can find this file in jdk1.2

Understanding 1.2 classpath

1999-03-12 Thread Steve Cohen
I'm having a little difficulty understanding Java 1.2's classpath structure. Sun has a dcoument "Command Line Changes from 1.1 to 1.2". After reading it, I'm even more confused. For one thing, the Sun document mentions a file called rt.jar. I don't find an rt.jar. In the blackdown distribution

javac 1.2 a real pig

1999-03-12 Thread Steve Cohen
both time-wise and memory usage wise. I've had to boost the default heap size to 20 MB. (Possibly this is because I'm compiling with -verbose because I had to see what the heck was taking it so long.) Is a 1.2-compatible jikes available yet? The jikes I used for 1.1.7 seems to zip through the

Re: javac 1.2 a real pig

1999-03-12 Thread Steve Cohen
list anyways!), but it had to do with > method calls in inner classes. > > At 10:08 AM 3/12/99 -0600, Steve Cohen wrote: > >both time-wise and memory usage wise. I've had to boost the default > >heap size to 20 MB. (Possibly this is because I'm compiling with > &g

swing changes?

1999-03-13 Thread Steve Cohen
I have ported my application from 1.1.7 to 1.2, and after changing all the com.sun.java to swing gotten the application to compile. It blows up, however, with a null pointer exception, the first time the user presses a button which eventually triggers a call to JComponent.paintAll(). The compone

Missing fonts and pointer exceptions

1999-03-13 Thread Steve Cohen
I've seen the reply to msg 540 on the bug system about these missing fonts, suggesting I copy them into my /jre/lib/fonts directory but I don't know where to get these font files. d051.pfb and s051.pfb are not found anywhere on my system. I wonder if this has anything to do with the Null

Applet problem

1998-08-23 Thread Steve Cohen
It may be a dumb question, but... I have compiled and build an applet under JDK1.1.6 (Blackdown version) under RedHat Linux 5.0. The compiler gives no errors. With the current directory being the directory where the file XYZApplet.class is and an HTML file with the name XYZ.html in the same dire

What's up with this?

1998-08-28 Thread Steve Cohen
I realize this may not be the appropriate place for this question but why can't I do this? //file a: import java.awt.*; public class a { void paint (Graphics g) { ... } } //file b: import java.awt.*; import a; public class b { public a A; ... void paint (Graphics g

I have a big problem with Sun

1999-04-09 Thread Steve Cohen
Michael Emmel wrote: > It seems that Sun will not support bug reports that occur in the > platform independent > parts of Java since I'm using Linux. If you report a bug and say your > on Linux > they say its not a supported platform. Even though I've been reporting > bugs in the Swing. > > I c

OT: java and SAMBA

1999-05-14 Thread Steve Cohen
This is slightly off topic as it doesn't involve linux but it involves a close relative : SAMBA. I wrote a program that processes a number of files residing in a directory on an SGI server that was running irix (6.2). Since we don't have a development environment for irix but do for NT, I though