quick one

1999-05-06 Thread Clayton Cottingham


is there a way to run netscape with java if you have the jdk 1.2
installed

i keep getting add java40.jar to my classpath, when i do that it dont
work

i i want to use netscape with java do i have to keep running jdk1.1.X?

im using stampede, glibc and kernel 2.2.6


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



Re: quick one

1999-05-06 Thread papiraki



On Thu, 6 May 1999, Clayton Cottingham wrote:

> 
> is there a way to run netscape with java if you have the jdk 1.2
> installed
> 
> i keep getting add java40.jar to my classpath, when i do that it dont
> work
> 
> i i want to use netscape with java do i have to keep running jdk1.1.X?
> 
> im using stampede, glibc and kernel 2.2.6
> 
> 
> -

As a matter of fact, I had a few problems with netscape and java.
The thing is, that netscape will complain if there is anything else but
java40.jar in your classpath (because of classes.zip that contains
diffrent versions of the same classes).

Try only havoing java40.jar in it, and add other classes and
archives one by one. You should also use a script to start up netscape.
This script will just set the Classpath, then start netscape.

Since a script is ran in a subshell, it will not affect any other
processes that use java


Papi



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



Re: quick one

1999-05-06 Thread Oliver Fels

> is there a way to run netscape with java if you have the jdk 1.2
> installed
> 
> i keep getting add java40.jar to my classpath, when i do that it dont
> work
> 
> i i want to use netscape with java do i have to keep running jdk1.1.X?
> 
> im using stampede, glibc and kernel 2.2.6

No browser (besides HotSpot 3.0) is capable of running JRE 1.2, 
neither does Netscape. Period.
Windows and Solaris users have the JAVA plugin, we dont (yet).
So you have to stick with JDK 1.1.7 using Netscape Navigator.

Oliver
___
Oliver Fels| e-mail: 
Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
Team Manager JAVA-/IT-Security | 
Friedrichshafen, Germany   | 
---


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



A little help

1999-05-06 Thread Mario Jorge Nunes Filipe

Hi

I'm trully a newbie to Java. I've been reading the Java tutorial
available at java.sun.com but i need to make a quick presentation of a
small applet and I need a little beet of help. If you point me in the
direction of specifics docs i will appreciate equally, waht i need are
just examples.

My applet needs to present a jtree with rootVisible=false. THe children
might not exist, but if they do they will be retrieved thorugh JDBC
(This is not important). I would like to use the JTree constructor that
accepts an array of objects so that it wouldn't show the root node.

The question is :

(i feal really stupid about asking this, but i really need it) How do I
create the array of objects ? Let's say i have a tree structrure like
this:

Child1
  Grandcilhd1
GrandGrandchild1
  Grandchil2
Child2
Child3

Can you please help me? Thanks

P.S.: How do I create a empty  array of objects. Thanks
-- 
Mario Filipe 
[EMAIL PROTECTED]
http://neptuno.sc.uevora.pt/~mjnf


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



CLASSPATH problem unresolved

1999-05-06 Thread Claude

hello,

I have a problem by making some programs runs on Java for Linux (I have
the jdk1.1.7 and glibc, with SuSE Linux 6.0 (KDE)).
I have seen in the mail archive that there are very often some
informations about the way the CLASSPATH must function, it has been very
usefull for me, but in spite of these explanations, I haven't been able
to make run my programs. I get 'can't find class org.w3c.rdf.SiRPAC' or
'unable to initialize threads'.

I want to run the SiRPAC class that is in the directory
$JAVA_HOME/lib/org/w3c/rdf/.
when I type the java execution commant, I'm in $JAVA_HOME/lib.
I have tryed the following things and traced the execution of the
.java_wrapper script:

1) java org.w3c.rdf.SiRPAC
-> the classes.zip is found but the result is 'can't find class
org.w3c...'
that's ok, the path to this class is not given

2) java -classpath $CLASSPATH org.w3c.rdf.SiRPAC with a CLASSPATH
containing .:$JAVA_HOME/lib/classes.zip:/$JAVA_HOME/lib/org
-> the classes.zip is found but the result is 'can't find class
org.w3c...'

3) i have tryed also to change the .java_wrapper and put the directory
$JAVA_HOME/lib/org in the CLASSPATH of this script, but it still don't
work.

I really don't know what to do, I have tryed really a lot of things
without success.
What do you think it could be.

thank you

Claude Le Berre


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



Re: My turn to ask.... :)

1999-05-06 Thread Paul Gangwisch

