Unidentified subject!

2000-04-05 Thread Billy V. Kantartzis

i am trying to use the ready type of linked list and i found that there is 
a bug in the add.(index, object) method. 
i  am trying to read the index after each addition is performed and the
value i get is always 0.
when i am trying to extract data from the list thow the index is working
as expected and i can move about doing all the described operations 
I am attaching a sample programm to demonstrate the problem 
tks for the help 
Billy 



A
FILE /***/
import java.util.*;
class TreeData extends Object
{
  boolean b;
  char ch;
  public TreeData (boolean bpassed, char charpassed)
  {
  b=bpassed;
  ch=charpassed;
}
  public String toString()
  {
return (new String (" "+ ch + " "));
  }
}

public class listTest2 
{
public static void main (String args[])
{
int index ;
ListIterator i;
  LinkedList l = new LinkedList();
   i= l.listIterator(0);
  index= i.nextIndex();
   System.out.println (" index value :" + index);
  l.add ( index ,new TreeData(false ,'c'));
  index= i.nextIndex();
   System.out.println (" index value :" + index);
  l.add ( index ,new TreeData(false ,'d'));
  index= i.nextIndex();
   System.out.println (" index value :" + index);
  l.add ( index ,new TreeData(false ,'e'));
  System.out.println (l.toString());
  // declaring am itrrator int he list 


   i= l.listIterator(2);
while (i.hasNext())
{
   index=i.nextIndex();
  if (index==2)
 {
  l.set(index, new TreeData (false,'m'));
 }
  
  System.out.println ("next element is in posisition " + index);
  System.out.println (i.next());
  System.out.println ();  
}
  
  }
}// end class 
/**/





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




Re: linked list object

2000-04-05 Thread Billy V. Kantartzis



On Wed, 5 Apr 2000, Billy V. Kantartzis wrote:

> i am trying to use the ready type of linked list and i found that there is 
> a bug in the add.(index, object) method. 
> i  am trying to read the index after each addition is performed and the
> value i get is always 0.
> when i am trying to extract data from the list thow the index is working
> as expected and i can move about doing all the described operations 
> I am attaching a sample programm to demonstrate the problem 
> tks for the help 
> Billy 
> 
> 
> 
> A
> FILE /***/
> import java.util.*;
> class TreeData extends Object
> {
>   boolean b;
>   char ch;
>   public TreeData (boolean bpassed, char charpassed)
>   {
>   b=bpassed;
>   ch=charpassed;
> }
>   public String toString()
>   {
> return (new String (" "+ ch + " "));
>   }
> }
> 
> public class listTest2 
> {
> public static void main (String args[])
> {
> int index ;
> ListIterator i;
>   LinkedList l = new LinkedList();
>i= l.listIterator(0);
>   index= i.nextIndex();
>System.out.println (" index value :" + index);
>   l.add ( index ,new TreeData(false ,'c'));
>   index= i.nextIndex();
>System.out.println (" index value :" + index);
>   l.add ( index ,new TreeData(false ,'d'));
>   index= i.nextIndex();
>System.out.println (" index value :" + index);
>   l.add ( index ,new TreeData(false ,'e'));
>   System.out.println (l.toString());
>   // declaring am itrrator int he list 
> 
> 
>i= l.listIterator(2);
> while (i.hasNext())
> {
>index=i.nextIndex();
>   if (index==2)
>  {
>   l.set(index, new TreeData (false,'m'));
>  }
>   
>   System.out.println ("next element is in posisition " + index);
>   System.out.println (i.next());
>   System.out.println ();  
> }
>   
>   }
> }// end class 
> /**/
> 
> 
> 
> 
> 
> --
> 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]




Problems with kernel 2.2.14

2000-04-05 Thread John Rousseau

RedHat 6.1
JDK 1.2.2-RC4 (native threads)

I just upgraded the kernel on one of my test boxes today from
2.2.12-20 (RedHat 6.1 stock) to 2.2.14. No other software changed.

My server now fails to start with a java.lang.OutOfMemoryError when
doing a java.lang.Thread.start. Booting my old kernel makes the
problem go away. Starting with -Xmx256m or -Xmx512m makes no
difference.

I saw this problem 2 weeks ago on an SMP box, but thought it was
related to that configuration. It was also running 2.2.14.

Has anyone else seen this?

-John

PS. The TCP connection limit problem I wrote about last week was in
our code. Sorry for the wasted bandwidth.


John Rousseau   [EMAIL PROTECTED]
SilverStream Software   
1 Burlington WoodsPhone: +1 781 238 5564
Burlington, MA 01803Fax: +1 781 238 5499



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




Re: Mount Table File per Linux Distributon

2000-04-05 Thread Peter Pilgrim

[EMAIL PROTECTED] wrote:



> The programs mount and umount maintain a list of currently mounted file
> systems in the file /etc/mtab.  If no arguments are given to mount, this
> list is printed.  When the proc filesystem is mounted (say at /proc), the
> files /etc/mtab and /proc/mounts have very similar contents.
> 
> So, I'd say that both /etc/mtab and /proc/mounts are reasonably
> cross-distribution ways to look for the currently mounted filesystems.

