Re: Basic installation. Please Help.

1998-11-17 Thread Pavel Tolkachev

> IMO, the cross-platform capabilities of java are seriously hurt by all the hoops
> that end-users have to jump through (setting up classpaths, .sh/.bat files, etc)
> just to get someone elses application to run. Admittedly, java installshield and
> the like do do a good job of setting this stuff up, but a more general (and built
> in) solution is required.
> 
>   [ bryce ]
According the Sun (unfortunately I do not remember URL) the 'preferred'
way to specify classpath is do not set CLASSPATH environment variable at
all (namely because it is not portable) but to use -cp and -classpath
for jre start (apparently -classspath is for 'everywhere used' packages
like Swing, probably JGL and jpython) and -cp for the application
classpath itself and other its specific packages. Anyway you will
usually have non-portable scripts to start applications... probably
concatenating command line from other environment variables not
deprecated by Sun like SWING_RELEASE_PATH :). For development (where we
need to use java instead of jre) all should be put in -classpath, I
beleive.
Just my 2cents

Pavel



PLEASE What audio device is java linux looking for???]

1998-11-17 Thread Chip Grandits

I cannot get java-linux to make any sound using the AudioClip.play() method
When I run the any applet which should play sound, when the sound is to play I get:

no audio device
audio player exited

(running with -debug, yeilds no additional information)
I can play sound with other applications.
The appletviewer (.java_wrapper) has setuid root
I have a /dev/dsp and /dev/audio
IS JAVA-LINUX LOOKING FOR SOMETHING ELSE!!!
Do these devices need some special characteristics?

I need some specific info on HOW blackdown implements sound,
what does Blackdown's JVM do?!

[EMAIL PROTECTED] wrote:

> Absolut Nonsense.
>

What? This is from a vodka ad?

> Have you tried using one of the examples from the JDK demos, if you downloaded
> them. I think one of the applets in the Graphics subdirectory has something
> which plays audio sounds.
>

I've downloaded applets written by James Gosling for sun for the purpose of
showinghow easy it is to play a sound.  It doesn't work! Nothing works, not from
O'Reilly
nothing I've written works, see goofy attached files.

> Is your sound card properly configured. The only game I know that used sound was
> `XGalaga'. I think the problem lies with your software treating AWE64 as a SB16.
>

What is XGalaga?

> It may help to download the latest sound driver that you can get from Open Sound
> System, then recompile the linux kernel. I think it is `www.opensound.com'
>

Excellent Idea!Did that!
Got the latest Driverrs from OSS!
got old code out of the way, untarred new code
ran make xconfig, make dep, make clean, make zImage, copied image, ran /sbin/lilo
rebooted:
Still doesn't work.

> Pete

If I can't figure out how this works, the Microsoft JVM is how all our code will be
tested!
I will be staying late at work to reformat the HD on our linux box to re-install
windows 95










import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
oneChirp.java
A stupid applet written to prove sound doens't work on my system
*/

public class oneChirp extends Applet {
  protected AudioClip chirp;
  public void init() {
chirp = this.getAudioClip(this.getDocumentBase(), "chirp.au");
  }
  public boolean mouseDown(Event e, int x, int y) {
chirp.play();
return true;
  }
}




I cannot get java-linux to make any sound using the AudioClip.play() method
When I run the any applet which should play sound, when the sound is to play I get:

no audio device
audio player exited

(running with -debug, yeilds no additional information)
I can play sound with other applications.
The appletviewer (.java_wrapper) has setuid root
I have a /dev/dsp and /dev/audio
IS JAVA-LINUX LOOKING FOR SOMETHING ELSE!!!
Do these devices need some special characteristics?

I need some specific info on HOW blackdown implements sound,
what does Blackdown's JVM do?!

[EMAIL PROTECTED] wrote:

> Absolut Nonsense.
>

What? This is from a vodka ad?

> Have you tried using one of the examples from the JDK demos, if you downloaded
> them. I think one of the applets in the Graphics subdirectory has something
> which plays audio sounds.
>

I've downloaded applets written by James Gosling for sun for the purpose of
showinghow easy it is to play a sound.  It doesn't work! Nothing works, not from
O'Reilly
nothing I've written works, see goofy attached files.

> Is your sound card properly configured. The only game I know that used sound was
> `XGalaga'. I think the problem lies with your software treating AWE64 as a SB16.
>

What is XGalaga?

> It may help to download the latest sound driver that you can get from Open Sound
> System, then recompile the linux kernel. I think it is `www.opensound.com'
>

Excellent Idea!Did that!
Got the latest Driverrs from OSS!
got old code out of the way, untarred new code
ran make xconfig, make dep, make clean, make zImage, copied image, ran /sbin/lilo
rebooted:
Still doesn't work.

> Pete

If I can't figure out how this works, the Microsoft JVM is how all our code will be
tested!
I will be staying late at work to reformat the HD on our linux box to re-install
windows 95