Ted Neward wrote:
> 
> I've got a problem running JDK 1.2v1 on my RedHat 5.2 install, but only AWT
> stuff. I know this has crossed this forum before, but I'm kinda asking for
> somebody to hold my hand on this and walk me through what I need to do to
> make this work.
> 
> I'm trying to run the Notepad sample from the demos/jfc directory. Error I
> get back is:
> 
> uncaught exception: java.lang.UnsatisfiedLinkError:
> /usr/jdk1.2/jre/lib/i386/lib
> fontmanager.so: libstdc++-libc6.0-1.so.2: cannot open shared object file:
> No such file or directory
> java.lang.UnsatisfiedLinkError: /usr/jdk1.2/jre/lib/i386/libfontmanager.so:
> libstdc++-libc6.0-1.so.2: cannot open shared object file: No such file or
> directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(Compiled Code)
> at java.lang.ClassLoader.loadLibrary(Compiled Code)
> at java.lang.Runtime.loadLibrary0(Compiled Code)
> at java.lang.System.loadLibrary(Compiled Code)
> at sun.security.action.LoadLibraryAction.run(Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.awt.font.NativeFontWrapper.(NativeFontWrapper.java:41)
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:61)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Compiled Code)
> at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Compiled Code)
> at java.awt.Font.initializeFont(Compiled Code)
> at java.awt.Font.(Compiled Code)
> at javax.swing.plaf.metal.DefaultMetalTheme.(Compiled Code)
> at
> javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(Compiled Code)
> at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Compiled Code)
> at javax.swing.UIManager.setLookAndFeel(Compiled Code)
> at javax.swing.UIManager.setLookAndFeel(Compiled Code)
> at javax.swing.UIManager.initializeDefaultLAF(Compiled Code)
> at javax.swing.UIManager.initialize(Compiled Code)
> at javax.swing.UIManager.maybeInitialize(Compiled Code)
> at javax.swing.UIManager.getUI(Compiled Code)
> at javax.swing.JPanel.updateUI(Compiled Code)
> at javax.swing.JPanel.(Compiled Code)
> at javax.swing.JPanel.(Compiled Code)
> at javax.swing.JRootPane.createGlassPane(Compiled Code)
> at javax.swing.JRootPane.(Compiled Code)
> at javax.swing.JFrame.createRootPane(Compiled Code)
> at javax.swing.JFrame.frameInit(Compiled Code)
> at javax.swing.JFrame.(Compiled Code)
> at Notepad.main(Compiled Code)
> 
> Obviously, it's the top line that's causing the problem--where do I
> find/build the "libstdc++-libc6.0-1.so.2" file? I've used Linux before
> (back in the 0.99pl13 days), but not recently; I've used g++ before, but
> not since 2.6.x something. (I'm a little out of date with Linux these days.)
> 
> I know Joe Burks posted a fix on how to get this to work, but it didn't
> work for me; I'm sure it's some Linux-configuration thing that's keeping me
> down. Help?
> 
> Oh, and off-topic: Does anybody have a good reference on Linux shared libs
> these days? It's changed significantly since I last dabbled in Linux-C/C++
> development.
> Ted Neward
> Dorado Software
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
You simply need to get a copy of the libstdc++etc. on your system.  The
docs distributed with JDK1.2 describe that it was built using a Debian
system, and that it may not work for you if your binary environment is
very different from this.  Go to the Debian site and download the latest
version of their libstdc++ package.  Then unpack it using undeb if you
need to, and copy the libraries from the usr/lib subtree which is
created to your usr/lib.  That should take care of this error.
-- 
Paul Gangwisch
[EMAIL PROTECTED]


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



After RedHat 6.0 Install, JDK Error !!!

1999-05-06 Thread Info of Lee

 Hi !   I'm subscribe today !! and now !!!

 Shall be happy java linxer 

  I have a big question !  

 I installed RedHat 6.0 ,   

 And then  My JDK-1.1.7 (glibc version) is Not execute !

 Error message is below

 /jdk/bin/i586/green_threads/java: error in loading shared libraries: 
 
 /jdk/lib/i586/green_threads/libjava.so: undefined symbol:
_dl_symbol_value

 I guess lib problem !

 My linux uses  glibc-2.1.1-6, kernel-2.2.5-15 ( RedHat 6.0 ) !

 ---

 Thank everybody  !



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



Re: A little help

1999-05-06 Thread Mario Jorge Nunes Filipe

Pavel Tolkachev wrote:
> 
> Hello Mario,
> 
> Try to use this code snippet:
> 
> // -cut here--
> import javax.swing.JTree;
> import javax.swing.tree.DefaultMutableTreeNode;
> import javax.swing.tree.DefaultTreeModel;
> ...
> DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
> DefaultMutableTreeNode c1 = new DefaultMutableTreeNode("Child1");
> DefaultMutableTreeNode c2 = new DefaultMutableTreeNode("Child2");
> DefaultMutableTreeNode gc1 = new DefaultMutableTreeNode("Grandchild1");
> DefaultMutableTreeNode gc2 = new DefaultMutableTreeNode("Grandchild2");
> DefaultMutableTreeNode ggc1 = new
> DefaultMutableTreeNode("GrandGrandChild1");
> DefaultMutableTreeNode c3 = new DefaultMutableTreeNode("Child3");
> 
> root.add(c1);
> root.add(c2);
> root.add(c3);
> c1.add(gc1);
> c1.add(gc2);
> gc1.add(ggc1);
> 
> DefaultTreeModel model = DefaultTreeModel(root);
> 
> JTree tree = new JTree(model);
> ...
> // -cut here--
> 
> This is just the idea (to give you some starting point). To make
> applets, you have to provide the availability of Swing to the target
> browser somehow. Anyway to make something useful with JTree you will
> *have* to read the documentation and to do many experiments. Tutorial is
> the good starting point.

Hi Pavel

thanks for your help but now I have a different problem (actually
sumething i had already faced before). Watch this:

13:38:01$ javac teste.java
teste.java:42: Method
DefaultTreeModel(javax.swing.tree.DefaultMutableTreeNode) not found in
class teste.
DefaultTreeModel model = DefaultTreeModel(root);
 ^
1 error

I'm using the swingall.jar wich came with netbeans 2.1. Is there a
better one? Where ?

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


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



Re: A little help

1999-05-06 Thread Mario Jorge Nunes Filipe

Nobby Knox wrote:
> 
> Hi Mario.
> 
> I'm also new to Java and Netbeans, but I have experienced the same
> problem you mentioned here. Let me explain.
> 
> Netbeans (I'm using NetbeansX2) creates your application/applets in
> "packages". Have a look at the top of your code. Do you see the line
> "package "? If so, that's your problem.
> 
> To solve this is very, very simple. Either remove the "package" line
> from all your code (not always desirable), or you can just move one
> directory up and compile prefixing the package name to your .java file.
> Here is an example:
> 
> This causes an error:
> 
> javac teste.java
> 
> To solve (with package  - look at the top of your code):
> 
> cd ..
> javac .teste.java
> 
> That should do it. If this doesn't help, let me know what is going wrong
> and I try to help again. Remember that you need to take the same
> approach when running your applications.

I'm not using Netbeans, i'm just using the swing classes that came with
it.

The funny part is that i'm importing javax.swing.tree.DefaultTreeModel
so that should work.

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


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



Re: quick one

1999-05-06 Thread Christopher Hinds

> No browser (besides HotSpot 3.0) is capable of running JRE 1.2, <

HotSpot 3.0 ? I think you mean HotJava 3.0 , BTW Hotspot is not a browser
it's an *advanced* JVM recently released by Sun as HotSpot 1.0 .
Cheers
Chris

Oliver Fels wrote:

> > is there a way to run netscape with java if you have the jdk 1.2
> > installed
> >
> > i keep getting add java40.jar to my classpath, when i do that it dont
> > work
> >
> > i i want to use netscape with java do i have to keep running jdk1.1.X?
> >
> > im using stampede, glibc and kernel 2.2.6
>
> No browser (besides HotSpot 3.0) is capable of running JRE 1.2,
> neither does Netscape. Period.
> Windows and Solaris users have the JAVA plugin, we dont (yet).
> So you have to stick with JDK 1.1.7 using Netscape Navigator.
>
> Oliver
> ___
> Oliver Fels| e-mail:
> Neurotec Hochtechnologie GmbH  | [EMAIL PROTECTED]
> Team Manager JAVA-/IT-Security |
> Friedrichshafen, Germany   |
> ---
>
> --
> 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]



Possible to add a horizontal scrollbar

1999-05-06 Thread Zhichao Hong

Hi 

Is it possible to create a horziontal scrollbar in a JComboBox?  Any idea
and
help will be much appreciated!

Zhichao

  
||   
| Zhichao Hong   |   
| Sun Certified Java Programmer (612) 694-2557  (o)  |
| Software Engineer (651) 647-6137  (h)  |  
| CES, Inc  [EMAIL PROTECTED]   |   
 _  ||  _
/ ) |   STAY IN TOUCH| ( \   
  _( (_ |  _  _  | _) )_ 
 (((\ \)|_/ )( \_|(/ /)))
   \_/ /  \ \_/  
   \  /\  /  
\   _/  \_   /   
/__/  \__\


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



Running the JCK?

1999-05-06 Thread Stephen Drye

I have a port of JDK 1.1.7b to Linux/ARM that I am working on (with much
help from Scott Hutinger).  I've managed to get it past the "building"
phase, so now I want to run the JCK against it to help identify what
needs debugged.

Can anyone give me some tips on running the JCK in batch or slave mode? 
The JDK doesn't run long enough to host the AWT form of the JCK.

Thanks,

Stephen Drye
Ericsson, Inc.


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



HotJava (was Re: quick one)

1999-05-06 Thread Oliver Fels

At Thu, 06 May 1999 Christopher Hinds wrote:
>> No browser (besides HotSpot 3.0) is capable of running JRE 1.2, <
>
>HotSpot 3.0 ? I think you mean HotJava 3.0 , BTW Hotspot is not a browser
>it's an *advanced* JVM recently released by Sun as HotSpot 1.0 .

Sorry, I have been sitting around here in a box with HotSpot and HotJava
alltogether the whole day, dont wonder if I get confused at all... ;)
Of course, HotJava 3.0 is meant, which is also available in an (though
unsupported) Linux version (which doesnt matter as it is a pure JAVA
implementation).

Oliver


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



Re: CLASSPATH problem unresolved

1999-05-06 Thread Gordon Chamberlin

Claude,

Try this:
unset CLASSPATH
java -classpath $JAVA_HOME/lib/classes.zip:$JAVA_HOME/lib
org.w3c.rdf.SiRPAC 

I don't think that you need $JAVA_HOME/lib/org, just $JAVA_HOME/lib
so that the JVM can then fine org.w3c...

You shouldn't need the '.' in your classpath, unless there are 
additional classes that you are trying to execute, after SiRPAC is 
running.

In general it's best to avoid setting CLASSPATH.  I do it myself but
I've read that you should never have the CLASSPATH environment 
variable set.

Make sure that the org/w3c/... dirs and class files are readable by
the user you are using to execute.
Let me know if that works for you,
 -Gordon

Claude wrote:
> 
> hello,
> 
> I have a problem by making some programs runs on Java for Linux (I have
> the jdk1.1.7 and glibc, with SuSE Linux 6.0 (KDE)).
> I have seen in the mail archive that there are very often some
> informations about the way the CLASSPATH must function, it has been very
> usefull for me, but in spite of these explanations, I haven't been able
> to make run my programs. I get 'can't find class org.w3c.rdf.SiRPAC' or
> 'unable to initialize threads'.
> 
> I want to run the SiRPAC class that is in the directory
> $JAVA_HOME/lib/org/w3c/rdf/.
> when I type the java execution commant, I'm in $JAVA_HOME/lib.
> I have tryed the following things and traced the execution of the
> .java_wrapper script:
> 
> 1) java org.w3c.rdf.SiRPAC
> -> the classes.zip is found but the result is 'can't find class
> org.w3c...'
> that's ok, the path to this class is not given
> 
> 2) java -classpath $CLASSPATH org.w3c.rdf.SiRPAC with a CLASSPATH
> containing .:$JAVA_HOME/lib/classes.zip:/$JAVA_HOME/lib/org
> -> the classes.zip is found but the result is 'can't find class
> org.w3c...'
> 
> 3) i have tryed also to change the .java_wrapper and put the directory
> $JAVA_HOME/lib/org in the CLASSPATH of this script, but it still don't
> work.
> 
> I really don't know what to do, I have tryed really a lot of things
> without success.
> What do you think it could be.
> 
> thank you
> 
> Claude Le Berre
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
  Gordon Chamberlin Software Architect
  Visualize, Inc.   http://www.visualizetech.com
  (602) 861-0999 ext. 14[EMAIL PROTECTED]


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



(no subject)

1999-05-06 Thread Timothy Kelm




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



Re: CLASSPATH problem unresolved

1999-05-06 Thread Michael Sinz

On Thu, 06 May 1999 08:25:47 -0700, Gordon Chamberlin wrote:

>Claude,
>
>Try this:
>unset CLASSPATH
>java -classpath $JAVA_HOME/lib/classes.zip:$JAVA_HOME/lib
>org.w3c.rdf.SiRPAC 

Note:  When using -classpath the 1.1.x systems will not add anything
to them.  -classpath *replaces* the classpath.