Thanks to all those who responded to my mini survey.
-- 

mfg
Peter

==
"The greatest trick the devil ever pulled was making everyone in the
world believe he didn't exist." Kevin Spacey as Kaiser Sousei


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




Re: linked list object

2000-04-05 Thread Nathan Meyers

"Billy V. Kantartzis" wrote:
> 
> On Wed, 5 Apr 2000, Billy V. Kantartzis wrote:
> 
> > i am trying to use the ready type of linked list and i found that there is
> > a bug in the add.(index, object) method.
> > i  am trying to read the index after each addition is performed and the
> > value i get is always 0.

If you're looking for a function that will return the current size of
the list, try the LinkedList.size() method. The function you're using,
ListIterator.nextIndex(), is working as advertised - the only thing that
should change its return value is your use of ListIterator.next() or
ListIterator.previous().

If this were a bug, it's not likely to be Linux-specific... the
container classes are themselves implemented in Java and work the same
everywhere.

Nathan


> > when i am trying to extract data from the list thow the index is working
> > as expected and i can move about doing all the described operations
> > I am attaching a sample programm to demonstrate the problem
> > tks for the help
> > Billy
> >
> >
> >
> > A
> > FILE /***/
> > import java.util.*;
> > class TreeData extends Object
> > {
> >   boolean b;
> >   char ch;
> >   public TreeData (boolean bpassed, char charpassed)
> >   {
> >   b=bpassed;
> >   ch=charpassed;
> > }
> >   public String toString()
> >   {
> > return (new String (" "+ ch + " "));
> >   }
> > }
> >
> > public class listTest2
> > {
> > public static void main (String args[])
> > {
> > int index ;
> > ListIterator i;
> >   LinkedList l = new LinkedList();
> >i= l.listIterator(0);
> >   index= i.nextIndex();
> >System.out.println (" index value :" + index);
> >   l.add ( index ,new TreeData(false ,'c'));
> >   index= i.nextIndex();
> >System.out.println (" index value :" + index);
> >   l.add ( index ,new TreeData(false ,'d'));
> >   index= i.nextIndex();
> >System.out.println (" index value :" + index);
> >   l.add ( index ,new TreeData(false ,'e'));
> >   System.out.println (l.toString());
> >   // declaring am itrrator int he list
> >
> >
> >i= l.listIterator(2);
> > while (i.hasNext())
> > {
> >index=i.nextIndex();
> >   if (index==2)
> >  {
> >   l.set(index, new TreeData (false,'m'));
> >  }
> >
> >   System.out.println ("next element is in posisition " + index);
> >   System.out.println (i.next());
> >   System.out.println ();
> > }
> >
> >   }
> > }// end class
> > /**/
> >
> >
> >
> >
> >
> > --
> > 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]




Java3D and Linux Installation

2000-04-05 Thread Desiree Hilbring

Hello everybody,
I tried to install java3d 1.1.3 and jdk 1.2.2, both from blackdown on Suse
Linux 6.3. 
Then I'll get the following error-message (see at end of mail)

I have seen some similar problems in your archive. Is there a solution for
this problem?

After that I tried to install the blackdown version of java3d 1.1.1 and I
am getting the following error:

Exception in thread
"main" java.lang.UnsatisfiedLinkError: /usrs3/jdk1.2.2/j
re/lib/i386/libJ3D.so: /usrs3/jdk1.2.2/jre/lib/i386/libJ3D.so: undefined
sym
bol: glTexImage3DEXT
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java, Compiled
Cod
e)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java, Compiled
Code
)
at java.lang.Runtime.loadLibrary0(Runtime.java, Compiled Code)
at java.lang.System.loadLibrary(System.java, Compiled Code)
at javax.media.j3d.UniverseManager$1.run(UniverseManager.java,
Compi
led Code)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.UniverseManager.(UniverseManager.java,
Comp
iled Code)
at javax.media.j3d.VirtualUniverse$2.run(VirtualUniverse.java,
Compi
led Code)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:464
)
at HelloUniverse.(HelloUniverse.java, Compiled Code)
at HelloUniverse.main(HelloUniverse.java, Compiled Code)


I really need your help
Thanks in advance Desiree

The first error message starts with: 