Title: One stupid chirp





import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
oneChirp.java
A stupid applet written to prove sound doens't work on my system
*/

public class oneChirp extends Applet {
  protected AudioClip chirp;
  public void init() {
chirp = this.getAudioClip(this.getDocumentBase(), "chirp.au");
  }
  public boolean mouseDown(Event e, int x, int y) {
chirp.play();
return true;
  }
}
  




Retract stupid question about linux-java - a permission issue

1998-11-17 Thread Chip Grandits

A.P. Bell wrote:

> Don't know much about Java.  You should temporarily change the permissions on
> /dev/audio and /dev/dsp to 666 and run your applet -- to ensure that your setuid
> trick has worked.  Also, a method such as play() is likely overriden and so an
> alternative method like play(,...) will likely exist.
>
> Again, I don't know anything, just trying to give you some feedback because no
> one else has thus far.
>
> Regards,
> Andrew Bell

 I feel pretty stupid, your idea in fact worked!  I guess I've never been bitten by
a permission
snafu enough to go right to the beginning.  It's funny how people have to tell you
the obvious
routes to try.

To be honest  I must not really understand permission
the application appletviewer, which comes with a jdk is really a symlink to a file
called
.java_wrapper
# ls -l .java_wrapper
-r-sr-xr-x1rootroot3462Jun 19 01:36.java_wrapper
I assumed the 's' in the owner's 'x' spot meant that this executable would execute
with
the owner's (i.e. root's) permission.  But this wouldn't work until I changed
/dev/audio to
chmod 666. (previously it was 660).  I guess I don't fully understand.
Maybe it's something like .java_wrapper invokes a library, and the library has to
have the
permission??  Or that 's' doesn't really mean what I think it means??

Much Thanks,
I guess until I figure it I'll live 'dangerously' with /dev/audio at chmod 666.
-Chip "confused about permission" Grandits




Re: PLEASE What audio device is java linux looking for???]

1998-11-17 Thread peter . pilgrim

 Is your Sound card set up such that it conforms to the Sound-HOW-TO 
 LDP document.
 
 I presume that `/dev/dsp' symbolicly links to `/dev/dsp0' and 
 `/dev/audio' symbolicly links to `/dev/audio0' or something similar.
 
 If this is true `cat chirp.au > /dev/audio' will work, right?
 
 If not true then check your DMA and Interrupt setting from the 
 Sound-HOW-TO' document. I think the command is `cat /proc/interrupts' 
 and `cat /proc/devices'.
 
 First, I cannot see how the JDK cannot find your audio device, because 
 it will need a `/dev/audio' device file, and because the current JDK 
 1.1 can only play Sun Audio files. Second, writing a program to play 
 8bit through `/dev/audio' is very easy to implement.
 
 You call open("/dev/audio",...) and save the file descriptor handle 
 and set the flag `ioctl(...)' to set the sampling rate to 8000Hz. 
 Create a buffer for audio clip , read your audio clip from disk in to 
 buffer (just like a text file) and `write()' the buffer's contents 
 into the file descriptor `/dev/audio' until the contents are 
 exhausted.
 
 In other words it is as easy as writing a program that copys one file 
 to another with a few caveats empors. Hence I do not think it is JDK 
 is a fault. Your configuration probably is.
 
 BTW: XGalaga is an arcade game on Linux, which can play sounds!
 You might try any program which you can found, that can play sounds 
 like SoundStudio (written in Tcl/Tk/C ), XSox, Vrec, Vplay, etc.  
 Particularly anything that plays `.au' files. Look for players in the 
 Linux Sound & Midi pages for more infos `
 http://www.bright.net/~dlphilp/linux_soundapps.html '

Pete

__ Reply Separator _
Subject: PLEASE What audio device is java linux looking for???]
Author:  chipg ([EMAIL PROTECTED]) at lon-mime
Date:17/11/98 08:01


I cannot get java-linux to make any sound using the AudioClip.play() method
When I run the any applet which should play sound, when the sound is to play I g
et:
 
no audio device
audio player exited
 
(running with -debug, yeilds no additional information) 
I can play sound with other applications.
The appletviewer (.java_wrapper) has setuid root 
I have a /dev/dsp and /dev/audio
IS JAVA-LINUX LOOKING FOR SOMETHING ELSE!!!
Do these devices need some special characteristics?
 
I need some specific info on HOW blackdown implements sound, 
what does Blackdown's JVM do?!
 
[EMAIL PROTECTED] wrote:
 
> Absolut Nonsense.
>
 
What? This is from a vodka ad?
 
> Have you tried using one of the examples from the JDK demos, if you downloaded
> them. I think one of the applets in the Graphics subdirectory has something
> which plays audio sounds.
>
 
I've downloaded applets written by James Gosling for sun for the purpose of 
showinghow easy it is to play a sound.  It doesn't work! Nothing works, not from
O'Reilly
nothing I've written works, see goofy attached files.
 