>Claude wrote:
>> 
>> hello,
>> 
>> I have a problem by making some programs runs on Java for Linux (I have
>> the jdk1.1.7 and glibc, with SuSE Linux 6.0 (KDE)).
>> I have seen in the mail archive that there are very often some
>> informations about the way the CLASSPATH must function, it has been very
>> usefull for me, but in spite of these explanations, I haven't been able
>> to make run my programs. I get 'can't find class org.w3c.rdf.SiRPAC' or
>> 'unable to initialize threads'.
>> 
>> I want to run the SiRPAC class that is in the directory
>> $JAVA_HOME/lib/org/w3c/rdf/.
>> when I type the java execution commant, I'm in $JAVA_HOME/lib.
>> I have tryed the following things and traced the execution of the
>> .java_wrapper script:
>> 
>> 1) java org.w3c.rdf.SiRPAC
>> -> the classes.zip is found but the result is 'can't find class
>> org.w3c...'
>> that's ok, the path to this class is not given
>> 
>> 2) java -classpath $CLASSPATH org.w3c.rdf.SiRPAC with a CLASSPATH
>> containing .:$JAVA_HOME/lib/classes.zip:/$JAVA_HOME/lib/org
>> -> the classes.zip is found but the result is 'can't find class
>> org.w3c...'

Well, the problem is that you have the CLASSPATH wrong here.  If org is
in the class name "org.w3c" then it should not be directly in
the classpath.

Since you have actually placed something into the JDK directories
you may wish to put the class tree in the $JAVA_HOME/classes directory
as this is automatically part of the CLASSPATH (unless you use -classpath
option)

>> 3) i have tryed also to change the .java_wrapper and put the directory
>> $JAVA_HOME/lib/org in the CLASSPATH of this script, but it still don't
>> work.

Again, you are pointing to the wrong place.  You would need $JAVA_HOME/lib
since the "org" part is part of the class names themselves.  Again,
if you are putting things into the JDK directory tree, do so in the
$JAVA_HOME/classes directory and the wrapper will automatically find
it.  (Too bad in JDK 1.1.x the was no place to drop jar files)


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



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



(Slightly) off topic: Piping output from std err to file

1999-05-06 Thread Chris Moolenschot

Something I've wondered for long enough now is how to pipe output from std
err to a file.

I would like to post the reams of error info produced by the JDK1.2pre-v1
without upping the console buffer. It's not the libstdc++ problem, and
similar things happen with the native/green threads jit/nojit options. (I
would also like to be able to catch the reams of exceptions my own programs
sometimes produce ;).

TIA,

Chris Moolenschot


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



Hotjava 3.0 - any luck?

1999-05-06 Thread Peter Schuller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've tried running it on Linux using JDK 1.1.6v5 (no JIT), 1.1.7v1a (w/ JIT and
w/o JIT) and JDK 1.2-pre1 w/ JIT.

No luck. Just a bunch of exceptions (I expected as much).

Has anyone had any luck running it? And if so, which JDK are you using?

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzG2NsBfJ1FVhL2YEQJ7ogCdGz1JO8+OIu717uqblHP/zgLzO74An0+T
SwBFffUd+xCU+CFR7nyaxtHR
=q6SO
-END PGP SIGNATURE-


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



Re: (Slightly) off topic: Piping output from std err to file

1999-05-06 Thread Gordon Chamberlin

Chris,

Use 'prg >& q.txt'.

 -Gordon

Chris Moolenschot wrote:
> 
> Something I've wondered for long enough now is how to pipe output from std
> err to a file.
> 
> I would like to post the reams of error info produced by the JDK1.2pre-v1
> without upping the console buffer. It's not the libstdc++ problem, and
> similar things happen with the native/green threads jit/nojit options. (I
> would also like to be able to catch the reams of exceptions my own programs
> sometimes produce ;).
> 
> TIA,
> 
> Chris Moolenschot
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
  Gordon Chamberlin Software Architect
  Visualize, Inc.   http://www.visualizetech.com
  (602) 861-0999 ext. 14[EMAIL PROTECTED]


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



Re: (Slightly) off topic: Piping output from std err to file

1999-05-06 Thread Cãtãlin CLIMOV

You mean you want to do this from a script/shell (something like java
2>error.log) or from a java application ?


În J , 06 MAI 1999 a scris Chris Moolenschot:
>Something I've wondered for long enough now is how to pipe output from std
>err to a file.
>
>I would like to post the reams of error info produced by the JDK1.2pre-v1
>without upping the console buffer. It's not the libstdc++ problem, and
>similar things happen with the native/green threads jit/nojit options. (I
>would also like to be able to catch the reams of exceptions my own programs
>sometimes produce ;).
>
>TIA,
>
>Chris Moolenschot
>
>
>--
>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: A little help

1999-05-06 Thread zun



On Thu, 6 May 1999, Mario Jorge Nunes Filipe wrote:

> 13:38:01$ javac teste.java
> teste.java:42: Method
> DefaultTreeModel(javax.swing.tree.DefaultMutableTreeNode) not found in
> class teste.
> DefaultTreeModel model = DefaultTreeModel(root);
>  ^
> 1 error

It should be:

DefaultTreeModel model = new DefaultTreeModel(root);
 ^^^

as you're creating an object there.

. . . Sean.



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



[Q] Can I get jdk-1.1.7va native thread using glinc 2.1 instead of 2.0 ?

1999-05-06 Thread NINJA

I'm currently updated my linux system with glibc based one and found
big problem in my Swing based JAVA program. It simply stops responding
when I open dialog and close it. Then the frame does not respond me and
is related, I think, glibc problem. When I preload included library it
simply does not work with message like " cannot find version information
needed by libXXX..."
So, the question is that wherer can I find glibc 2.1 based or compatible
jdk 1.1.7v1a with native thread ? I hope I can get this because it simply
faster than my previous green thread based 1.1.7v1a.

Thanks in advance.


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



Re: A little help

1999-05-06 Thread Mario Jorge Nunes Filipe

> 
> It should be:
> 
> DefaultTreeModel model = new DefaultTreeModel(root);
>  ^^^
> 
> as you're creating an object there.

100% Correct (Even I should have seen it)! Thanks people fo you help!

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


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



Re: (Slightly) off topic: Piping output from std err to file

1999-05-06 Thread Chris Moolenschot



You mean you want to do this from a script/shell (something like java
2>error.log) or from a java application ?

In a shell:

java MyClass > error.log

The only problem is that this pipes std out into err.log not std err ...


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



JARs and performance...

1999-05-06 Thread Robert Covell

Trying to optimize JAR performance.  We have a JAR that is 700K using
JDK1.1.7 and are looking for ways to improve the performance when using
it.  At this time we cannot migrate to Java2 and utilize the
JArURLConnection.  Does anyone have any suggestions?  We would like to
split the JAR into two JARs: 1 for GUI and one for CORE components but
have run into difficultly due JAR loading at the 1.1 level.  Additinoally,
we have looked into client side install with class date checking sort of a
Smart Update...

Any past experience in this area would be helpful...

-Bob


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



Re: Hotjava 3.0 - any luck?

1999-05-06 Thread paulsch



I've been running it the last couple months on JDK 1.1.7 (no jit) without any
problems..  I haven't tried the final release version though...  I'll grab it
and check it out

Paul Schroeder
Software Engineer
NCSD Division, IBM Corp
Office: 512-838-9675
Lab: 512-838-8305
[EMAIL PROTECTED]



Peter Schuller <[EMAIL PROTECTED]> on 05/06/99 10:53:58 AM

To:   [EMAIL PROTECTED]
cc:(bcc: Paul Schroeder/Austin/IBM)
Subject:  Hotjava 3.0 - any luck?





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've tried running it on Linux using JDK 1.1.6v5 (no JIT), 1.1.7v1a (w/ JIT and
w/o JIT) and JDK 1.2-pre1 w/ JIT.

No luck. Just a bunch of exceptions (I expected as much).

Has anyone had any luck running it? And if so, which JDK are you using?

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzG2NsBfJ1FVhL2YEQJ7ogCdGz1JO8+OIu717uqblHP/zgLzO74An0+T
SwBFffUd+xCU+CFR7nyaxtHR
=q6SO
-END PGP SIGNATURE-


--
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: (Slightly) off topic: Piping output from std err to file

1999-05-06 Thread Cãtãlin CLIMOV

Just like I said:
java MyClass 2>error.log
"2" stands for "stderr" in shell redirection, same as "1" is for "stdout" and
"0" for "stdin"
So if you want to put both System.out & System.err in the same log, you may use:
java MyClass 2>1 1>error.log
If u r interested in, I wrote a small class that replaces System.err and has
some useful features:
- writes everything from System.err to console, logfile, message dialog, or any
combination of these three.
- any time an uncaught exception occurs, it pops up a message dialog
(JOptionPane) showing the stack trace.
- notifies your application each time an uncaught exception occurs.

Cãtãlin.