> SIGSEGV   11*  segmentation violation
> si_signo [11]: SIGSEGV   11*  segmentation violation
> si_errno [0]: Erfolg
> si_code [0]: SI_USER [pid: 0, uid: 0]
> stackpointer=0x44b5ddfc
>
> Full thread dump Classic VM (1.2.2-L, green threads):
> "J3D-UniverseManager-1" (TID:0x40f6c5b0, sys_thread_t:0x86a52e8,
> state:CW) p
> rio=4
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:420)
> at
> javax.media.j3d.UniverseManager.renderAction(UniverseManager.java:399
> )
> at javax.media.j3d.UniverseManager.run(UniverseManager.java:357)
> "J3D-SoundScheduler-1" (TID:0x40f74a20, sys_thread_t:0x86a3d38,
> state:CW) pr
> io=4
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:420)
> at
> javax.media.j3d.SoundScheduler.runMonitor(SoundScheduler.java:488)
> at
> javax.media.j3d.SoundScheduler.checkState(SoundScheduler.java:229)
> at javax.media.j3d.SoundScheduler.run(SoundScheduler.java:387)
> "J3D-View-1" (TID:0x40f7a478, sys_thread_t:0x842da40,
state:CW) prio=4
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:420)
> at javax.media.j3d.ViewThread.renderAction(ViewThread.java:298)
> at javax.media.j3d.ViewThread.run(ViewThread.java:193)
> "J3D-Traverser-1" (TID:0x40f7a100, sys_thread_t:0x85182b0,
> state:MW) prio=4
> at javax.media.j3d.Traverser.traverse(Traverser.java:1605)
> at javax.media.j3d.Traverser.traverse(Traverser.java:761)
> at javax.media.j3d.Traverser.traverse(Traverser.java:847)
> at javax.media.j3d.Traverser.run(Traverser.java:2124)
> "J3D-Behavior-1" (TID:0x40f70c80, sys_thread_t:0x84dc7a8,
> state:R) prio=4
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:420)
> at
> javax.media.j3d.BehaviorScheduler.runMonitor(BehaviorScheduler.java:1
> 001)
> at
> javax.media.j3d.BehaviorScheduler.run(BehaviorScheduler.java:920)
> "J3D-Renderer-1" (TID:0x40f7a6e0, sys_thread_t:0x86092e0,
> state:R) prio=4
> at javax.media.j3d.Canvas3D.createContext(Native Method)
> at javax.media.j3d.Renderer.run(Renderer.java:211)
> "J3D-Input-1" (TID:0x40f73398, sys_thread_t:0x86236e8,
> state:CW) prio=4
> at java.lang.Object.wait(Native Method)
> at java.lang.Object.wait(Object.java:420)

and goes on for pages ...


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




Problems with HotJava 3

2000-04-05 Thread Pierre

Hi,

I can't start Hotjava 3 on my RedHat 6.1 box. The app starts : I get the nice
splash screen. Then I get the following error message:

Exception in thread "main" java.lang.Error: unable to find a .bdtd file :
lib/html32.bdtd
at sunw...
...
[[[ Failed to load scripting engine ]]]
I'm using Blackdown JDK1.2pr2. Basically it runs of a big jar file, and when
I unzip it I can see that the lib/html32.bdtd is there.
Any idea, or anybody had the same problem? Should I upgrade to 1.2.2?

Thanks a lot,
Pierre


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




JAVA_HOME

2000-04-05 Thread John Louis



Hi,
   I installed IBMJava118-JRE-1.1.18 on my redhat 
system, and set all the path & classpath.  The JAVA_HOME I set to 
/usr/jre118/bin,  and I'm try to install IBMWebAS-core-2.03-1.i386.rpm 
using rpm -ivh.  It give me the error:
 
Cannot find where java is installed on this system.  
Please make sure the JDK or JRE is installed and set JAVA_HOME before installing 
this package.
 
I run the jre, it is working.  Can anyone tell me the 
JAVA_HOME is set correctly?
 
 
 
Louis


Re: JAVA_HOME

2000-04-05 Thread Juergen Kreileder

> John Louis writes:

John> I installed IBMJava118-JRE-1.1.18 on my redhat system, and
John> set all the path & classpath.  The JAVA_HOME I set to
John> /usr/jre118/bin, and I'm try to install
John> IBMWebAS-core-2.03-1.i386.rpm using rpm -ivh.  It give me
John> the error:

John> Cannot find where java is installed on this system.  Please make sure the 
JDK or JRE is installed and set JAVA_HOME before installing this package.

John> I run the jre, it is working.  Can anyone tell me the
John> JAVA_HOME is set correctly?

Set JAVA_HOME to /usr/jre118.


Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html


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




Re: JAVA_HOME

2000-04-05 Thread Man Chi Ly

On Wed, 5 Apr 2000, John Louis wrote:

> Hi,
>I installed IBMJava118-JRE-1.1.18 on my redhat system, and set all the path & 
>classpath.  The JAVA_HOME I set to /usr/jre118/bin,  and I'm try to install 
>IBMWebAS-core-2.03-1.i386.rpm using rpm -ivh.  It give me the error:
> 
> Cannot find where java is installed on this system.  Please make sure the JDK or JRE 
>is installed and set JAVA_HOME before installing this package.
> 
> I run the jre, it is working.  Can anyone tell me the JAVA_HOME is set correctly?
> 
> 
> 
> Louis
> 

it should be set to /usr/jre118
FYI, I had no luck installing WAS 2.03 on SuSE 6.3 because the Apache
module they have is too old. And the version of IHS (modified Apache) they
ship is also too old. I'm not saying it's not possible, but waiting for
WAS 3.0 might turn out to be the best bet.


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