> Is your sound card properly configured. The only game I know that used sound w
as
> `XGalaga'. I think the problem lies with your software treating AWE64 as a SB1
6.
>
 
What is XGalaga?
 
> It may help to download the latest sound driver that you can get from Open Sou
nd
> System, then recompile the linux kernel. I think it is `www.opensound.com' 
>
 
Excellent Idea!Did that!
Got the latest Driverrs from OSS!
got old code out of the way, untarred new code
ran make xconfig, make dep, make clean, make zImage, copied image, ran /sbin/lil
o
rebooted:
Still doesn't work.
 
> Pete
 
If I can't figure out how this works, the Microsoft JVM is how all our code will
 be
tested!
I will be staying late at work to reformat the HD on our linux box to re-install
windows 95
 
 
 
 
 
 
 
 
 
 
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
oneChirp.java
A stupid applet written to prove sound doens't work on my system 
*/
 
public class oneChirp extends Applet {
  protected AudioClip chirp;
  public void init() {
chirp = this.getAudioClip(this.getDocumentBase(), "chirp.au");
  }
  public boolean mouseDown(Event e, int x, int y) {
chirp.play();
return true;
  }
}
 


I cannot get java-linux to make any sound using the AudioClip.play() method
When I run the any applet which should play sound, when the sound is to play I get:

no audio device
audio player exited

(running with -debug, yeilds no additional information)
I can play sound with other applications.
The appletviewer (.java_wrapper) has setuid root
I have a /dev/dsp and /dev/audio
IS JAVA-LINUX LOOKING FOR SOMETHING ELSE!!!
Do these devices need some special characteristics?

I need some specific info on HOW blackdown implements sound,
what does Blackdown's JVM do?!

[EMAIL PROTECTED] wrote:

> Absolut

Re: servlets

1998-11-17 Thread Alexey Lukin

[EMAIL PROTECTED] wrote:
> 
> Is anyone using servlets with Apache?
>
Yes, it's a really good thing!
look at http://java.apache.org for Apache servlet engine

Also very good is Java Server Pages. look at java.sun.com for
specification and
at http://www.nmg.nl/~vinny/gnujsp/ for free implementation.

> What documentation is there?
> 
A lot of at java.sun.com. Look wor Java Web Server
> Thanks,
> 
> Mark
> --
> 
> 

-- 

With respect,
Alexey Lukin,
JSC "CINET" http://www.ci.net.ua
phone/fax +380-462-101710, 101263



Re: Basic installation. Please Help.

1998-11-17 Thread Carl Hewitt


 
In JDK 1.2, it works similar to what you want.  Any Jar files
you put in a certain directory are automatically in the classpath. 
Look at the
JDK 1.2 docs.
 
Bryce McKinlay wrote:
John Summerfield wrote:
> On Sun, 15 Nov 1998, Kenny Freeman wrote:
>
> > Hi, you have to add the path to the jar files like (for example):
> >
> > export
> > CLASSPATH=$CLASSPATH:/usr/local/swing/swing.jar:/home/freeman/jars/net.jar:etc
> >
> > that should work a little better for you (once you've added the
path to
> > each jar you want to use).
>
> I do hope someone comes up with a better idea than classpath RSN:
mine runs
> to well over 2K.
M I've allways wondered why there isn't a JARPATH environment
variable (or
something of the sort), where each .JAR or .ZIP within is treated as
being on the
CLASSPATH. This way it wouldn't be neccessary to add new .jar's to
your CLASSPATH
every time you want to install a new class library or application -
just dump it in
your JARPATH.
On a related note, wouldn't it be nice if compiled runnable/executable
classes
(those with a main() method) had a different extension to other classes's
(lets say
.eclass or something). This would be completely transparent as far
as the language
is concerned and both executable/non-executable classes classes would
be treated
the same by the VM/classloader. The .eclass extension would allow legacy
file
managers, etc, to identify runnable classes and associate them with
the VM,
allowing users to launch them by double-clicking.
Perhaps it would also be cool to be able to specify a default runnable
class for a
.jar file, allowing users to invoke an application (which comes distributed
as a
.jar) by typing java 
IMO, the cross-platform capabilities of java are seriously hurt by all
the hoops
that end-users have to jump through (setting up classpaths, .sh/.bat
files, etc)
just to get someone elses application to run. Admittedly, java installshield
and
the like do do a good job of setting this stuff up, but a more general
(and built
in) solution is required.
  [ bryce ]

-- 
* ---
Carl Hewitt
CTO / oop.com
Tools and training for enterprise 
business object development
* ---
JBOT - business object toolkit for Java
www.oop.com
* ---
 

begin:vcard 
n:Hewitt;Carl 
x-mozilla-html:TRUE
org:oop.com
version:2.1
email;internet:[EMAIL PROTECTED]
title:CTO
note;quoted-printable:=0D=0A
x-mozilla-cpt:;0
tel;work:877-891-5846
fn:Carl  Hewitt
end:vcard