Tu ai scris în J , 06 MAI 1999 :
>You mean you want to do this from a script/shell (something like java
>2>error.log) or from a java application ?
>
>In a shell:
>
>java MyClass > error.log
>
>The only problem is that this pipes std out into err.log not std err ...


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



Re: Hotjava 3.0 - any luck?

1999-05-06 Thread Denis Riedijk

On Thu, 06 May 1999, Peter Schuller wrote:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>I've tried running it on Linux using JDK 1.1.6v5 (no JIT), 1.1.7v1a (w/ JIT and
>w/o JIT) and JDK 1.2-pre1 w/ JIT.
>
>No luck. Just a bunch of exceptions (I expected as much).
>
>Has anyone had any luck running it? And if so, which JDK are you using?

I had luck with jdk117_v1a, that means, I could surf the web, but my Java
application that uses Swing did not work..

Dènis Riedijk


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



Re: Hotjava 3.0 - any luck?

1999-05-06 Thread paulsch



I went ahead and grabbed the release version and it works just fine for me...
Again jdk 1.1.7...  no jit...

Paul Schroeder
Software Engineer
NCSD Division, IBM Corp
Office: 512-838-9675
Lab: 512-838-8305
[EMAIL PROTECTED]



[EMAIL PROTECTED] on 05/06/99 11:19:47 AM

To:   Peter Schuller <[EMAIL PROTECTED]>
cc:   [EMAIL PROTECTED] (bcc: Paul Schroeder/Austin/IBM)
Subject:  Re: Hotjava 3.0 - any luck?







I've been running it the last couple months on JDK 1.1.7 (no jit) without any
problems..  I haven't tried the final release version though...  I'll grab it
and check it out

Paul Schroeder
Software Engineer
NCSD Division, IBM Corp
Office: 512-838-9675
Lab: 512-838-8305
[EMAIL PROTECTED]



Peter Schuller <[EMAIL PROTECTED]> on 05/06/99 10:53:58 AM

To:   [EMAIL PROTECTED]
cc:(bcc: Paul Schroeder/Austin/IBM)
Subject:  Hotjava 3.0 - any luck?





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've tried running it on Linux using JDK 1.1.6v5 (no JIT), 1.1.7v1a (w/ JIT and
w/o JIT) and JDK 1.2-pre1 w/ JIT.

No luck. Just a bunch of exceptions (I expected as much).

Has anyone had any luck running it? And if so, which JDK are you using?

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzG2NsBfJ1FVhL2YEQJ7ogCdGz1JO8+OIu717uqblHP/zgLzO74An0+T
SwBFffUd+xCU+CFR7nyaxtHR
=q6SO
-END PGP SIGNATURE-


--
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]





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



Re: Stream

1999-05-06 Thread Ted Neward

Use FileInputStream or FileOutputStream.

At 09:09 AM 5/6/99 +0200, Ozer Irfan wrote:
>Hello.
>How open a file for read/write ?
>
>Thanks
>
>Irfan
>
>
>--
>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: A little help

1999-05-06 Thread Ted Neward

Your import statement (in your teste code) must be wrong; otherwise, java
would pick it up.

To determine if its a CLASSPATH issue, try this:

javax.swing.tree.DefaultTreeModel model = new
javax.swing.tree.DefaultTreeModel(root);

That'll tell you if you left out the import, got the import wrong, or your
CLASSPATH is screwed up somehow. (Honestly, though, if the CLASSPATH were
screwed, you'd be getting a lot more errors than this one--I'm betting my
money on the import statement.)

At 01:42 PM 5/6/99 +0100, Mario Jorge Nunes Filipe wrote:
>Pavel Tolkachev wrote:
>> 
>> Hello Mario,
>> 
>> Try to use this code snippet:
>> 
>> // -cut here--
>> import javax.swing.JTree;
>> import javax.swing.tree.DefaultMutableTreeNode;
>> import javax.swing.tree.DefaultTreeModel;
>> ...
>> DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
>> DefaultMutableTreeNode c1 = new DefaultMutableTreeNode("Child1");
>> DefaultMutableTreeNode c2 = new DefaultMutableTreeNode("Child2");
>> DefaultMutableTreeNode gc1 = new DefaultMutableTreeNode("Grandchild1");
>> DefaultMutableTreeNode gc2 = new DefaultMutableTreeNode("Grandchild2");
>> DefaultMutableTreeNode ggc1 = new
>> DefaultMutableTreeNode("GrandGrandChild1");
>> DefaultMutableTreeNode c3 = new DefaultMutableTreeNode("Child3");
>> 
>> root.add(c1);
>> root.add(c2);
>> root.add(c3);
>> c1.add(gc1);
>> c1.add(gc2);
>> gc1.add(ggc1);
>> 
>> DefaultTreeModel model = DefaultTreeModel(root);
>> 
>> JTree tree = new JTree(model);
>> ...
>> // -cut here--
>> 
>> This is just the idea (to give you some starting point). To make
>> applets, you have to provide the availability of Swing to the target
>> browser somehow. Anyway to make something useful with JTree you will
>> *have* to read the documentation and to do many experiments. Tutorial is
>> the good starting point.
>
>   Hi Pavel
>
>   thanks for your help but now I have a different problem (actually
>sumething i had already faced before). Watch this:
>
>13:38:01$ javac teste.java
>teste.java:42: Method
>DefaultTreeModel(javax.swing.tree.DefaultMutableTreeNode) not found in
>class teste.
>DefaultTreeModel model = DefaultTreeModel(root);
> ^
>1 error
>
>I'm using the swingall.jar wich came with netbeans 2.1. Is there a
>better one? Where ?
>
>Thanks
>-- 
>Mario Filipe 
>[EMAIL PROTECTED]
>http://neptuno.sc.uevora.pt/~mjnf
>
>
>--
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


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



Re: JARs and performance...

1999-05-06 Thread Ted Neward

Robert--

>Trying to optimize JAR performance.  We have a JAR that is 700K using
>JDK1.1.7 and are looking for ways to improve the performance when using
>it.  At this time we cannot migrate to Java2 and utilize the
>JArURLConnection.  Does anyone have any suggestions?  We would like to
>split the JAR into two JARs: 1 for GUI and one for CORE components but
>have run into difficultly due JAR loading at the 1.1 level.  Additinoally,
>we have looked into client side install with class date checking sort of a
>Smart Update...
>
>From the context of what you're saying, I'm guessing that you're running a
Java application and not an applet on the client. What I can suggest is
that you write a custom ClassLoader that uses java.net.URL to connect to a
given web server, check dates (against the .jar in your local path),
download the .jar if necessary, then proceed with normal class loading
(which is probably your "SmartUpdate" idea in a nutshell).

Are your jars compressed? JDK 1.1 had a problem with compressed .jars, as I
recall, but I'm not 100% sure of that.

Alternatively, I don't see any reason why you couldn't pull the source for
URLClassLoader out of 1.2, put it into your own "java2" package, and use it
within java 1.1. You'd have to make a few source modifications to
adjust for the changed ClassLoader rules in 1.2, but that shouldn't be
rocket science.

>Any past experience in this area would be helpful...
>
I haven't done this precise thing, but I've done a lot of work with
ClassLoaders; I'll be happy to help as best I can.

Hope any of this rambling makes sense or helps out


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



Attendance at LinuxExpo?

1999-05-06 Thread Nathan Meyers

Is anyone in this crowd planning to attend the Linux Expo in Raleigh (May
18-22)? Any interest in a Java/Linux Birds-of-a-Feather session?

Nathan Meyers
[EMAIL PROTECTED]

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



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



Re: Possible to add a horizontal scrollbar

1999-05-06 Thread corey


> Hi 
> 
> Is it possible to create a horziontal scrollbar in a JComboBox?  Any idea
> and
> help will be much appreciated!

You can add your own cell renderer by using the setRenderer()
method on JComboBox(). Here is an example renderer:

import java.awt.*;
import javax.swing.*;

public class BasicListCellRenderer extends JTextField implements ListCellRenderer
{
public BasicListCellRenderer()
{
super(25);
setOpaque(true);
}

public Component getListCellRendererComponent(
JList   list,
Object  value,
int index,
boolean isSelected,
boolean cellHasFocus)
{
if(value == null)
return this;

setText(value.toString());
return this;
}
}


So instead of extending a JTextField you might extend another
component that is a textfield contained in a ScrollPane which
is limited to horizontal scrolling only.


--Corey

> 
> Zhichao
> 
>   
> ||   
> | Zhichao Hong   |   
> | Sun Certified Java Programmer (612) 694-2557  (o)  |
^