Informations About JDK variations

1998-11-17 Thread Pierre Bizzotto

Hi, I'm a Student of Computer Science of Rome, I'm working for my thesis
about the JVM to create a VM distribuited.
I've already the source of the JDK of the Sun Microsystem and I do the 
compilation under Linux (Red Hat 5.01).

I ask you if it's possible to have much documentations about:

 - Structure of JAVA VIRTUAL MACHINE of the JDK

 - How the JVM working with the thread

 - Differnt between Green Thread and Native Thread

 - How I can change the source code to get my job

 - about the source code of JDK Sun

Thanks very much for the time lose for me.

 Bye Bye
 
***
   from Pierre Bizzotto
[EMAIL PROTECTED]

***




RE: Unix Programming Book

1998-11-17 Thread dmarsh

Um.. Well (aside from Java)

1) The K&R 'C' and 'C++' book for starters (they had a big hand in the ansi
standards)

2) Shell script programming books (ones with plenty of examples and covers
shell script security) -- KSH, BASH, TCSH, ZSH, etc... I just spotted one
the other day at B&N and flipped through it. It wasn't bad and was broken
into to parts: 1) learning  2) reference. A friend of mine was interested in
learning more about using Unix. I tend to use BASH and KSH exclusively.

3) The Unix(tm) man pages (they have a bit of documentation for system calls
and such)

Unix programming is kind of confusing -- I assume you asked your question
from a Unix administrative stand point.

If this isn't what you wanted or expected, re-post a detailed question.

--Doug

-Original Message-
From: Arnaldo Riquelme -Systems Analyst [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 16, 1998 8:55 AM
To: [EMAIL PROTECTED]
Subject: Unix Programming Book


I'm looking for good intro book on unix programming. Know anyone that
wants to sell one?
Any sugestion will be appreciated.
thanks



will there be a early access JDK 1.2 for linux?

1998-11-17 Thread Delius, Felix von

Are there any plans to make earlyAccess version of JDK 1.2 availible for
linux? (I hope this is no FAQ)

Felix



jar

1998-11-17 Thread 1a8


Is anyone else experiencing trouble with jar?

When I run jar -t jarfile.jar

it just hangs...

I've tried it on more than one jar file


__m
-- 


 



RE: Unix Programming Book

1998-11-17 Thread Nelson Minar

>>I'm looking for good intro book on unix programming. Know anyone
>>that wants to sell one?

>If this isn't what you wanted or expected, re-post a detailed question.

Just don't post it to Java Linux

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



RE: Retrieving a fully qualified hostname under NT

1998-11-17 Thread dmarsh


The IP model will change in NT 5 (more Unix like) but the name issue will
continue to pose a problem.

Back when there was no names, each machine managed it's OWN name to ip
conversion: (aka /etc/hosts)

name servers came into play and we now have /etc/resolv.conf for unix
machines (although the history has 'yp' written all over it, change due to
the trademark or somthing, I didn't follow it back then).

SMB (NetBios) just convolutes the name model more..

What name? Netbios name, host name or DNS name?

The simple solution is to use the same name in all three cases -- Windows NT
kind of assumes you will do that as WINS resolution will give you problems
if you do not).

The order for normal IP name resolution on NT appears to be .../etc/hosts ->
WINS -> DNS.

If you make a NetBios name to IP resolution call, it goes to WINS (or who
ever is the local browse master, if no WINS server) ONLY. You can enable on
most Microsoft NBT (NetBios over TCP/IP) clients to include DNS as an
alternate method for resolution when the normal resolution fails, but this
is not enabled by default (it's labled enable DNS for WINS/Windows
Resolution). You can also manage your own WINS host list (i.e. Netbios name
to IP address resolution). The name of the file is LMHOST (which came from
the old IBM Lan Manager). The file on Win 3.x/9x is (windowsdir)\LMHOSTS.
The file on NT is not specified and you MUST point to it through the IP
setup screens. The normal location for it is
(winntdir)\system32\drivers\etc\lmhosts (which is where the other Unix like
files are also, hosts




-Original Message-
From: Christopher Hinds [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 13, 1998 10:02 AM
To: Mark Hofmann
Cc: java-linux
Subject: Re: Retrieving a fully qualified hostname under NT


Try using a reverse DNS lookup with that host's IP address , you should
get
a fully qualified host name from that. This obviously means you will
have to use the DNS protocol on an open socket. The problem with NT is
it is using
WINS ( NT DNS) to resolve the name and that name returned is a host name
known to the NT Promary Domain controller and the WINS Service.
Mark Hofmann wrote:

> Hi all,
>
> I've posted that question a few days ago to java.lang.programmer
> but got no response :-(
> But, since this problem is really bugging me, and there might be some
> people in this list that run there progs under NT and Linux, just as
> me,
> I hope to find a solution here.
> Anyway, here is the problem, easy and simple 
>
> when I use
> String
> localhostname=(InetAddress.getLocalHost()).getHostName();
> under Linux I get the fully qualified hostname, under NT just the
> local
> hostname, eg. host instead of host.my.domain.com
>
> Our admin says that its an NT feature/problem (you never know) because
> it
> stores both names separately and returns usually only the local
> hostname.
>
> Is there a workaround for that, so I can get the fully qualyfied
> hostname or
> do I just have to live with that? Or even better is our system
> misconfigured
> and I can tell our admin that he's wrong (which is always fun ;-) )
>
> Thanks in advance
>
>  Mark
>
> --
> M a r k  H o f m a n n
> Department of Computer Science
> University of Stellenbosch / South Africa
> phone: +27-82-7449880




Re: jar

1998-11-17 Thread Michael Sinz

On Tue, 17 Nov 1998 13:07:03 -0500 (EST), [EMAIL PROTECTED] wrote:

>
>Is anyone else experiencing trouble with jar?
>
>When I run jar -t jarfile.jar
>
>it just hangs...
>
>I've tried it on more than one jar file

Well, you need to use

jar -tf jarfile.jar

Doing just "jar -t" will tell jar to read stdin for the
jar file itself - such as:

cat jarfile.jar | jar -t


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




Seg Faults

1998-11-17 Thread Dale G. Herrig

I submitted a bug, 289 that was similar to a few
others but different, in that I tried 
renaming/removing libraries and I still get
a Seg Fault when doing javac.  My question is,
is anything being done on fixing this or coming
up with a work around.

Thanks.



RE: Retrieving a fully qualified hostname under NT

1998-11-17 Thread dmarsh

Oops I pressed Control-S for Send... darn it

(windowsdir)\LMHOSTS. The file on NT is not specified and you MUST point to
it through the IP setup screens. The normal location for it is
(winntdir)\system32\drivers\etc\lmhosts (which is where the other Unix like
files are also, hosts, services, protocols, etc.).

Add an entry for your IP address(s) with the FQDN to your ...\etc\hosts
under NT and the resolution should return what you expect until Unix
(linux)...


134.56.78.90  myhost.mydomain.myorg  myshortname


The first and second column are required (IP and FQDN) any addition will be
used for "short" alternative names. I use this some times.. Good example
would be

12.13.14.15  www.really.long.stupid.name.and.really.boring.com  gohere

http://gohere works just as well as http://12.13.14.15  but is easier to
remember (since we like names and this whole name thing got started).


--Doug



Installing JDK on Linux Slackware

1998-11-17 Thread Mauricio de Oliveira Cristal

Hi,

I´m having a lot of problems installing JDK1.1.7 on Linux Slackware. Is it
really possible? If not, anybody know a version of JDK for Slackware.

The compiler simply creates a core for the compilation for the
HelloWorld.java example.

Thank you.

Mauricio Cristal



Re: Basic installation. Please Help.

1998-11-17 Thread Mario Camou

What does it use, then?

-Mario.

[EMAIL PROTECTED] wrote:

> > I do hope someone comes up with a better idea than classpath RSN: mine runs
> > to well over 2K.
>
> 1.2 does not use classpath, praise be.
>
> M.



Re: jar

1998-11-17 Thread vipin agrawal


You might need to specify the f option also as in -
jar -tvf jarfile.jar
vipin
[EMAIL PROTECTED] wrote:
Is anyone else experiencing trouble with jar?
When I run jar -t jarfile.jar
it just hangs...
I've tried it on more than one jar file
__m
--
 
 



Re: Basic installation. Please Help.

1998-11-17 Thread mlorton




Re: Basic installation. Please Help.

1998-11-17 Thread mlorton


My understanding is that all jars found in a certain directory are
used.  I suppose the idea is you symbolically link your jars to there.

M.


> From: Mario Camou <[EMAIL PROTECTED]>
> CC: [EMAIL PROTECTED]
> Subject: Re: Basic installation. Please Help.
> 
> What does it use, then?
> 
> -Mario.
> 
> [EMAIL PROTECTED] wrote:
> 
> > > I do hope someone comes up with a better idea than classpath RSN: mine runs
> > > to well over 2K.
> >
> > 1.2 does not use classpath, praise be.
> >
> > M.
> 
> 



Servlets/Apache/Linux: works fine (HowTo install)

1998-11-17 Thread Marcel Ruff


Hi,
we use the Apache/Servlet, no problems with it.
Here some hints how we installed it (not nice, but it works):
  Install Servlet Development Kit (needed by apache)
    http://java.sun.com/products/servlet/index.html
    Download -> /usr/local/jsdk20-solaris2-sparc.tar.Z
    uncompress jsdk20-solaris2-sparc.tar.Z
    tar xvf jsdk20-solaris2-sparc.tar
    ln -s JSDK2.0 jsdk
    cd /usr/local/jsdk/lib
    mkdir classes
    cp jsdk.jar /usr/local/apache/classes
 
 
  apache installation on Redhat 5.1 Linux:
  www.apache.org/java: download jserv0.9.11.tar.gz
  www.apache.org: download apache_1.3.3.tar.gz
    cd /usr/local
    tar zxvf jserv0.9.11.tar.gz
    tar zxvf apache_1.3.3.tar.gz
    cd jserv0.9.11
    make
    cp mod_jserv.c ../apache_1.3.3/src/modules/extra/
    /usr/local/apache_1.3.3
    vi src/Configuration.tmpl
  add line:
  -> AddModule modules/extra/mod_jserv.o
    ./configure --prefix=/usr/local/apache
    make
    setenv JSERV_PATH /usr/local/jserv
    setenv CLASSPATH ${CLASSPATH}:$JSERV_PATH/servclasses.zip:$JSERV_PATH/src
    As root:
  make install
  Edit:    /usr/local/apache/etc/{httpd,access,srm}.conf
   in httpd.conf add lines:
  Options +ExecCGI
  ServletBinary /usr/local/jdk/bin/java
  ServletClassPath /usr/local/apache/classes/classes.zip
  ServletClassPath /usr/local/apache/classes/jsdk.jar
  
  #Log path relative to server root
  ServletErrorLog /usr/local/apache/servlet.log
  #Internal communications port for Servlet<->Apache comms
  ServletPort 9091
  ServletProperties ./etc/servlet.properties
  ServletAlias /servlets /usr/local/apache/share/servlets/
 
  in access.conf add:
  
  AllowOverride None
  Options +ExecCGI
  
 
  
  AllowOverride None
  Options +ExecCGI
  
  in srm.conf add:
  DocumentRoot /usr/local/apache/share
 
  # Uncomment the following line to enable Apache's Servlet operation
  AddHandler java-servlet .class
 
 cp /usr/local/jserv/servlet.properties /usr/local/apache/etc/servlet.properties:
 servlets.default.initArgs=DefaultTemplDir=/usr/local/apache/share/templates/
 
 mkdir -p /usr/local/apache/share/servlets
 -> insert your servlets
 cd /usr/local/apache/sbin; ./apachectl restart
 
 check log files:
   cd /usr/local/apache/var/log;  tail -f error_log; 
tail -f access_log
   cd /usr/local/apache; tail -f servlet.log
 
 
Marcel
-- 
Marcel Ruff
[EMAIL PROTECTED]
http://www.lake.de/home/lake/swand/
 


JDK1.1.7v1a And AfterStep

1998-11-17 Thread Armen Yampolsky

The x86 jdk1.1.7v1a, when used with AfterStep 1.5, behaves incorrectly
when setting com.sun.java.swing.JDialog's setResizeable(false) on my
system. If anyone has AfterStep, could you confirm/deny? The symptom is
a huge grey JDialog. Calling an explicit setSize() fixes the problem,
but this is undesired, as a simple pack() should display the correctly
sized window.

My system: Linux 2.0.34 (from RedHat 5.1), Steve Byrne's jdk117v1a, with
either THREADS_FLAG native or not. Glibc versions all.

Cheers,
-A.

--
Armen Yampolsky
Axiom Software Labs
New York





Re: Basic installation. Please Help.

1998-11-17 Thread Mario Camou

Hmmm... More or less what I do now, in my .cshrc I have a loop that adds all the
.jar's in my $HOME/java/jars directory to my CLASSPATH.

Sounds cool!

-Mario.

[EMAIL PROTECTED] wrote:

> My understanding is that all jars found in a certain directory are
> used.  I suppose the idea is you symbolically link your jars to there.
>
> M.
>
> > From: Mario Camou <[EMAIL PROTECTED]>
> > CC: [EMAIL PROTECTED]
> > Subject: Re: Basic installation. Please Help.
> >
> > What does it use, then?
> >
> > -Mario.
> >
> > [EMAIL PROTECTED] wrote:
> >
> > > > I do hope someone comes up with a better idea than classpath RSN: mine runs
> > > > to well over 2K.
> > >
> > > 1.2 does not use classpath, praise be.
> > >
> > > M.
> >
> >



Re: Installing JDK on Linux Slackware

1998-11-17 Thread Dustin Lang


Hi,

> I´m having a lot of problems installing JDK1.1.7 on Linux Slackware. Is it
> really possible? If not, anybody know a version of JDK for Slackware.

I've set it up on two slackware systems with version 1.1.6.  In both cases
they worked perfectly right out of the box.  I think this is more a result
of luck than any particular sysadmin skill on my part.

The first one is my work computer.  It is kernel version 2.0.27 (yes, I
know, ancient).  It has libc5.4.44 and ld.so -> ld-linux.so.1.8.2.  It
also has a whole whack of other stuff.  Those are the suggested library
versions at java.blackdown.org.

The second is my home computer.  Kernel 2.0.34, and stock slackware 3.5
libs.  It has about half a whack of other stuff.

I've also used some other versions (1.1.5?  Can't recall), never with
problems.

Make sure you have the libc5 version of the JDK and NOT the glibc.  The
java compiler is just a wrapper to the java program, so your problem is
likely with java itself and not just the compiler.

Good luck,
dstn.




BDK

1998-11-17 Thread John Summerfield

Some time ago I downloaded BDK from Sun: it's a little while ago, but I
seem to recall three choices:win32, Solaris, and "run anywhere."

Run Anywhere makes sense to me (I run linux, OS/2 and NT) and i thought I
had that version.

What I really have is a file called BDKJul98.bin and which includes a shell
script for Solaris (was I really so stupid?) (a really tricky shell script)
that picks bits out of the rest of the file, including JRE for Solaris. It
then uses the jre to run the installer.

Havin thought about it for a while I hit on the idea of extracting the
script and fixing it: it sets the path, uses absolute paths to where
programs such as tail, dd etc live on Solaris (not the same as on Linux)
and using my Linux jre to run the installer.

After a couple of false starts I got into the installer, but then i saw
1  A blank licence (easy to agree with that)
2  blank "important information" (that's cool, can't be any).
3  Telling the installer where to install is decidedly tricky: I can't read
where it thinks it's installing.

I do see a few (quite a few) of these:
Warning: 
Name: textfield
Class: XmTextField
Character '/' not supported in font.  Discarded.

Warning: 
Name: textfield
Class: XmTextField
Character 'u' not supported in font.  Discarded.

Warning: 
Name: textfield
Class: XmTextField
Character '/' not supported in font.  Discarded.

Cute. What do I do now? While you folk are laughing yourselves silly at my
stupidity, I'm going back to have another look at sun just in case.

If sun's not the best place to get BDK, then where?

Oh yes, I'll attach my fixed script just in case someone finds it useful:
hasn't done me any good yet.


Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.


#!/bin/sh

ARCHSIZE=1625742
JRESIZE=2586013
ARCHANDJRESIZE=4211755
BDK=/u/summer/BDKJul98.bin

#d17

echo "InstallAnywhere is preparing to install..."

PPWD=`pwd`

if [ -x /tmp ] ; then
INSTBASE=/tmp/
else
INSTBASE=./
fi

cd $INSTBASE
mkdir install.dir.$$
cd install.dir.$$
mkdir Solaris
cd Solaris
mkdir resource
cd resource

cd "$PPWD"

jreTCname="$INSTBASE"jre115req.tar.Z
jreTname="$INSTBASE"jre115req.tar
jrejavahome="$INSTBASE"jre1.1.5

JRESIZEPARAM=-"$JRESIZE"c

 blah=`tail $JRESIZEPARAM "$BDK" > $jreTCname` || \
{
   echo "Can't run tail; cannot install."
   exit 1
   }

if [ -x /usr/bin/cksum ] ; then
cksum=`/usr/bin/cksum $jreTCname`
index=1
for s in $cksum
   do
 case $index in
 1)  thesum=$s;
 index=2;
 ;;
 2)  thesize=$s;
 index=3;
 ;;
  esac
   done

if expr $thesize != $JRESIZE ; then
echo ""
echo "The download file appears to be corrupted.  Please try"
echo "to download again, and make sure you are using 'binary' mode."
echo ""
echo "Please do not attempt to install this archive file."
exit 2
fi
fi

cd "$INSTBASE"install.dir.$$/Solaris/resource

blah=`/usr/bin/uncompress $jreTCname` || \
   {
echo "Can't run uncompress; cannot install."
exit 3
   }

blah=`tar xvpf $jreTname` || \
   {
echo "Can't run tar; cannot install."
exit 4
   }

rm -f $jreTCname $jreTname ;

cd "$INSTBASE"install.dir.$$
mkdir InstallerData

cd "$PPWD"

archname="$INSTBASE"install.dir.$$/InstallerData/Installer+JRE.zip

ARCHANDJRESIZEPARAM=-"$ARCHANDJRESIZE"c

blah=`tail $ARCHANDJRESIZEPARAM "$BDK" > $archname` || \
   {
echo "Can't run tail; cannot install."
exit 5
   }

cd "$INSTBASE"install.dir.$$/InstallerData

blah=`/bin/dd if=Installer+JRE.zip of=Installer.zip bs=$ARCHSIZE count=1 ` || \
   {
echo "Can't run dd; cannot install."
exit 6
   }

rm Installer+JRE.zip

cd "$INSTBASE"install.dir.$$

CLSPTH=InstallerData:InstallerData/Installer.zip:Solaris/resource/jre/lib/rt.jar
jre -classpath $CLSPTH com.zerog.ia.installer.Main

cd $INSTBASE
rm -rf install.dir.$$

exit 0




Re: Basic installation. Please Help.

1998-11-17 Thread John Summerfield

On Tue, 17 Nov 1998, Pavel Tolkachev wrote:

> > IMO, the cross-platform capabilities of java are seriously hurt by all the hoops
> > that end-users have to jump through (setting up classpaths, .sh/.bat files, etc)
> > just to get someone elses application to run. Admittedly, java installshield and
> > the like do do a good job of setting this stuff up, but a more general (and built
> > in) solution is required.
> > 
> >   [ bryce ]
> According the Sun (unfortunately I do not remember URL) the 'preferred'
> way to specify classpath is do not set CLASSPATH environment variable at
> all (namely because it is not portable) but to use -cp and -classpath
> for jre start (apparently -classspath is for 'everywhere used' packages
> like Swing, probably JGL and jpython) and -cp for the application
> classpath itself and other its specific packages. Anyway you will
> usually have non-portable scripts to start applications... probably
> concatenating command line from other environment variables not
> deprecated by Sun like SWING_RELEASE_PATH :). For development (where we
> need to use java instead of jre) all should be put in -classpath, I
> beleive.