> | Software Engineer (651) 647-6137  (h)  |  
> | CES, Inc  [EMAIL PROTECTED]   |   
>  _  ||  _
> / ) |   STAY IN TOUCH| ( \   
>   _( (_ |  _  _  | _) )_ 
>  (((\ \)|_/ )( \_|(/ /)))
>    \_/ /  \ \_/  
>\  /\  /  
> \   _/  \_   /   
> /__/  \__\
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

/* Corey Brown  (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65)   */
/* AT&T NCS  |  [EMAIL PROTECTED] */
/* Alpharetta, Ga 30005  |  [EMAIL PROTECTED]   */
/* (770)750-8071 |  New rays from an ancient sun (JS) */


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



Re: (Slightly) off topic: Piping output from std err to file

1999-05-06 Thread corey


> 
> Just like I said:
> java MyClass 2>error.log
> "2" stands for "stderr" in shell redirection, same as "1" is for "stdout" and
> "0" for "stdin"
> So if you want to put both System.out & System.err in the same log, you may use:
> java MyClass 2>1 1>error.log
^^^

This won't work. You just created a file called "1" using this
command. You need to use the following:

java MyClass 2>&1 > error.log

--Corey


/* Corey Brown  (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65)   */
/* AT&T NCS  |  [EMAIL PROTECTED] */
/* Alpharetta, Ga 30005  |  [EMAIL PROTECTED]   */
/* (770)750-8071 |  New rays from an ancient sun (JS) */


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



Re: newb: running Java service?

1999-05-06 Thread zun

On Wed, 5 May 1999, Ted Neward wrote:

> >EJB is nice I certainly agree, but as alx points out: EJB servers are
> >either a) at least $10,000 per installation or b) under beta testing or
> >development.  But they are certainly the way to go in the future if you
> >want to do any seriously heavy server-side development in Java.
> >
> Agreed. But I'd watch prices come back down as a thousand different vendors
> suddenly jump into the market with low-range to super-high-range EJB
> servers. What's more, you can usually download these eval versions for
> development to get a good idea of what EJB development is like without
> shelling out a penny. (Gotta love this Open Source movement, eh?) :)

Definitely.  See below for pointers if you want to play around with the
technology.

> >I'm writing a course on EJB so if you want any pointers to resources on
> >them I'd be happy to share.
> >
> Course for whom?

Course for corporate training.  Need any? =)
Actually the EJB part is just the last day in a 5-day JavaBeans class.
(And of course EJB despite the name isn't similar to JavaBeans much at all
except that they're both component technologies)

> >And there are open source projects in this area too.
> >
> 
> www.EJBHome.com (now a division of Iona) is one, I know of (I think) one
> or two others as well

EJBHome doesn't quite qualify as open source, but you can download their
beta versions for free (they're at ejbhome.iona.com now).  www.ejboss.org
is the only one I've been able to get a hold of (m31.org and openejb.org
seem to be down) but their server is not quite standard and doesn't
support entity beans yet. 

. . . Sean.



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



Re: Hotjava 3.0 - any luck?

1999-05-06 Thread Peter Schuller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> I've been running it the last couple months on JDK 1.1.7 (no jit) without any
> problems..  I haven't tried the final release version though...  I'll grab it
> and check it out

Sounds like you're talking about 2.x. It's been working fine here too. But the
new-and-improved 3.0 won't...

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzHiAcBfJ1FVhL2YEQLVnACfdoembHvEiF+Mn0Q3ayygOVrSVfcAnA+h
Okm8lURNQ9c4yXYfw56lWqc1
=pWYf
-END PGP SIGNATURE-


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



Re: Hotjava 3.0 - any luck?

1999-05-06 Thread Peter Schuller

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> 
> I had luck with jdk117_v1a, that means, I could surf the web, but my Java
> application that uses Swing did not work..

Weird. I guess it's just a matter of my notorious luck striking again, if I'm
the only one who can't run it (and I was almost hoping I could use it as a
replacement for the crashing and memory leaking Netscape beast...).

Would this be the libc or glibc version btw? I've got the glibc version (on a
Debian 2.0 system).

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzHiocBfJ1FVhL2YEQL/dwCffPOzVRlNq3oDL0nZVrC1GacT0E4AoKnZ
m/nJJz39kWSefBLj+v1F0LS6
=mPoM
-END PGP SIGNATURE-


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



Newbie problem

1999-05-06 Thread ALLEON Guillaume

Hello,

I got an undefined symbol (__rtti_user) using jdk1.2 on a Linux platform with
glibc2.1.
I have read the bug reports and have no idea of my problem.

Thanks for your help

Guillaume

Here is the complete error report :
[alleon@maverick src]$ java -green -Djava.compiler=
application.visualorb.VisualORB hello
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/local/jdk1.2/jre/lib/i386/libfontmanager.so:
/usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: undefined symbol: __rtti_user
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1203)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1119)
at java.lang.Runtime.loadLibrary0(Runtime.java:470)
at java.lang.System.loadLibrary(System.java:745)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:57)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.font.NativeFontWrapper.(NativeFontWrapper.java:41)
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:61)

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)

at java.awt.Font.initializeFont(Font.java:259)
at java.awt.Font.(Font.java:289)
at
javax.swing.plaf.metal.DefaultMetalTheme.(DefaultMetalTheme.java:59)
at
javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(MetalLookAndFeel.java:654)

at
javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:658)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:339)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:366)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:820)
at javax.swing.UIManager.initialize(UIManager.java:896)
at javax.swing.UIManager.maybeInitialize(UIManager.java:913)
at javax.swing.UIManager.getUI(UIManager.java:535)
at javax.swing.JPanel.updateUI(JPanel.java:110)
at javax.swing.JPanel.(JPanel.java:70)
at javax.swing.JPanel.(JPanel.java:100)
at javax.swing.JRootPane.createGlassPane(JRootPane.java:225)
at javax.swing.JRootPane.(JRootPane.java:181)
at javax.swing.JFrame.createRootPane(JFrame.java:154)
at javax.swing.JFrame.frameInit(JFrame.java:147)
at javax.swing.JFrame.(JFrame.java:137)
at
application.visualorb.awt.VisualORBFrame.(VisualORBFrame.java:114)
at application.visualorb.VisualORB.main(VisualORB.java:31)

[alleon@ms153095 ~]$ ldconfig -D
ldconfig: warning: /usr/lib/libnewt.so.0.21 has inconsistent soname
(libnewt.so.0.20)
ldconfig: warning: /usr/lib/libform.so.1.9.9e has inconsistent soname
(libform.so.3.0)
ldconfig: warning: /usr/lib/libmenu.so.1.9.9e has inconsistent soname
(libmenu.so.3.0)
ldconfig: warning: /usr/lib/libpanel.so.1.9.9e has inconsistent soname
(libpanel.so.3.0)
ldconfig: warning: /lib/ld-2.0.7.so has inconsistent soname (ld-linux.so.2)
ldconfig: warning: /lib/libBrokenLocale-2.0.7.so has inconsistent soname
(libBrokenLocale.so.1)
ldconfig: warning: /lib/libc-2.0.7.so has inconsistent soname (libc.so.6)
ldconfig: warning: /lib/libcrypt-2.0.7.so has inconsistent soname (libcrypt.so.1)
ldconfig: warning: /lib/libdb-2.0.7.so has inconsistent soname (libdb.so.2)
ldconfig: warning: /lib/libdl-2.0.7.so has inconsistent soname (libdl.so.2)
ldconfig: warning: /lib/libm-2.0.7.so has inconsistent soname (libm.so.6)
ldconfig: warning: /lib/libnsl-2.0.7.so has inconsistent soname (libnsl.so.1)
ldconfig: warning: /lib/libnss_compat-2.0.7.so has inconsistent soname
(libnss_compat.so.1)
ldconfig: warning: /lib/libnss_db-2.0.7.so has inconsistent soname
(libnss_db.so.1)
ldconfig: warning: /lib/libnss_dns-2.0.7.so has inconsistent soname
(libnss_dns.so.1)
ldconfig: warning: /lib/libnss_files-2.0.7.so has inconsistent soname
(libnss_files.so.1)
ldconfig: warning: /lib/libnss_nis-2.0.7.so has inconsistent soname
(libnss_nis.so.1)
ldconfig: warning: /lib/libpthread-0.7.so has inconsistent soname
(libpthread.so.0)
ldconfig: warning: /lib/libresolv-2.0.7.so has inconsistent soname
(libresolv.so.2)
ldconfig: warning: /lib/libutil-2.0.7.so has inconsistent soname (libutil.so.1)
ldconfig: warning: /lib/libdb1-2.1.so has inconsistent soname (libdb.so.2)
ldconfig: warning: /lib/ld-2.1.so has inconsistent soname (ld-linux.so.2)
ldconfig: warning: /lib/libc-2.1.so has inconsistent soname (libc.so.6)
ldconfig: warning: /lib/libcrypt-2.1.so has inconsistent soname (libcrypt.so.1)
ldconfig: warning: /lib/libdb-2.1.so has inconsistent soname (libdb.so.3)
ldconfig: warning: /lib/libm-2.1.so has inconsistent soname (libm.so.6)
ldconfig: warning: /lib/libBrokenLocale-2.1.so has inconsistent soname
(libBrokenLocale.so.1)
ldconfig: war

Re: JARs and performance...

1999-05-06 Thread Robert Covell

Thanks for the reply.

I have thought about pulling the class out of 1.2, but was not certain of
the affects.  Additionlly, I thought of just rewrting their code in 1.1.7.
Either way that is an option.

The Jar will consist of classes the will be run as an
application/applet/serialized bean.  But for the performance part the
applet is the big concern.  Such a big jar, start off with big problems.


Do you think the 1.1 security model will hamper a ClassLoader like that?


-Bob


On Thu, 6 May 1999, Ted Neward wrote:

> Robert--
> 
> >Trying to optimize JAR performance.  We have a JAR that is 700K using
> >JDK1.1.7 and are looking for ways to improve the performance when using
> >it.  At this time we cannot migrate to Java2 and utilize the
> >JArURLConnection.  Does anyone have any suggestions?  We would like to
> >split the JAR into two JARs: 1 for GUI and one for CORE components but
> >have run into difficultly due JAR loading at the 1.1 level.  Additinoally,
> >we have looked into client side install with class date checking sort of a
> >Smart Update...
> >
> >From the context of what you're saying, I'm guessing that you're running a
> Java application and not an applet on the client. What I can suggest is
> that you write a custom ClassLoader that uses java.net.URL to connect to a
> given web server, check dates (against the .jar in your local path),
> download the .jar if necessary, then proceed with normal class loading
> (which is probably your "SmartUpdate" idea in a nutshell).
> 
> Are your jars compressed? JDK 1.1 had a problem with compressed .jars, as I
> recall, but I'm not 100% sure of that.
> 
> Alternatively, I don't see any reason why you couldn't pull the source for
> URLClassLoader out of 1.2, put it into your own "java2" package, and use it
> within java 1.1. You'd have to make a few source modifications to
> adjust for the changed ClassLoader rules in 1.2, but that shouldn't be
> rocket science.
> 
> >Any past experience in this area would be helpful...
> >
> I haven't done this precise thing, but I've done a lot of work with
> ClassLoaders; I'll be happy to help as best I can.
> 
> Hope any of this rambling makes sense or helps out
> 
> 
> --
> 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]



JDK 1.1.7 green threads problem?

1999-05-06 Thread Stephan Greene


I'm trying to install and try out an XML app server called Enhydra
( http://www.www.enhydra.org ); it requires a JDK be installed.

With jdk117_v1a installed, I get the following error wjen I try to start
it:

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

system has RedHat 5.2 installed.  


If I try it against jdk1.2prev1, it fails becuase it can't find
classes.zip.  Is that file gone from 1.2?


Unrelated - the Java-lInux FAQ suggests running a test with appletviewer
to verify a working jdk.  Did the stand-alone applets dissapear between
JDK 1.1.6 and 1.1.7?

Thanks.

Steve Greene
[EMAIL PROTECTED]



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



Re: JARs and performance...

1999-05-06 Thread Louis-David Mitterrand

On Thu, May 06, 1999 at 10:27:41AM -0700, Ted Neward wrote:
> From the context of what you're saying, I'm guessing that you're running a
> Java application and not an applet on the client. What I can suggest is
> that you write a custom ClassLoader that uses java.net.URL to connect to a
> given web server, check dates (against the .jar in your local path),
> download the .jar if necessary, then proceed with normal class loading
> (which is probably your "SmartUpdate" idea in a nutshell).

I've been looking for a way to provide users of my software with a
"SmartUpdate" feature. Your idea sounds great, the only problem is when
your want to save the new JAR in place of the old one: under Unix it
should work, but under windows the original JAR is locked and it is
impossible to squash it with the new one.

Would you have any idea on how to replace a JAR in-place and circumvent
file locking under some platforms? This problem has been bugging me for
more than a year.

TIA.

-- 
Louis-David Mitterrand - [EMAIL PROTECTED] - http://www.aparima.com

Conscience is what hurts when everything else feels so good.


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



Re: JDK 1.1.7 green threads problem?

1999-05-06 Thread Michael Sinz

On Thu, 6 May 1999 15:28:16 -0400 (EDT), Stephan Greene wrote:

>
>I'm trying to install and try out an XML app server called Enhydra
>( http://www.www.enhydra.org ); it requires a JDK be installed.
>
>With jdk117_v1a installed, I get the following error wjen I try to start
>it:
>
>> B./run_demos
>/usr/local/jdk117_v1a/bin/../bin/i486/green_threads/java: error in loading
>shared libraries:
>/usr/local/jdk117_v1a/bin/../lib/i486/green_threads/libjava.so: undefined
>symbol: _dl_symbol_value
>
>system has RedHat 5.2 installed.  

This error happens when you switch from glibc 2.0 to glibc 2.1...

(The dl_symbol_value went away)

>Unrelated - the Java-lInux FAQ suggests running a test with appletviewer
>to verify a working jdk.  Did the stand-alone applets dissapear between
>JDK 1.1.6 and 1.1.7?

Huh?  What do you mean "stand-along applets"?  Applets always had to be
run in the applet viewer or a browser.

Stand alone applications work just fine.

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



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



java versus c++ or perl

1999-05-06 Thread drfrog

we are having a discussion here at work about the deployment of a web based
database,

i think jdbc is the choice othere think perl or c++ is the way to go, any
thoughts/links etc?

thanks


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



Re: JARs and performance...

1999-05-06 Thread Ted Neward

>> From the context of what you're saying, I'm guessing that you're running a
>> Java application and not an applet on the client. What I can suggest is
>> that you write a custom ClassLoader that uses java.net.URL to connect to a
>> given web server, check dates (against the .jar in your local path),
>> download the .jar if necessary, then proceed with normal class loading
>> (which is probably your "SmartUpdate" idea in a nutshell).
>
>I've been looking for a way to provide users of my software with a
>"SmartUpdate" feature. Your idea sounds great, the only problem is when
>your want to save the new JAR in place of the old one: under Unix it
>should work, but under windows the original JAR is locked and it is
>impossible to squash it with the new one.
>
>Would you have any idea on how to replace a JAR in-place and circumvent
>file locking under some platforms? This problem has been bugging me for
>more than a year.
>
Hmm Are you willing to go to native code for your client bootstrap app?
You can use JNI Invocation to create the java VM, inside the Java app drop
the .jar into a new directory (call it "incoming" or something), then copy
the .jar over to the Java directory when the java VM exits.

Beyond that, I'm not sure--it really depends on how the Win32 JNI code is
opening the file for use--if they're using exclusive locking, then I think
you're SOL unless somebody knows of a Win32 API call that can work around
or break an exclusive lock. Give me a bit (can't at the moment--busy), and
I'll see if I can't figure out how they're doing it under the hood. Send me
a reminder in a day or two if you don't hear from me first.

>Conscience is what hurts when everything else feels so good.
> 
I LIKE this line!


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



Re: java versus c++ or perl

1999-05-06 Thread Ted Neward

Oh, Lord, what, you WANT a flame war?

Look, here's my bottom line: With Power Comes Complexity. Perl is simpler
than Java, Java is simpler than C++. With that simplicity you lose a
corresponding amount of power. But the end result is that it doesn't
matter--you can accomplish just about any project in just about any
language. C++ will be fastest, Java will come in second (due to the
presence of JITs and the like), and Perl will be last.

The "best" language to use is the one that (a) everybody feels comfortable
with, (b) has the capacity to easily do what the project demands, both now
and in the future, (c) produces maintainable code that, when everybody on
the project leaves and Management wants an update later, can easily be
understood by the poor schmuck who inherits it all.

My personal preference is for C++ and Java, since (a) those are the two
languages I know the best, and (b) I'm adept enough with either one that I
can produce reusable code that can be used in a variety of situations. If I
had to choose one vs. the other, I'd lean towards Java, simply because it's
a nice compromise between a high-level language like Perl and an
object-oriented language like C++--not too much power sacrificed to get
some nice simplicity.

Java also has the advantage that Perl (AFAIK--I'm not even a Perl newbie)
lacks in that Java has JNI, which would allow you to "call down" to C++
code if necessary. C++ code can also create a Java VM within it (again via
JNI), so using one doesn't exclude the other, and I think Perl can also be
fired up within a C++ process via library calls--why not use all three?

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


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



Re: JARs and performance...

1999-05-06 Thread Ted Neward

>I have thought about pulling the class out of 1.2, but was not certain of
>the affects.  Additionlly, I thought of just rewrting their code in 1.1.7.
>Either way that is an option.
>
>The Jar will consist of classes the will be run as an
>application/applet/serialized bean.  But for the performance part the
>applet is the big concern.  Such a big jar, start off with big problems.
>
True, but I would argue that the actual performance of downloading the
entire jar onto the local VM each time the app starts is probably not that
big of a hit, and once it's there, there's no more need to go across the
wire. 

>Do you think the 1.1 security model will hamper a ClassLoader like that?
>
I don't think so, unless you're running as an applet--the
AppletSecurityManager disallows ClassLoaders of all forms.

>
>-Bob
>
>
>On Thu, 6 May 1999, Ted Neward wrote:
>
>> Robert--
>> 
>> >Trying to optimize JAR performance.  We have a JAR that is 700K using
>> >JDK1.1.7 and are looking for ways to improve the performance when using
>> >it.  At this time we cannot migrate to Java2 and utilize the
>> >JArURLConnection.  Does anyone have any suggestions?  We would like to
>> >split the JAR into two JARs: 1 for GUI and one for CORE components but
>> >have run into difficultly due JAR loading at the 1.1 level.  Additinoally,
>> >we have looked into client side install with class date checking sort of a
>> >Smart Update...
>> >
>> >From the context of what you're saying, I'm guessing that you're running a
>> Java application and not an applet on the client. What I can suggest is
>> that you write a custom ClassLoader that uses java.net.URL to connect to a
>> given web server, check dates (against the .jar in your local path),
>> download the .jar if necessary, then proceed with normal class loading
>> (which is probably your "SmartUpdate" idea in a nutshell).
>> 
>> Are your jars compressed? JDK 1.1 had a problem with compressed .jars, as I
>> recall, but I'm not 100% sure of that.
>> 
>> Alternatively, I don't see any reason why you couldn't pull the source for
>> URLClassLoader out of 1.2, put it into your own "java2" package, and use it
>> within java 1.1. You'd have to make a few source modifications to
>> adjust for the changed ClassLoader rules in 1.2, but that shouldn't be
>> rocket science.
>> 
>> >Any past experience in this area would be helpful...
>> >
>> I haven't done this precise thing, but I've done a lot of work with
>> ClassLoaders; I'll be happy to help as best I can.
>> 
>> Hope any of this rambling makes sense or helps out
>> 
>> 
>> --
>> 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]
> 


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



Re: Hotjava 3.0 - any luck?

1999-05-06 Thread paulsch



glibc version on RedHat 5.1 and 5.2 dists...

Paul Schroeder
Software Engineer
NCSD Division, IBM Corp
Office: 512-838-9675
Lab: 512-838-8305
[EMAIL PROTECTED]



Peter Schuller <[EMAIL PROTECTED]> on 05/06/99 01:51:00 PM

To:   Denis Riedijk <[EMAIL PROTECTED]>
cc:   [EMAIL PROTECTED] (bcc: Paul Schroeder/Austin/IBM)
Subject:  Re: Hotjava 3.0 - any luck?





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

>
> I had luck with jdk117_v1a, that means, I could surf the web, but my Java
> application that uses Swing did not work..

Weird. I guess it's just a matter of my notorious luck striking again, if I'm
the only one who can't run it (and I was almost hoping I could use it as a
replacement for the crashing and memory leaking Netscape beast...).

Would this be the libc or glibc version btw? I've got the glibc version (on a
Debian 2.0 system).

/ Peter Schuller

- ---
PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Help create a free Java based operating system - www.jos.org.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQA/AwUBNzHiocBfJ1FVhL2YEQL/dwCffPOzVRlNq3oDL0nZVrC1GacT0E4AoKnZ
m/nJJz39kWSefBLj+v1F0LS6
=mPoM
-END PGP SIGNATURE-


--
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: Hotjava 3.0 - any luck?

1999-05-06 Thread Michael Sinz

On Thu, 6 May 1999 18:04:38 -0500, [EMAIL PROTECTED] wrote:

>glibc version on RedHat 5.1 and 5.2 dists...

>> I had luck with jdk117_v1a, that means, I could surf the web, but my Java
>> application that uses Swing did not work..
>
>Weird. I guess it's just a matter of my notorious luck striking again, if I'm
>the only one who can't run it (and I was almost hoping I could use it as a
>replacement for the crashing and memory leaking Netscape beast...).