My 2K CLASSPATH is a problem in itself: I did a bit of creative scripting
to do it, and had do do the same thing on OS/2 (the OS/2 commndline can't
be that long before substitutions)

Worse, though, is the time Java spends searching through all the
directories, jars and zips (and those zips causes some confusion to the
script - some contain source, not classes).

If I developed in C++ on OS/2 using OS/2's Visual Age C++, I would have
tools to repackage and redistribute necessary DLLs. If I use all the bits
of java I have here (and it's all free), and I create something roughly
equivalent to hotjava using the POP3, SMTP & FTP bts I got from IBM, Swing
1.1, collections 1.1 (SUN) then my distribution's getting cumbersome and may
not perform well either on some platforms, at least during startup.

Worse yet, an applet version might be truly appalling, at least to users on
the wrong side of a modem.


Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



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 setMnemonic
and this works.  When I attach keystrokes via setMnemonic() to top level
JMenu, however, the keystroke doesn't work, even though the mnemonicized
keystroke does appear in the Menu onscreen.  That's under redhat 5.0.
If I take the program and run it on Win95 then the key stroke access
does work.  What's going on here?

2)  Is there any way to change the colors of the arrow buttons and thumb
in a JScrollBar? I can change everything but that and with the colors
I've chosen, they look really stupid.  I realize that this probably
violates the whole look and feel idea which is so prevalent in Swing,
but there ought to be some way to get at these things.



Re: BDK

1998-11-17 Thread John Summerfield

On Wed, 18 Nov 1998, John Summerfield wrote:

> What I really have is a file called BDKJul98.bin and which includes a shell

Laugh on. I now see a file called BDKJul98.zip which is smaller and
(presumambly) really will run anywhere.

Now, if someone can stand up, salute their national flag and say "It's
Sun's fault," we can all laugh them. I suppose it won't happen.

Now. where did I put the

Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



Re: Retract stupid question about linux-java - a permission issue

1998-11-17 Thread Michael Beattie

On Tue, 17 Nov 1998, Chip Grandits wrote:

> A.P. Bell wrote:
> 
> > Don't know much about Java.  You should temporarily change the permissions on
> > /dev/audio and /dev/dsp to 666 and run your applet -- to ensure that your setuid
> > trick has worked.  Also, a method such as play() is likely overriden and so an
> > alternative method like play(,...) will likely exist.
> >
> > Again, I don't know anything, just trying to give you some feedback because no
> > one else has thus far.
> >
> > Regards,
> > Andrew Bell
> 
>  I feel pretty stupid, your idea in fact worked!  I guess I've never been bitten by
> a permission
> snafu enough to go right to the beginning.  It's funny how people have to tell you
> the obvious
> routes to try.
> 
> To be honest  I must not really understand permission
> the application appletviewer, which comes with a jdk is really a symlink to a file
> called
> .java_wrapper
> # ls -l .java_wrapper
> -r-sr-xr-x1rootroot3462Jun 19 01:36.java_wrapper
> I assumed the 's' in the owner's 'x' spot meant that this executable would execute
> with
> the owner's (i.e. root's) permission.  But this wouldn't work until I changed
> /dev/audio to
> chmod 666. (previously it was 660).  I guess I don't fully understand.
> Maybe it's something like .java_wrapper invokes a library, and the library has to
> have the
> permission??  Or that 's' doesn't really mean what I think it means??
> 
> Much Thanks,
> I guess until I figure it I'll live 'dangerously' with /dev/audio at chmod 666.


My /dev/audio is 660:
crw-rw   1 root audio 14,   4 May 28  1997 /dev/audio

Then all users that use sound are added to group audio.


   Michael Beattie ([EMAIL PROTECTED])

   PGP Key available, reply with "pgpkey" as subject.
 -
   "Bother," said Pooh, as he fell into the liquid iron ore crucible
 -
Debian GNU/Linux  Ooohh You are missing out!