Well, running on RedHat 5.x (5.0/5.1/5.2) with the 1.1.7 v1a release
of the JDK, it all works just fine.  (Well, as much as I tested it)

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



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



Re: Attendance at LinuxExpo?

1999-05-06 Thread Jonathan Mark Brooks

Oh I'm going, certainly.  I live in Greensboro.

On Thu, 6 May 1999, Nathan Meyers wrote:

> Is anyone in this crowd planning to attend the Linux Expo in Raleigh (May
> 18-22)? Any interest in a Java/Linux Birds-of-a-Feather session?
> 
> Nathan Meyers
> [EMAIL PROTECTED]
> 
> -
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/
> 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


* 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]



Call To Action on Java Lobby

1999-05-06 Thread Michael Emmel


There has been a request on the Java Lobby

www.javalobby.org

To reform the java lobby into a grass roots campaign to allow Java
developers
to take a lager role in the determination of java's future.

I urge all the members of this list to look at the request and join the
Java Lobby in its efforts.
The linux java platform has to date moved forward slowly this is your
chance to voice your concerns.
And guarantee and open standard java.


Mike



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



Re: JDK 1.1.7 green threads problem?

1999-05-06 Thread Hamdi Mohd Yusof

Just to inform that Enhydra 2.0.2 runs OK on my linux machine, Redhat 5.2,
jdk1.1.7 v1a and tya 1.2v4. I don't know which version of lib that I have though
as I haven't upgraded to anything else. I just installed the stuff on top of my
5.2 installation.

hamdi

Stephan Greene wrote:

> I'm trying to install and try out an XML app server called Enhydra
> ( http://www.www.enhydra.org ); it requires a JDK be installed.
>
> With jdk117_v1a installed, I get the following error wjen I try to start
> it:
>
> > B./run_demos
> /usr/local/jdk117_v1a/bin/../bin/i486/green_threads/java: error in loading
> shared libraries:
> /usr/local/jdk117_v1a/bin/../lib/i486/green_threads/libjava.so: undefined
> symbol: _dl_symbol_value
>
> system has RedHat 5.2 installed.
>
> If I try it against jdk1.2prev1, it fails becuase it can't find
> classes.zip.  Is that file gone from 1.2?
>
> Unrelated - the Java-lInux FAQ suggests running a test with appletviewer
> to verify a working jdk.  Did the stand-alone applets dissapear between
> JDK 1.1.6 and 1.1.7?
>
> Thanks.
>
> Steve Greene
> [EMAIL PROTECTED]
>
> --
> 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: A little help

1999-05-06 Thread papiraki

Hey,

don't feel stupid. Tell yourself that more advanced users are
ex-beginners too. I for one would have been glad if someone had helped me
a few years ago.

Here is a quick example, the class it foo and the array is bar.

foo[] bar;

// at this point bar == null

...

bar = new foo[SIZE];

// At this point, bar[i] == null

for(int i = 0; i < bar.length; i++)
bar[i] = new foo();

// Now, bar is allocated with a full array of nun-null objects.

You should also try to go see at http://www.mcp.com

They have online books that tey usually, and they have quite a few on
java.


Good luck!!!

 Papi



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



Re: After RedHat 6.0 Install, JDK Error !!!

1999-05-06 Thread papiraki

Hello,

I just fixed the exact same problem. Go get jdk-1.1.6 from
blackdown. It will work (take the latest version).

If you are a user of jfc, it will get broken. Because, for some
reason, .jar files written in a later version are broken. To fix this,
find a box that is able to decompress it (jar works almost exactly as tar,
so to extract, just type jar xfv file_name.jar).

Then zip it. You will be able to read the .zip file and put it in
your CLASSPATH...


papi




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



Re: (Slightly) off topic: Piping output from std err to file

1999-05-06 Thread papiraki

Hey,

this is an easy one. You could have found the answer with man bash
(but who the heck wants to read the whole thing!!!).
 
I will first give you the little recipe, then explains what it
does (in case you don't care).

some_command 2> some_path_to_a_file

Bash (and like most shells) uses 2 streams. stdout and stderr.
stdout is 1 and stderr is 2. You can create more streams if you like, but,
I am not sure how, since I do not use (and do not understand what I
would do with) more than these streams anyway.

You can also redirect a stream to the other one like this

some_comand 2>&1 >/dev/null

This will make any command truely shut up. It is important to note
that if you use pipes, only stdout is redirected, and if you redirect
stderr at the end of the pipe, if the first command gives an error, it
will be printed on the screen.

For more info, try man bash (and search quickly into it with /).



Papi



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



Re: JARs and performance...

1999-05-06 Thread papiraki

Hey,

I think splitting this file into more than one is a VERY good idea
to start with.

There is a programm called fastjar that is available from
freshmeat.net. I did not use it myself, but since it is written in good
old native C (or is it C++?) it MUCH more performant. I think you will
have better luck with it..


papi




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



Re: Newbie problem

1999-05-06 Thread papiraki

This is simple,

jdk-1.2 doesn't work with glibc-2.1. Period (so far). You will
have to downgrade either one (if you downgrade jdk, go to jdk-1.1.6
because jdk-1.1.7 will still be broken).

Papi




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



Re: java versus c++ or perl

1999-05-06 Thread papiraki



On Thu, 6 May 1999 [EMAIL PROTECTED] wrote:

> we are having a discussion here at work about the deployment of a web based
> database,
> 
> i think jdbc is the choice othere think perl or c++ is the way to go, any
> thoughts/links etc?
> 
> thanks
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


Well,

this has a lot to do with want you want to accomplish. Once you
get to know perl, it is faster to develop many things (such as databases)
than any other languages.

The advantage java has over other alternatives is the fact that it
takes cpu cycles from the users, not your machine. The user also doesn't
have to wait for the new page to be downloaded. Everything will be
displayed in real time.

If you think a user will have to do many requests before he leaves
your site, use java. It is longer to load, but, it does the job on the
spot after that. On the other hand, it is realy long to load compared to
html.

So, if you think the user will do simple requests then leave, a
good old cgi is the way to go. The problem, is that if you think too many
users could log in at the same time, the cpu cycles used are yours, not
theirs, to then again, java/javascript still has some advantages.

In my experience, java is at it's best off web pages. I've seen
very few sites that use java that SOULD use it. If there is an alternative
that does the jobs usually, the other alternative is best (from the user's
point of view).

Then agin, this is just my opinion

Papi



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



Re: After RedHat 6.0 Install, JDK Error !!!

1999-05-06 Thread Ninja

I have similar problem related with glibc version, and
have a question.

I can start swing program without any hacks with native
thread jdk but when i open a dialog( file chooser ) and
close it then the program stops responding. Do you solved
this problem too ?

>Hello,
>
> I just fixed the exact same problem. Go get jdk-1.1.6 from
>blackdown. It will work (take the latest version).
>
> If you are a user of jfc, it will get broken. Because, for some
>reason, .jar files written in a later version are broken. To fix this,
>find a box that is able to decompress it (jar works almost exactly as tar,
>so to extract, just type jar xfv file_name.jar).
>
> Then zip it. You will be able to read the .zip file and put it in
>your CLASSPATH...



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



Re: Call To Action on Java Lobby

1999-05-06 Thread Ken McNeil

> There has been a request on the Java Lobby
> www.javalobby.org
> 
> To reform the java lobby into a grass roots campaign
> to allow Java
> developers
> to take a lager role in the determination of java's
> future.
> 
> I urge all the members of this list to look at the
> request and join the
> Java Lobby in its efforts.
> The linux java platform has to date moved forward
> slowly this is your
> chance to voice your concerns.
> And guarantee and open standard java.

As you all very well know I have a soft spot for this
topic, so I too urge everyone to participate. This is
an organization that has a substantial amount of clout
(34,000+ members). An action by them could actually
mean something and gain that attention that I feel the
issues of Sun domenation and the like need.

Ken

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



Re: newb: running Java service?

1999-05-06 Thread John N. Alegre

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

john

On 06-May-99 [EMAIL PROTECTED] wrote:
> On Wed, 5 May 1999, Ted Neward wrote:
> 
>> >EJB is nice I certainly agree, but as alx points out: EJB servers are
>> >either a) at least $10,000 per installation or b) under beta testing or
>> >development.  But they are certainly the way to go in the future if you
>> >want to do any seriously heavy server-side development in Java.
>> >
>> Agreed. But I'd watch prices come back down as a thousand different vendors
>> suddenly jump into the market with low-range to super-high-range EJB
>> servers. What's more, you can usually download these eval versions for
>> development to get a good idea of what EJB development is like without
>> shelling out a penny. (Gotta love this Open Source movement, eh?) :)
> 
> Definitely.  See below for pointers if you want to play around with the
> technology.
> 
>> >I'm writing a course on EJB so if you want any pointers to resources on
>> >them I'd be happy to share.
>> >
>> Course for whom?
> 
> Course for corporate training.  Need any? =)
> Actually the EJB part is just the last day in a 5-day JavaBeans class.
> (And of course EJB despite the name isn't similar to JavaBeans much at all
> except that they're both component technologies)
> 
>> >And there are open source projects in this area too.
>> >
>> 
>> www.EJBHome.com (now a division of Iona) is one, I know of (I think) one
>> or two others as well
> 
> EJBHome doesn't quite qualify as open source, but you can download their
> beta versions for free (they're at ejbhome.iona.com now).  www.ejboss.org
> is the only one I've been able to get a hold of (m31.org and openejb.org
> seem to be down) but their server is not quite standard and doesn't
> support entity beans yet. 
> 
> . . . Sean.
> 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--
E-Mail: John N. Alegre <[EMAIL PROTECTED]>
Date: 06-May-99
Time: 20:10:53

This message was sent by XFMail
--


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



RE: Question

1999-05-06 Thread John N. Alegre

GET READY for J2EE (Q499).. you will understand!

john

On 05-May-99 [EMAIL PROTECTED] wrote:
> I was thinking about this discussion of servlets and application servers
> and taking into consideration that I know nothing about EJB, but have some
> minor experience with an app server, and lots of experience with servlets.
> In fact, when dealing with this particular app server (NetDynamics) I can
> help but wondering why this couldn't be done better, smaller, faster with
> servlets?
> 
> With this in mind I think about how there are so many new and wonderful
> things being done with Java, it seems like a lot of them overlap.  Being
> that all my server side java experience is with servlets, I have a nice
> hammer here and everything is indeed looking like a nail.
> 
> So I pose this question to my java compatriots with experience in other
> realms of server side java.  Why would I use an app server or some other
> technology?  What does EJB give me?  Couldn't I use EJB with servlets as
> opposed to an EJB centric appserver?
> 
> The things I've read about the server I'm using, none of which convinced
> me that were I a corporation I should sink $25k into something like
> NetDynamics that I couldn't do with a webserver.  Keep in mind though that
> I have no experience with EJB, so I don't know what advantages of using
> EJB with an app server would be as opposed to using EJB with a web server
> and servlets, where the webserver is simply a standardized means of
> client/server communication.
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--
E-Mail: John N. Alegre <[EMAIL PROTECTED]>
Date: 06-May-99
Time: 20:42:21

This message was sent by XFMail
--


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



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

1999-05-06 Thread John N. Alegre


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

john

--
E-Mail: John N. Alegre <[EMAIL PROTECTED]>
Date: 06-May-99
Time: 20:33:46

This message was sent by XFMail
--


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



Hotjava 3.0 - any luck?

1999-05-06 Thread Armin kurz

HotJava 3.0 runs on SuSe 6.0 with jdk1.1.7.

begin:vcard 
n:Kurz;Armin
tel;fax:+49 / (0)89 / 608 14 - 376 
tel;work:+49 / (0)89 / 608 14 - 0 
x-mozilla-html:FALSE
url:http://www.forcecomputers.com
org:FORCE COMPUTERS GmbH;Technical Documentation
adr:;;Prof.-Messerschmitt-Strasse 1;Neubiberg;;D-85579;Germany
version:2.1
email;internet:[EMAIL PROTECTED]
title:Technical Writer
x-mozilla-cpt:none;-27544
fn:Armin Kurz
end:vcard



JDK 1.X on Rh 6

1999-05-06 Thread Piero Campanelli

Good morning,

i have problems with Redhat 6 and jdk 1.x (with x=1.7 and 2)
Is there someone of you who has just solved the problem? 

I found on a web site (given in the mailing-list) about jdk 1.1.6 compiled
with new glibc...but i have also read on a newsgroup that this release of
jdk is unable to read jar files. Any hints?

Bye


---
Piero Campanelli 
[EMAIL PROTECTED]


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



Re: Call To Action on Java Lobby

1999-05-06 Thread Hamdi Mohd Yusof

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

hamdi

Ken McNeil wrote:

> > There has been a request on the Java Lobby
> > www.javalobby.org
> >
> > To reform the java lobby into a grass roots campaign
> > to allow Java
> > developers
> > to take a lager role in the determination of java's
> > future.
> >
> > I urge all the members of this list to look at the
> > request and join the
> > Java Lobby in its efforts.
> > The linux java platform has to date moved forward
> > slowly this is your
> > chance to voice your concerns.
> > And guarantee and open standard java.
>
> As you all very well know I have a soft spot for this
> topic, so I too urge everyone to participate. This is
> an organization that has a substantial amount of clout
> (34,000+ members). An action by them could actually
> mean something and gain that attention that I feel the
> issues of Sun domenation and the like need.
>
> Ken
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


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



Re: JDK 1.X on Rh 6

1999-05-06 Thread Ninja

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

But native thread and swing does not work well. I think
this is not related with jar file. Swing application stops
responding when file chooser dialog is open an close.
And there's more case that I have encountered when using
native thread. But it's speed is very impressive. I even
felt like my Windows NT 4.0 with IBM JDK( Celeron 333 )
is slower than my Pentium 133 Linux Native JDK in some
computation program.

>I found on a web site (given in the mailing-list) about jdk 1.1.6 compiled
>with new glibc...but i have also read on a newsgroup that this release of
>jdk is unable to read jar files. Any hints?



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