Problem with downloading 1.2 pre-release

1999-06-08 Thread Jacob Nikom

Hi,

My name is Jacob Nikom. I tried to download JDK 1.2 for Linux and got
some problems with java files. I got very strange content of the /jdk1.2/bin
directory:

//homes/nikom/work/java/bin/jdk1.2/bin ls -l
total 8
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 appletviewer_g -> .java_wrapper

lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 extcheck_g -> .java_wrapper
drwxr-xr-x   4 nikomstaff  8192 Jun  3 22:53 i386/
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 jar_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 jarsigner_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 java_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 javac_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 javadoc_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 javah_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 javap_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 jdb_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 keytool_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 native2ascii_g -> .java_wrapper

lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 oldjava_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 policytool_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 rmic_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 rmid_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 rmiregistry_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 serialver_g -> .java_wrapper
lrwxrwxrwx   1 nikomstaff13 Jun  8 18:11 tnameserv_g -> .java_wrapper
//homes/nikom/work/java/bin1/jdk1.2/bin

As you see all files point to the .java_wrapper file which does not exist.
Obviously nothing runs. Also all tools have extension _g - is it correct?

This is the description of what I have done to get into this stage:

1. When to the site
http://www.blackdown.org/

2. When to the "Download the JDK for Linux" link
3. Found appropriate ftp site
3. Went to the JDK1.2/i386/pre-v2/glibc2.1 directory
4. Middle clicked on jdk1.2pre-v2-debug.tar.bz2 file
5. Menu opened - downloaded the file into directory
   /homes/nikom/work/java/bin/
6. Unzipped the file with bzcat
bzcat jdk1.2pre-v2-debug.tar.bz2 > jdk1.2pre-v2-debug.tar
7. Untared the file
tar xvf jdk1.2pre-v2-debug.tar
8. Set up the path
set path = (/homes/nikom/work/java/bin/jdk1.2/bin $path)
9. Looked at the directory /homes/nikom/work/java/bin/jdk1.2/bin
10. Found strange things

I have done all this actions two times and got identical results.
(I run latest Red Hat Linux 5.3 release with Gnome user interface)
Do you know what is the problem?

Thank you,

Jacob Nikom

--
--
Jacob Nikom  Internet: [EMAIL PROTECTED]
--



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



Re: My Thanks--Re: JNI Errors: Need Help

1999-07-28 Thread Jacob Nikom

Sun Tutorial is not for Linux. If you use JNI on SGI, you have to use -shared
too.

Jacob Nikom

[EMAIL PROTECTED] wrote:

> Many, many thanks.
> The Sun Tutorial DOES NOT show that little trick.
>
> _
> Steve Gee
> Java Developer
> Maxor National Pharmacies
> Information Technologies
>
> [EMAIL PROTECTED]
> 806.324.5540
> www.maxor.com
> 806.324.5400
>
> --
> 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: Calling Same Native method more than once.

1999-08-03 Thread Jacob Nikom

I don't think there is any limitations on the number of calls of C routine.
I call my C routine from Java thousand times without any problem. Look
for something else - memory problem of threads. Do you call your routine
from the main tread or you created separate one?

Jacob

"Nagaraj S.B" wrote:

> Hi all,
> Thanks for helping me in interfacing C with Java.I am facing a problem
> in executing my program(java) which calls a 'C' function.
> I am calling 'C' native method for every 10 secs in my 'java' program ,
> but after first loop, my program(java) exits by giving
> SIGSEV 11* Segmentation violation .
> How to call same native method for more than one time ?.
> Thanks in advance,
> --
> Nagaraj S.B.
> Bells Softech Ltd,Bells House,1036,
> 26th Main,4th 'T' Block,
> Jayanagar, Banglore - 560 041.Ph.No.:6650084/33.
>
> --
> 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]



[Fwd: Re: Calling Same Native method more than once.]

1999-08-04 Thread Jacob Nikom



 Original Message 
Subject: Re: Calling Same Native method more than once.
Date: Wed, 04 Aug 1999 10:46:06 -0400
From: Jacob Nikom <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: MERL
To: [EMAIL PROTECTED]
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>

Hi Nagaraj,

I think it is better to see one time the working code than discuss how
to
do it. Here are the two files: one in Java and one in C which create
animated color. The program runs on Linux and NT. You have to run
it as application, not applet.

Jacob Nikom


=Start of the JCMotion.java file ===
/*
 *
 *
 */

import javax.swing.*;
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;

// This applet creates a series of moving
// lines by creating a memory image and cycling
// its color palette.

public class JCMotion extends JApplet implements Runnable,
ActionListener
{
  public native void imageGen(int[] intArr, int imageWidth, int
ImageHeight, int
squareSize);

  static
  {
System.loadLibrary("Image_native");
  }

  // variables come after system library
  protected Image cycledImage;   // image after cycling

  protected Thread cycleThread = null;
  protected int delay = 10;   // milliseconds between cycles

  protected static int squareSize  = 10;
  protected static int imageWidth  = 100;
  protected static int imageHeight = 100;

  // holding pixels in memory
  int intArr[];

  public void init()
  {

// Create space for the memory image
intArr = new int[imageWidth * imageHeight];

// Now create the image
imageGen(intArr, imageWidth, imageHeight, squareSize);

// Create the cycled image
cycledImage =
  createImage(
new MemoryImageSource(imageWidth, imageHeight, intArr, 0,
imageWidth));
  }

// Paint simply draws the cycled image
  public synchronized void paint(Graphics g)
  {
//  g.drawImage(cycledImage, 0, 0, this);
g.drawImage(cycledImage, 0, 0, getWidth(), getHeight(), this);
  }

// Flicker-free update
  public void update(Graphics g)
  {
paint(g);
  }

// Cycles the colors and creates a new cycled image. Uses media
// tracker to ensure that the new image has been created before
// trying to display. Otherwise, we can get bad flicker.

  public synchronized void doCycle()
  {
// Flush clears out a loaded image without having to create a
// while new one.
cycledImage.flush();

// Generate new image
imageGen(intArr, imageWidth, imageHeight, squareSize);
// Create the cycled image
cycledImage =
  createImage(
new MemoryImageSource(imageWidth, imageHeight, intArr, 0,
imageWidth));

// When we use waitForID on this image now, it will be regenerated.

MediaTracker myTracker = new MediaTracker(this);
myTracker.addImage(cycledImage, 0);
try
{
// Cause the cycledImage to be regenerated
  if (!myTracker.waitForID(0, 1000))
  {
return;
  }
} catch (Exception ignore) { }

// Now that we have reloaded the cycled image, ask that it
// be redrawn.
repaint();
  }

// Typical threaded applet start and stop
   public void start()
  {
if (cycleThread == null)
{
  cycleThread = new Thread(this, "Cycle");
  cycleThread.start();
}
  }

  public void stop()
  {
cycleThread = null;
  }

// Continually run
  public void run()
  {
Thread myCurrentThread = Thread.currentThread();

while (cycleThread == myCurrentThread)
{
  doCycle();
  try
  {
Thread.sleep(delay);
  } catch (Exception hell) { }
}
  }

  public void actionPerformed(ActionEvent evt)
  {
System.out.println("actionPerformed");
this.stop();
  }

/**
  * application entry point. create window and new set of
  * command-line arguments
 **/
  public static void main (String args[])
  {
JFrame f = new JFrame ("Cycler");
JCMotion motion = new JCMotion();

motion.init ();
f.setSize (imageWidth, imageHeight);
f.getContentPane().add ("Center", motion);
f.setVisible(true);
f.addWindowListener(new WindowCloser());

motion.start ();
  }
}

class WindowCloser extends WindowAdapter
{
  public void windowClosing(WindowEvent e)
  {
Window win = e.getWindow();
win.setVisible(false);
win.dispose();
System.exit(0);
  }
}

==End of the JCMotion.java file =

=Start of the Image_native.c file=

/* JCMotion.h generated by applying javah
 * on the Java class, and contains the
 * function declaration for the native method
 */
#include "JCMotion.h"

/* used for printf */
#include "stdio.h"

/* Signatures of several of these are in JCMotion.h */
static ii = 0;

JNIEXPORT void JNICALL Java_JCMotion_imageGen(
  JNIEnv *env, jobject obj,
  jintArray intArr,
   

Re: Java Media Framework

1999-08-04 Thread Jacob Nikom

Which JMF you are asking about?
Do you mean JMF1.0. 1.1 or 2.0?

Jacob

-=Steve-o=- wrote:

> Sorry if I'm repeating myself, but I'm new to this mailing list...
>
> Anyway, does anyone have any tips or advice on getting Java Media Framework
> (All-platforms) and JDK 1.1.7 to work on Slackware Linux, or should I
> move straight onto 1.2.2?
>
> Thanks for any help in advance.
>
> Steve Clifton.
>
> --
> 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: Food for thought...

1999-08-17 Thread Jacob Nikom

I have feeling that for Sun Java is more important than Solaris.
IMHO they are targeting quickly growing embedded market to sell 
more of their hardware. This market is good place for Java and
Linux, not Solaris.

A lot of embedded and "real-time" software developers are looking
into Linux+Java combinations to develop Intel-based systems. With
Intel you have only choice between Windows and Linux (sorry, forgot 
OS/2). However with Windows you have very little control what is 
going on in the system and hardware-closed programmer hate it.

I think IBM prefers to run Linux, not Windows on their Intel and
non-Intel hardware. Intel is another interesting player in Linux+Java
combination. They developed JMF1.0 and look at Java favorably. They 
run Linux on Merced and they have $250M fund for software development
for Merced. Currently they don't have too many applicants.

Jacob Nikom








Mike Christiansen wrote:
> 
> Riyad Kalla wrote:
> 
> > These are good points.. and I think the reason Sun doesn't support Linux so readily
> > is simply because it would be shooting its self right in the Solaris-Foot. If it
> > provides a high performance, solaris quality Java implementation... they may loose
> > a bit of business. I don't know details of course about this, but that seemed the
> > most readily availble answer.
> >
> 
> I don't think that Linux competes with Solaris in the server market. (at least not in
> the short-term). I think that Linux will hurt NT far-far more. If anything, a Linux
> application server that outgrows its platform is likely to migrate to the "big iron"
> unixes, and with the Java connection, Solaris would be a natural progression.
> 
> >
> > Anyone else have input on this?
> >
> 
> --
> 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: IBM's Java/Linux agenda

1999-08-23 Thread Jacob Nikom

Linux runs well on PowerPC which is CPU for AIX, OS/390, and OS/400. So
for IBM Linux could be MVS (their mainframe OS) for 21 centure as well.

Jacob


Charles Forsythe wrote:
> 
> > And who thinks that the big heads at IBM have other reasons for supporting
> > java [than] ... java hurts M$.
> 
> I don't work for IBM, but here is my best guess at a better reason for
> them to support Java: the "write once run anywhere" promise.
> 
> Consider all of the systems that IBM *currently* ships: AIX, OS/390,
> OS/400, OS/2, and now (drum roll please) Linux.  Not only that, but IBM
> also makes sure that its systems integrate with Windows.
> 
> Maybe they support Linux just to piss of Microsoft, but Java is "the
> Cobol of the 21st Century"* for IBM.  For this reason, IBM has taken
> control of its own Java destiny and is producing the best JVMs around.
> 
> -Charles
> * Rough quote from "Java and the AS/400" (and IBM white paper).  BTW,
> IBM's new Java support for the AS/400 is really cool; it's NOT a JVM.
> 
> --
> 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: IBM's Java/Linux agenda: why JDK1.1.6 port?

1999-08-23 Thread Jacob Nikom

Do you know why IBM ported JDK1.1.6 instead of 1.1.8? I could understand
why they did not pick up 1.2, but 1.1.8 is very stable and capable of.

Jacob

Aravind Selvaraje wrote:
> 
> Agreed.
> 
> Currently, IBM spends more money on Java and Java related products than Sun.
> 
> With their EJB marketing they are promoting the fact that you can develop
> beans on your laptop, test them and when ready to scale drop them on to a
> mid range AIX or AS/400 box or if you want huge grunt, put them on a OS/390.
> The return of the mainframe 
> Of course, you need to look no farther than their support for Linux and Java
> so that they can't be blackmailed by M$ for their dev platforms.
> 
> -- Aravind
> 
> > -Original Message-
> > From: Charles Forsythe [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, 20 August 1999 15:32
> > To: [EMAIL PROTECTED]
> > Subject: IBM's Java/Linux agenda
> >
> >
> > > And who thinks that the big heads at IBM have other reasons for
> > supporting
> > > java [than] ... java hurts M$.
> >
> > I don't work for IBM, but here is my best guess at a better reason for
> > them to support Java: the "write once run anywhere" promise.
> >
> > Consider all of the systems that IBM *currently* ships: AIX, OS/390,
> > OS/400, OS/2, and now (drum roll please) Linux.  Not only that, but IBM
> > also makes sure that its systems integrate with Windows.
> >
> > Maybe they support Linux just to piss of Microsoft, but Java is "the
> > Cobol of the 21st Century"* for IBM.  For this reason, IBM has taken
> > control of its own Java destiny and is producing the best JVMs around.
> >
> > -Charles
> > * Rough quote from "Java and the AS/400" (and IBM white paper).  BTW,
> > IBM's new Java support for the AS/400 is really cool; it's NOT a JVM.
> >
> >
> > --
> > 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: where get bunzip2?

1999-08-31 Thread Jacob Nikom

I think gunzip works as well (/usr/bin/)

Jacob

Roland Silver wrote:
> 
> To use  I need to download and bunzip it with bunzip2.
> 
> I don't think there's a bunzip2 with Red Hat Linux 6.0 -- which I
> use. Where can I get it, for Linux/i386?
> 
> -- Roland Silver <[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: media programming

1999-09-08 Thread Jacob Nikom

Look at URL:
http://java.sun.com/products/java-media/jmf/2.0/

Jacob Nikom

R MUTHUSWAMY wrote:
> 
> hi guys,
> 
> i want to do some video programming. i have decided to use the
> java media api (JMF1.1). what are the versions the JMF1.1 supports and
> can i download the solaris sparc version.
> 
> reply me. it is urgent.
> 
> bye,
> MUTHU.
> 
> --
> 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: Niiiccee...

1999-09-09 Thread Jacob Nikom

I am sure it is something great, but I the response I got was:
tr: no match

Jacob

Riyad Kalla wrote:
> 
> This is to lighten the spirits a little bit, login to a
> Unix/Linux machine and type this:
> 
> echo njdsptpgu tvdlt | tr [b-z] [a-y]
> 
> Best wishes
> 
> --
> 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: Gosling says he wants to support Java on Linux

1999-09-10 Thread Jacob Nikom

> There are so many configurations of Linux, that it is hard to find 
> a version to compile against where users can reliably get applications 
> to work.

I think it is not a major responsibility of a user to get an application
to work reliably on Linux. It is primary responsibility of the
application's
developer and a Linux repackager (RedHat, etc) to make sure that
specific
application runs reliably at specific Linux distributions.

If user wants this application to run on the distribution which is not
intended for, it is the user's problem. This is the way how various
repackagers/distributors could differentiate themselves, providing
maximum
reliably running Linux applications per buck.

SUN could release Java for specific Linux software configuration (not 
necessarily distribution). It could be major selling point for
repackagers
to get that stuff working reliably with their distribution.

> The same problem is not present with MS operating systems because the
> releases remain for a long time (a couple of years).  Users have to
> put up with the bugs for that long though.

Windows have their own good share of released software synchronization
problems with DLL interdependency for different applications.

> Applications compiled for Solaris 5.x will run on most of the OS 
> versions without problems.  This allows users to install quickly and 
> with confidence applications that have been precompiled for that 
> series of operating system versions.

Because Linux and its applications are free, repackagers could force
the users to update their software accordingly to avoid old version
maintenance nightmare. Yes, it is not ideal solution, but commercial
solution is not ideal either. The important point to make easy update

Jacob Nikom

[EMAIL PROTECTED] wrote:
> 
> Jan-Henrik said:
> 
> > AFAIK he's thinking primarily of the different libc versions on Linux,
> > and that Linux distributions comes in different configurations, i.e. a
> > Linux dist. is not really as homogeneous as we like to think it is.
> 
> I think that's a very well put explanation.  There are so many
> configurations of Linux, that it is hard to find a version to compile
> against where users can reliably get applications to work.
> 
> This is a serious problem for the Linux community.  It makes it hard
> for closed source software to be provided on Linux.  Sun are reluctant
> to get into it; several companies that used to provide Linux ports
> have withdrawn them because they can't find a way of providing them
> stably.  When I was a real commercial developer, porting and OS
> versions were the biggest nightmare we had.
> 
> It also affects users, who have to be very aware of which version of
> various different shared libraries they have installed.  Frequently
> collections of software require different, and occasionally
> conflicting, versions of the libraries.  This is fine for systems with
> full-time administrators, but causes other users (like me) no end of
> headaches.
> 
> The same problem is not present with MS operating systems because the
> releases remain for a long time (a couple of years).  Users have to
> put up with the bugs for that long though.
> 
> Apple provide major versions of software every few years with updates,
> which are by and large compatible, every so often.
> 
> There is an argument that Unix is more complex, and this model could
> not easily be applied.  In fact, Sun is a good example of an
> organisation that successfully manages that process.  Applications
> compiled for Solaris 5.x will run on most of the OS versions without
> problems.  This allows users to install quickly and with confidence
> applications that have been precompiled for that series of operating
> system versions.
> 
> If you are under the impression that this is how Linux works too, I
> would suggest that you look again carefully.
> 
> Simon Read
> 
> --
> 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: JNI on linux.

1999-09-14 Thread Jacob Nikom

There is no real difference between JNI on Linux and JNI on other
operating
systems (and not suppose to be). Look at Sun Java tutorial on JNI:
http://java.sun.com/docs/books/tutorial/native1.1/index.html

Take the source code for HelloWorld example and follow the instructions:
after the first step the directory listing will be:
step 1: Writing HelloWorld.java file

my_directory>ls -l
HelloWorld.java

step 2: Java compilation
javac HelloWorld.java

my_directory>ls -l
HelloWorld.java
HelloWorld.class

step 3: Generating HelloWorld.h file  (Don't use .java extension)
javah -jni HelloWorld

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h

step 4: Writing HelloWorldImp.c file
my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c

step 5a: Compilation of C file
gcc -I//homes/nikom/work/Java/jdk1.2/include \
 -I//homes/nikom/work/Java/jdk1.2/include/linux \
 -c HelloWorldImp.c \
 -o HelloWorldImp.o

Notice, you need to provide path to C include directory. 
It is not obvious thing to do.

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c
HelloWorldImp.o

step 5b: creating the shared library
gcc -shared HelloWorldImp.o -o libhello.so

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c
HelloWorldImp.o
libhello.so

step 6: Run the Program
java HelloWorld

Hello world!


Good luck,

Jacob Nikom


Justin Lawler wrote:
> 
> Hi all,
> 
> is there anywhere i can get information/documentation on using JNI on linux.
> I know you use the javah tool to create a header file for your c program, but
> where do you go from there.
> 
> any help much appreciated,
> 
> Justin.
> 
> --
> 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: voice program

1999-09-23 Thread Jacob Nikom

Look at JMF2.0beta. I think it should run on Linux.
http://java.sun.com/products/java-media/jmf/2.0/documentation.html

Jacob Nikom

R MUTHUSWAMY wrote:
> 
> hi,
> i am interested in the VoIP programming. have anybody done any
> kind of programming in the voice over ip area. can anybody give me some
> url's for that area.
> 
> Thanx in advance,
> bye,
> MUTHU.
> 
> --
> 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: Float -> Double conversion bug ?

1999-09-24 Thread Jacob Nikom

I think there are specs like strict math in Java, which allows to use
more
than 64 bits of precision for intermediate calculations - you know
Intel's
x86 FPU has 80 bits. There was a discussion about utilizing those bits
in Java.

Jacob Nikom

Juergen Kreileder wrote:
> 
> >>>>> hilbrink  writes:
> 
> >> This most likely has nothing to do with the Java
> >> implementation, but of the floating point characteristics of
> >> the underlying machine.  If you set a double (in C) to 0.3,
> >> it's value is not necessarily 0.3 but something very very
> >> close:
> 
> hilbrink> well yes that is what I would expect, only number ^2
> hilbrink> could be represented properly, but what I think happens
> hilbrink> is that the 'new' double is not properly initialized, ie
> hilbrink> all bytes are not set to '0'. Apparently the exponent
> hilbrink> part is transferred correctly, but the mantissa part is
> hilbrink> not, hence the error in the mantissa.
> 
> No.  You already lose precision when you store 0.3 in a float.  There
> is no way to get higher precision by converting this value to a
> double.
> 
> 0.3f:
> 00101 00110011001100110011010
> 
> (double) 0.3f:
> 0 001 001100110011001100110100
> 
> 0.3d:
> 0 001 0011001100110011001100110011001100110011001100110011
> 
> hilbrink> But what I would like to know is if other people
> hilbrink> experience the same, how does a JVM under windows
> hilbrink> behave.
> 
> The result will be the same.
> 
> Juergen
> 
> --
> Juergen Kreileder, Blackdown Java-Linux Porting Team
> http://www.blackdown.org/java-linux.html
> 
> --
> 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: required Libraries

1999-10-06 Thread Jacob Nikom

Hi,

I am interested in this discussion, but I am trying to convert it into
more 
plain English. I always thought that the lightweight components are
peerless. 
They don't need X libraries and work "directly" with OS and hardware. 

Swing was claimed as lightweight component based package, so it should
not 
need X or Windows. On contrary, AWT was claimed to be heavyweight based 
component package, that is why it needs X - is it true? Is it different
on 
Solaris, Windows or Linux?

Also, "libXm appears to be statically linked into libawt.so" - does it
mean
that X modules were compiled and placed into libawt.so library, so in
reality 
you call X, but you don't need to link with it?

Thank you,

Jacob Nikom

Nathan Meyers wrote:
> 
> Jeff Galyan wrote:
> >
> > Java *always* requires Motif and X libraries. Even on Solaris. End of
> > story.
> 
> "Requires" meaning that Blackdown requires an *external* libXm? Not
> necessarily. JDK1.2pre2 certainly doesn't (libXm appears to be
> statically linked into libawt.so), and I believe something similar was
> done for some of the JDK1.1 executables and/or libraries.
> 
> Nathan
> 
> >
> > Carsten Hoeger wrote:
> > >
> > > On Sat, Oct 02, Jeff Galyan wrote:
> > >
> > > > Actually, libXm.so is Motif, which is required by AWT, and therefore
> > > > Java. You'll need to get a Motif distribution (I use RedHat Motif 2.1.10
> > > > with no problems).
> > >
> > > That's not true!
> > >
> > > There are both, static and dynamic linked versions of the java
> > > vm. The dependency to libXm results from the dynamical linked
> > > version.
> > >
> > > The static linked version of java _does_ _not_ _need_ Motif
> > > Runtime Libraries!!!
> > >
> > > --
> > > mit freundlichen Gruessen,
> > >
> > > Carsten Hoeger  - SuSE Professional Services -
> > >
> > > SuSE GmbH,   Schanzaeckerstr. 10,  90443 Nuernberg, Germany
> > > Tel: +49-911-7405356 Mo-Fr 09-17.00,   Fax: +49-911-3206727
> > > http://www.suse.de/bsupport/index.html  Email: [EMAIL PROTECTED]
> > >
> > > Braune Blaetter schmeissen sich vom Baum und sind tot.
> > > Es ist Herbst.  (O. Kalkofe)
> >
> > --
> > Jeff Galyan
> > http://www.anamorphic.com
> > http://www.sun.com
> > jeffrey dot galyan at sun dot com
> > talisman at anamorphic dot com
> > Sun Certified Java(TM) Programmer
> > ==
> > Linus Torvalds on Microsoft and software development:
> > "... if it's a hobby for me and a job for you, why are you doing such a
> > shoddy job of it?"
> >
> > The views expressed herein do not necessarily reflect those of my
> > employer.
> >
> > Sun Microsystems, Inc., has no connection to my involvement with the
> > Mozilla Organization.
> >
> > --
> > 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]



Changing the font on Swing slider

1999-10-07 Thread Jacob Nikom

Hi,

I am trying to change the font style and size on some 
of the Swing widgets, mostly JSlider (tick marks numbers), TabbedPanes
(tab names), etc. You cannot not set them up
directly with setFont. 

I could not find any information how to do it. Do you 
have any idea how to do it?

Thank you,

Jacob Nikom


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



Re: Changing the font on Swing slider

1999-10-08 Thread Jacob Nikom

Do you know where the information about 
current settings is located?

Jacob

[EMAIL PROTECTED] wrote:
> 
> hmmm... if that doesn't work, you might try overriding the PLAF for that
> component.
> 
> On Thu, 7 Oct 1999, Jacob Nikom wrote:
> 
> > Hi,
> >
> > I am trying to change the font style and size on some
> > of the Swing widgets, mostly JSlider (tick marks numbers), TabbedPanes
> > (tab names), etc. You cannot not set them up
> > directly with setFont.
> >
> > I could not find any information how to do it. Do you
> > have any idea how to do it?
> >
> > Thank you,
> >
> > Jacob Nikom
> >
> >
> > --
> > 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: Api Linux

1999-10-08 Thread Jacob Nikom

If you have to call C routine from Java, use JNI.
It works well under Java on Linux.

Jacob Nikom

Rogério Garibalde Miranda wrote:
> 
> How can I make a call to an API of the linux using java? I want to add an
> user to the linux, for example. thank you.
> 
> Rogerio G Miranda
> 
> --
> 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: Changing the font on Swing slider

1999-10-11 Thread Jacob Nikom

Hi Philippe,

Thank you very much for your suggestion - it work very well
with TabbedPane component. However, when I tried to apply it
to SLider widget, it did not work.

I got the info about all PLAF properties by calling
UIManager.getDefaults().
Here is the simple program:

import java.util.*;

class Plaf
{
   public static void main(String[] args)
   {
  Hashtable defaultProps = UIManager.getDefaults();
  
  Enumeration enum = defaultProps.keys();
  while(enum.hasMoreElements())
  {
 Object key = enum.nextElement();
 System.out.println("Property: " + key); 
 System.out.println("Value:" + defaultProps.get(key) +
'\n');
  }
   }
}

However, analyzing the long list of properties I found no Slider font.
This is strange, because Slider does have font for its title and for
its ticks. Do you think I made some mistakes and the font property
does exist for Slider?

Jacob



Philippe Hacquin wrote:
> 
> I had similar problems using diffrenet Swing components.
> Try
> UIManager.put("TabbedPane.font", myFont);
> 
> and other parameters that you can retrieve in Swing's WindowsLookAndFeel.java or
> other LAF classes.
> 
> On Sat, 09 Oct 1999, Alex M. wrote:
> > Yeah... I think it is in com.sun.plaf.DefaultLookAndFeel or something like
> > that.
> >
> > On Fri, 8 Oct 1999, Jacob Nikom wrote:
> >
> > > Do you know where the information about
> > > current settings is located?
> > >
> > > Jacob
> > >
> > > [EMAIL PROTECTED] wrote:
> > > >
> > > > hmmm... if that doesn't work, you might try overriding the PLAF for that
> > > > component.
> > > >
> > > > On Thu, 7 Oct 1999, Jacob Nikom wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am trying to change the font style and size on some
> > > > > of the Swing widgets, mostly JSlider (tick marks numbers), TabbedPanes
> > > > > (tab names), etc. You cannot not set them up
> > > > > directly with setFont.
> > > > >
> > > > > I could not find any information how to do it. Do you
> > > > > have any idea how to do it?
> > > > >
> > > > > Thank you,
> > > > >
> > > > > Jacob Nikom
> > > > >
> > > > >
> > > > > --
> > > > > 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]
> > >
> >
> >
> > --
> > 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: Benchmark results for Linux JVM's.

1999-10-13 Thread Jacob Nikom

Hi,

Does anybody know comparable benchmarks for Java, C and C++ tasks?
I am interested in comparative speed of the languages - any platform
is good. So far I heard only about two years old Java/C++ comparison
on NT, which stated similarity in speed under some conditions.

Thanks,

Jacob Nikom

Raja Vallee-Rai wrote:
> 
> Hello,
> 
> We have formally evaluated the different virtual machines available for
> Linux
> and thought it would be worthwhile to share the results with the Linux
> community.
> 
> The following tests were conducted on an unloaded dual processor Pentium
> II/400mhz running Debian GNU/Linux (kernel 2.2.8).  Each benchmark
> execution was
> repeated ten times.  We discarded the maximum and minimum results, and
> averaged
> the remaining 8 execution times.
> 
> The first 9 benchmarks come from the specJVM98 benchmark suite
> (http://www.spec.org), and the last two benchmarks come from our own
> private
> collection.
> 
> base(s): time in seconds to run under blackdown jdk 1.2, pre-release 2,
> with jit.
> 
> sunint: speedup (base time/this time) of the blackdown jdk1.2,
> pre-release 2,
> with no jit.
> 
> borjit: speedup of blackdown jdk1.2, pre-release 2, with the Borland jit
> installed (http://www.borland.com)
> 
> ibmjit: speedup of the AlphaWorks IBM 1.1.8 JIT
> (http://www.alphaworks.ibm.com)
> 
> A # indicates that the run failed validity checks.
> 
>base(s)sunintborjitibmjit
>  check .84 -1.33 -1.25 #1.75 -
>   compress   65.61 - .15 -1.07 -2.42 -
> db  148.43 - .57 - .98 -2.98 -
>   jack   64.50 - .43 -1.35 -3.65 -
>  javac   75.67 - .54 -1.21 -2.51 -
>   jess   50.86 - .47 -1.44 -2.67 -
>  mpegaudio   54.61 - .15 -1.19 #2.32 -
>   mtrt   40.32 - .41 -1.78 -2.79 -
>   raytrace   55.56 - .45 -1.92 -3.04 -
>  sablecc-w   42.57 - .58 -1.06 -2.32 -
> soot-j  132.93 - .69 -1.25 -2.26 -
> 
> The conclusions are fairly obvious.  Now, if only IBM had a jit for
> 1.2...  We
> also evaluated shujit and tyajit, but they were unable to run most of
> the
> benchmarks correctly. Stay tuned for a comparison of NT Java Virtual
> Machines in
> the near future, on the same hardware.
> 
> Permission is granted to re-distribute this e-mail in any medium as long
> as it
> remains unchanged.  All trademarks belong to their respective owners.
> 
> To everyone working on Java for Linux: keep up the great work! :)
> 
> Best regards,
> 
> Raja Vallee-Rai ([EMAIL PROTECTED])
> Sable Research Group
> 
> --
> 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: Benchmark results for Linux JVM's.

1999-10-13 Thread Jacob Nikom

Hi,

It was the article in one of the Java magazines two years ago.
I don't remember which one.  They claimed that for numerical
operations the speed was comparable.

In very crude and simple loop test on Linux with gcc -O3
and Blackdown Java (I assume jit was on) the ratio Java/C
speed was 3 - 4 times.

Jacob

[EMAIL PROTECTED] wrote:
> 
> Benchmarks comparisons between Java and C/C++.
> 
> Thanks.
> 
> Lee
> 
> -Original Message-
> From: Jacob Nikom [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 13, 1999 11:35 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Benchmark results for Linux JVM's.
> 
> Hi,
> 
> What information you mean?
> 
> Jacob
> 
> [EMAIL PROTECTED] wrote:
> >
> > Hi,
> >
> > Could you please let me share any information you get because I'm looking
> > for the same info.
> >
> > Thanks.
> >
> > Lee
> >
> > -Original Message-
> > From: Jacob Nikom [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 13, 1999 10:12 AM
> > To: Raja Vallee-Rai
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: Benchmark results for Linux JVM's.
> >
> > Hi,
> >
> > Does anybody know comparable benchmarks for Java, C and C++ tasks?
> > I am interested in comparative speed of the languages - any platform
> > is good. So far I heard only about two years old Java/C++ comparison
> > on NT, which stated similarity in speed under some conditions.
> >
> > Thanks,
> >
> > Jacob Nikom
> >
> > Raja Vallee-Rai wrote:
> > >
> > > Hello,
> > >
> > > We have formally evaluated the different virtual machines available for
> > > Linux
> > > and thought it would be worthwhile to share the results with the Linux
> > > community.
> > >
> > > The following tests were conducted on an unloaded dual processor Pentium
> > > II/400mhz running Debian GNU/Linux (kernel 2.2.8).  Each benchmark
> > > execution was
> > > repeated ten times.  We discarded the maximum and minimum results, and
> > > averaged
> > > the remaining 8 execution times.
> > >
> > > The first 9 benchmarks come from the specJVM98 benchmark suite
> > > (http://www.spec.org), and the last two benchmarks come from our own
> > > private
> > > collection.
> > >
> > > base(s): time in seconds to run under blackdown jdk 1.2, pre-release 2,
> > > with jit.
> > >
> > > sunint: speedup (base time/this time) of the blackdown jdk1.2,
> > > pre-release 2,
> > > with no jit.
> > >
> > > borjit: speedup of blackdown jdk1.2, pre-release 2, with the Borland jit
> > > installed (http://www.borland.com)
> > >
> > > ibmjit: speedup of the AlphaWorks IBM 1.1.8 JIT
> > > (http://www.alphaworks.ibm.com)
> > >
> > > A # indicates that the run failed validity checks.
> > >
> > >base(s)sunintborjitibmjit
> > >  check .84 -1.33 -1.25 #1.75 -
> > >   compress   65.61 - .15 -1.07 -2.42 -
> > > db  148.43 - .57 - .98 -2.98 -
> > >   jack   64.50 - .43 -1.35 -3.65 -
> > >  javac   75.67 - .54 -1.21 -2.51 -
> > >   jess   50.86 - .47 -1.44 -2.67 -
> > >  mpegaudio   54.61 - .15 -1.19 #2.32 -
> > >   mtrt   40.32 - .41 -1.78 -2.79 -
> > >   raytrace   55.56 - .45 -1.92 -3.04 -
> > >  sablecc-w   42.57 - .58 -1.06 -2.32 -
> > > soot-j  132.93 - .69 -1.25 -2.26 -
> > >
> > > The conclusions are fairly obvious.  Now, if only IBM had a jit for
> > > 1.2...  We
> > > also evaluated shujit and tyajit, but they were unable to run most of
> > > the
> > > benchmarks correctly. Stay tuned for a comparison of NT Java Virtual
> > > Machines in
> > > the near future, on the same hardware.
> > >
> > > Permission is granted to re-distribute this e-mail in any medium as long
> > > as it
> > > remains unchanged.  All trademarks belong to their respective owners.
> > >
> > > To everyone working on Java for Linux: keep up the great work! :)
> > >
> > > Best regards,
> > >
> > > Raja Vallee-Rai ([EMAIL PROTECTED])
> > > Sable Research Group
> > >
> > > --
> > > 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: ddd as a java debugger

1999-10-13 Thread Jacob Nikom

Hi,

Do you know anything about GCJ - latest Cygnus tool for Java
compilation and debugging?

Jacob Nikom

Nathan Meyers wrote:
> 
> "Daniel P. Zepeda" wrote:
> >
> > You can find DDD at:
> >
> > http://www.cs.tu-bs.de/softech/ddd/
> >
> > Just grab the sources, untar, run configure, make, make install. It was
> > that easy for me. Oh, you may need to get Lesstiff and some XPM library
> > stuff, but the information for that is included in the documentation.
> >
> > Keep in mind that DDD is a front end for jdb. Any problems that you might
> > have with jdb will be present in DDD.
> 
> Which, in my own experience, means that DDD quickly stops working with
> jdb 1.2.
> 
> Maybe there's an option I've missed, but 1.2 debugging under Linux is a
> rough ride right now. jdb is flaky, anything built on top of jdb (like
> DDD) is flaky, the wonderful Jikes debugger doesn's really work under
> 1.2, and the JPDA library - used by newer Java debuggers - is not yet
> available on Linux.
> 
> The earlier recommendation to debug with print statements was not far
> off the mark. I've had more success that way than I have with debuggers
> under 1.2. That'll change in time, but not this week :-(.
> 
> Nathan
> 
> >
> > Thus spake [EMAIL PROTECTED] on Wed, 13 Oct 1999:
> > > First let me say thanks to all of you who responded to my original
> > > newbie questions. I actually made some progress with my screwy code as a
> > > result of your suggestions. Very Cool. I still have problems to solve,
> > > though.
> > >
> > > Being something of a doit-yourself type (as I imagine we all are), I'm
> > > still trying to put together a debugging environment that is
> > > 'satisfying'. So far I've tried BlueJ, Wipeout and jdb. Wipeout has a
> > > lot of promise, but seems a little unstable. This could be because I
> > > have only 32MB of memory on the system. jdb is very stable, but rather
> > > tedious in command syntax and more than a little brief with respect to
> > > documentation. I could not get BlueJ to even start up.
> > >
> > > Within the past couple of days I swapped messages with someone here on
> > > the list regarding ddd. After mulling it over a bit I've decided I
> > > oughtta give it a try.
> > >
> > > Can you anyone provide me with resources for configuration and use
> > > under X on debian 2.0 linux/jdk 1.2?
> > >
> > > Thanks a Bunch, Folks =-)
> > >
> > > James
> > >
> > >
> > > --
> > > It's not the size of the dog in the fight |James G. Stallings II
> > > that counts, but rather the size of the   | http://angelfire.com/id/videoranger
> > >   fight in the dog.   |  ''Live Long and Prosper''
> > >
> > >
> > >
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> > --
> > Daniel P. Zepeda
> > [EMAIL PROTECTED]
> >
> > "In complete darkness, we are all the same. Only our knowledge and wisdom
> > separates us there." -- J. Jackson
> >
> > --
> > 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: JNI on linux.

1999-10-13 Thread Jacob Nikom

Hi,

I am pretty sure, if you remove your libhello.so library 
completely from your directory, you are going to get exactly 
the same message. It means that your loader cannot find your 
library libhello.so, even if it is in the directory.

I don't think LD_LIBRARY_PATH matters. Verify that you 
have . in your path variable and classpath as well.

You also can try the command
java -classpath .;$JAVA_HOME; HelloWorld

JAVA_HOME is the /bin directory where you java, javac, 
and other Java executables are located.

Good luck,

Jacob

Vijo Cherian wrote:
> 
> i did everything as mentioned...
> and at `java HelloWorld` , i got the following error
> 
> vijol@darkstar] ~/jni$ java HelloWorld
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no hello in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(Compiled Code)
> at java.lang.Runtime.loadLibrary0(Compiled Code)
> at java.lang.System.loadLibrary(Compiled Code)
> at HelloWorld.(HelloWorld.java:7)
> 
> what can be done to get this working?
> 
> i have libhello.so in the current directory and LD_LIBRARY_PATH points
> there, too.
> 
> thanx in advance,
> 
> /l / . .  _
>  l/ /l/l/(_) .
>   /l
>  (_l


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



Re: ddd as a java debugger

1999-10-13 Thread Jacob Nikom

Hi Matt,

Thank you for your info about GCJ. Have you ever try it? How well it
works?

I looked at its documentation and found it a little confusing. The
compiler
consists of two parts + debugger. Also there is visual front end to this
debugger, Insight.

The installation of each part consists of "install", "build" and
"configure"
tasks, overall 9 tasks (another task, "test" is optional). I even did
not 
mention Insight yet. Also, they mentioned about some compiler
limitations, 
like it does not support inner classes. Do you think it is important?

Jacob Nikom

Matt Welsh wrote:
> 
> > Being something of a doit-yourself type (as I imagine we all are), I'm
> > still trying to put together a debugging environment that is
> > 'satisfying'.
> 
> Although not directly relevant to the Blackdown JDK, GCJ (the Java front-end
> to GCC) supports Java debugging with GDB. This is amazingly useful: you can
> debug a Java program with native methods all within the same debugging
> environment, examine the C->Java stack trace, debug programs which use
> multiple (native) threads, and so forth.
> 
> Matt Welsh, UC Berkeley
> 
> --
> 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: reminder - this list is for Java & Linux

1999-10-15 Thread Jacob Nikom

Hi,

I don't see too much harm in asking little more generic 
questions. One of our purpose is to learn from someone 
else problems. The more good and meaningful problems we 
have, the better.

It is really difficult to classify the question before you know
the answer: is it Java - Linux, Linux or Java problem.

Currently our traffic is not bad at all. We have about 10 - 15
messages per day. This is not a lot comparing for example with 
Java for Media Framework listserver - more than 30 per day.

Less than five usually means that the listserver is dying.

Jacob Nikom



Nicholas Wright wrote:
> 
> Hi
> 
> > We've had a lot of discussions on the list recently that were generic
> > questions about Java, questions that had nothing to do with Linux. I'm
> > sending this note to remind everyone that this mailing list is about
> > Java on Linux. If you have generic Java questions, they do not belong
> > here. I encourage list members not to reply to questions unless they
> > have some interest to Linux users.
> > I apologize if this sounds unreasonable, but it's important that we
> > keep this mailing list focussed on Linux. There are plenty of other
> > places to ask generic Java questions.
> 
> The same problem exists on the Advanced-Java list... kinda but it's
> more a, "Is that question advanced?" type issue.  Even if it's not, somebody
> else answers the question and so people keep asking.
> 
> They've considered moving the group to a "more" advanced-java mailing list,
> but then it's just getting silly.  Eventually you'll get the
> Super-elite-extremely-really-really advanced java mailing list...
> 
> I suppose what I'm really trying to say is: good sentiment, but don't expect
> miracles.
> 
> Nicholas
> 
> Anyways, I've got this Java program and it doesn't compile ;)
> 
> ===
> Nicholas WrightImperial Software Technology   Software Engineer
> ---
> Email : [EMAIL PROTECTED] or [EMAIL PROTECTED]
> Berkshire House120 Hawthorne Ave, #101
> 252 Kings Road Palo Alto
> Reading RG1 4HP United Kingdom California 94301 USA
> Tel: +44 118 958 7055  Tel: 650 688 0200
> FAX: +44 118 958 9005  FAX: 650 688 1054
> ===
> **  VISAJ AT http://www.ist.co.uk/visaj  **
> ===
> 
> --
> 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]



Functional difference between JDK 1.1.8 and 1.2

1999-10-19 Thread Jacob Nikom

Hi,

What are the functional differences between JDK 1.1.8 (IBM) 
and Blackdown 1.2? Do they have any diferent API?

I know that Swing for 1.1.8 is not a part of the JDK as for 1.2. 
Is Java2D in the 1.1.8?

Thank you,

Jacob Nikom


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



Re: Java 2

1999-11-01 Thread Jacob Nikom

I think Blackdown port is Java 2. What specific package do you need?

Jacob Nikom

[EMAIL PROTECTED] wrote:
> 
> Does anyone know even roughly when Java 2 will be ported to Linux?
> 
> I am planing to start a project, and would prefer to wait for Java 2 if
> it won't be too long.
> 
> Thanks,
> Dick Kreutzer
> AmeriCom Inc.
> 
> --
> 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]



Swing, Threads and InvokeLater() method

1999-01-02 Thread Jacob Nikom

Hi,

I wrote small animation application which uses multiple threads
and I have some problems running it on my Linux machine. Generally,
I do the following:
1. In one thread I calculate my image using MemoryImageSource method
   (time-consuming task). 
2. Stop and start my Animation using buttons.
3. Close the window while animation loop is running.

I implemented it using InvokeLater() method. The animation loop 
calls AnimatedImage calculation routine and after that uses 
InvokeLater() method according to Java Tutorial suggestion. I also 
used thread interruption method to stop the tread.

On Linux with Blackdown JDK with green threads my stop button does 
not work. It cannot get the control - my application is always busy 
doing animation image calculations and does not give up the control. 
I also cannot close the application window when my animation is running.
I can do everything on Win98 and with native threads.

iHowever, when I run it with native threads it complains in init()
method:

Exception occurred during event dispatching:
java.lang.NullPointerException
at sun.awt.image.BufferedImageGraphics2D.drawImage(Compiled Code)
at AnimationPanel.paintComponent(Compiled Code)
at javax.swing.JComponent.paint(Compiled Code)
at javax.swing.JComponent.paintChildren(Compiled Code)
at javax.swing.JComponent.paint(Compiled Code)
at javax.swing.JComponent.paintChildren(Compiled Code)
at javax.swing.JComponent.paint(Compiled Code)
at javax.swing.JComponent.paintChildren(Compiled Code)
at javax.swing.JComponent.paint(Compiled Code)
at javax.swing.JLayeredPane.paint(Compiled Code)
at javax.swing.JComponent.paintChildren(Compiled Code)
at javax.swing.JComponent.paint(Compiled Code)
at java.awt.Container.paint(Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Window.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)

I could use SwingWorker class, but I thought there is simpler 
solution without it. Here is my code (I could not make it shorter).
It compiles and runs on Linux RedHat 6.0, 2.2.5-15 version, I use
Blackdown JDK 1.2. My machine is Pentium III, 500MGZ and I have
192 MB of main memory. For Linux I run it with green threads using
 -green option. On Win98 I use SUN's JDK 1.2.1. without -green.

If you think I designed it wrongly, please, tell me so. I am not
very experienced in Threads.

Thank you,

Jacob Nikom

PS: I put some print statements to trace the execution better


//=== beginning of the file ThreadPanel.java ==
import java.awt.*;
import java.awt.event.*;
import javax.swing.*; 
import javax.swing.border.*; 

class ThreadPanel extends JPanel implements Runnable
{
static AnimationPanel animationPanel;

JButton startButton;
JButton stopButton;

Color backgroundColor = new Color(0.433f,0.691f,0.641f);
Border spaceBelow = BorderFactory.createEmptyBorder(0, 0, 5, 0);

public Thread videoThread = null;

// simply very big variable to continue the loop forever
int NUMLOOPS = 10; 
// Drawing speed control variable - the smaller the faster drawing
int INVERTED_DRAWING_SPEED = 10;

ThreadPanel() 
{
  super();
  System.out.println("Start  ThreadPanel consructor");
  this.setLayout(null);
  this.setBounds(0,0, 200,200);
  this.setBackground(Color.blue);
  
  startButton = new JButton("Start");
  startButton.setBounds(5,5, 100, 30);
  startButton.setBackground(Color.green);
  startButton.addActionListener(startListener);
  startButton.setEnabled(true);
  
  stopButton = new JButton("Stop");
  stopButton.setBounds(5,40, 100, 30);
  stopButton.setBackground(Color.red);
  stopButton.addActionListener(stopListener);
  stopButton.setEnabled(false);
  
  
  animationPanel = new AnimationPanel();
  animationPanel.setSize(200,200);
  animationPanel.setBounds(5,80, 100,100);
  animationPanel.setBackground(new Color(0.433f,0.691f,0.641f));
  animationPanel.setForeground(new Color(0.001f,0.300f,0.900f));
  
  this.add(startButton);
  this.add(stopButton);
  this.add(animationPanel);

  System.out.println("Finish ThreadPanel consructor");
}

// Typical threaded applet start and stop
  public void start()
  {
System.out.println("Start  start");
if (videoThread == null)
{
  videoThread = new Thread(this, "Cycle");
  videoThread.start();
}
System.out.println("Finish start");
  }

  public void st

Re: Compiling shared objects for JNI

1999-01-02 Thread Jacob Nikom

Here I wrote my own tutorial for creating JNI "Hello, World!"
application.
I think it is more detailed than the SUN's one.

Try it,

Jacob Nikom

Tutorial 

"In the "Lesson: Compiling and Running a Java Program with a Native
Method" the tutorial 
author described six steps in writing JNI program:
1. Writing Java program with class declaring the native method.
2. Compile The Java class
3. Create a header file.
4. Write C language implementation of the native method
5. Compile the header and implementation files into shared library file
6. Run the Java program

I found that most of problems happen on the step 5 - creating shared
libraries. 
To make things simpler I suggest to split step 5 into two steps:
5a. Compilation of; C language implementation of the native method
5b. Linking all stuff and creating the shared library.

I think it would be nice to be more specific and show the directory
content for 
each step. For example, after the first step the directory listing will
be:

step 1: Writing HelloWorld.java file

my_directory>ls -l
HelloWorld.java

step 2: Java compilation
javac HelloWorld.java

my_directory>ls -l
HelloWorld.java
HelloWorld.class

step 3: Generating HelloWorld.h file  (Don't use .java extension)
javah -jni HelloWorld

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h

step 4: Writing HelloWorldImp.c file using vi editor
my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c

step 5a: Compilation of C file
gcc -I//homes/nikom/work/Java/jdk1.2/include \
 -I//homes/nikom/work/Java/jdk1.2/include/linux \
 -c HelloWorldImp.c \
 -o HelloWorldImp.o

Notice, you need to provide here the path to C include directory. 
It is not obvious thing to do and you have to tell clearly 
about it to the user.

My LD_LIBRARY_PATH is:
LD_LIBRARY_PATH=.:/local/lib:/usr/lib:/usr/lib/X11

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c
HelloWorldImp.o

step 5b: creating the shared library
gcc -shared HelloWorldImp.o -o libhello.so

my_directory>ls -l
HelloWorld.java
HelloWorld.class
HelloWorld.h
HelloWorldImp.c
HelloWorldImp.o
libhello.so

step 6: Run the Program
java HelloWorld

Hello world!


Kevin McWhirter wrote:
> 
> How does one compile/link the shared object for JNI modules.
> 
> Here is an example the shows the problems I am having.  I follow the steps
> in the Tutorial; namely:
> 1)  Create Java code (HelloWorld.java)
> 2)  Compile
> 3)  Create header for stubs (HelloWorld.h)
> 4)  Create C/C++ code (HelloWorld.C)
> 5)  Compile/link with jni.h
> 6)  Set LD_LIBRARY_PATH
> 7)  Execute
> 
> I end up with the following error message when I try to execute:
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /home/klmcw/src/Java/JNI/libhwrld.so: /home/klmcw/src/Java/JNI/libhwrld.so:
> ELF file's phentsize not the expected size
> 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 HelloWorld.(HelloWorld.java:15)
> 
> What is this ELF file phentsize error about?  Any ideas?  Thanks in advance.
> 
> I have included the source below just in case.
> Kevin
> 
> -+-+-+-+-+-+-+-+-+-+-+-CUT-+-+-+-+-+-+-+-+-+-+-+-
> HelloWorld.java
> class HelloWorld {
> String s = null;
> 
> public HelloWorld() {
> s = HelloWorldAux();
> }
> 
> public native String HelloWorldAux();
> 
> public String toString() {
> return this.s;
> }
> 
> static {
> System.loadLibrary("hwrld");
> }
> 
> static public int main(String[] args) {
> try {
> HelloWorld hw = new HelloWorld();
> 
> System.out.println(hw.toString());
> } finally {
> return 0;
> }
> }
> }
> -+-+-+-+-+-+-+-+-+-+-+-CUT-+-+-+-+-+-+-+-+-+-+-+-
> HelloWorld.C
> 
> #include "HelloWorld.h"
> 
> JNIEXPORT jstring JNICALL
> Java_HelloWorld_HelloWorldAux(JNIEnv *jenv, jobject jobj)
> {
> static char hw[] = "Hello, World!";
> 
> return jenv->NewStringUTF(hw);
> }
> -+-+-+-+-+-+-+-+-+-+-+-CUT-+-+-+-+-+-+-+-+-+-+-+-
> Makefile
> 
> INCLUDES=-I/opt/web/jdk1.2/include -I/opt/web/jdk1.2/include/linux
> 
> CXXFLAGS=-c -fpic -O2 $(INCLUDES)
> 
> all: libhwrld.so
> 
> libhwrld.so: HelloWorld.C HelloWorld.h
> g+

Re: JNI-Linking/loading .so objects used by c code

1999-01-03 Thread Jacob Nikom

Check the names of your native methods in .java, .h and .cxx files
Are they the same (with respect to JNI requirements)?

Jacob Nikom

Raj Patel wrote:
> 
> Hi everybody,
> I am having trouble linking/loading  *.so
> objects that are used by my C++ code.  Does anybody know how should i
> load them??
> 
> I have a java program and  a C++ file.
> Using JNI i created .so object and loaded using loadLibrary() in my java
> program.
> Now the problem is i can not access my .so objects(not the one i created
> using JNI but the other one that is used by my C++ code) from my java
> program it hangs there and does not do anything!!  So i tried to load
> all other .so objects used by C++ code using loadLibrary in my java
> program but then i get the errors shown at the end.
> 
> How do i include other .so objects used by my C++ file??
> I tried to use loadLibrary() to load other .so objects but it can not
> load one of my .so object!!  Is this the right way to deal with it??  If
> so why it is not loading it??
> 
> /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so:
> undefined symbol: __tiQ23RTI9Exception (libfedtime.so)
> java.lang.UnsatisfiedLinkError: no fedtime in shared library path
> Error loading libfedtime.so
> SIGSEGV   11*  segmentation violation
> stackbase=0x413e3000, stackpointer=0x413e2150
> 
> Full thread dump:
> "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW)
> prio=5
> javax.swing.TimerQueue.run(TimerQueue.java:236)
> java.lang.Thread.run(Thread.java)
> "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, state:CW)
> prio=9
> java.lang.Object.wait(Object.java)
> sun.awt.AWTFinalizer.run(AWTFinalizer.java:40)
> "Screen Updater" (TID:0x40668db0, sys_thread_t:0x41445e0c, state:CW)
> prio=4
> java.lang.Object.wait(Object.java)
> sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70)
> sun.awt.ScreenUpdater.run(ScreenUpdater.java:90)
> "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW)
> prio=5
> java.lang.Thread.run(Thread.java)
> "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R)
> prio=5
> "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c,
> state:R) prio=5 *current thread*
> java.lang.Runtime.loadLibrary(Runtime.java)
> java.lang.System.loadLibrary(System.java)
> FSDBconnect.(FSDBconnect.java:22)
> 
> I know i don't have any trouble with my shared object used by C++ code
> because i tried to run my C++ part from test C++ code and everything
> works fine.  So i believe i am missing how should i load or include
> those .so objects used by C++ code?
> 
> -Raj
> 
> --
> 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: Thread in the Linux's JVM

1999-11-08 Thread Jacob Nikom

Hi,

Thank you for bringing up this question. I also have problems with
multiple threads in Linux. In my case the behavior of threads with
JNI is different from pure Java behavior.

I use SwingWorker class. If I don't have JNI methods I don't have
to use yield() method. If I replace my Java methods with JNI calls
I must use yield(), otherwise the application simply does not work.
There is no mentioning of yield() method in any SwingWorker-related
documentation.

It would be nice to know more about multithreading features of Linux
JVM.

Jacob Nikom

> Evandro Luquini wrote:
> 
> Hi,
> In the JavaWord article called "programming Java threads in the real
> world, Part 1(
> http://www.javaworld.com/jw-09-1998/jw-09-threads.html)", the author
> sad that "Java's promise of platform independence falls flat on its
> face in the threads arena". If you read this paper you will can see
> two plataform example : NT and Solaris.
> 
> Major question is what scheduling is implemented by the Linux JVM and
> the Linux OS. Does it use a nonpreemptive our preemptive scheduler ?
> 
> The other important question is about what thread's architecture is
> implement by Linux O.S. I am asking it because in the sun's paper
> "Multithreading: General And Java-Specific Information
> 
>(http://www.sun.com/solaris/java/wp-java/4.html;$sessionid$5CBVN2YAAI4VTAMW0JZE3NUBS1JHEUDO)"
> sad : "Understanding the architectural advantages of one native MT
> environment/architecture over another is critical to an understanding
> of the advantages of one Java implementation over another. Since a
> typical JVM runtime is implemented on top of the traditional platform,
> a richer, architecturally superior MT platform will obviously
> translate to a superior Java MT environment for Java applications on
> that platform. The native OS threads model greatly influences Java
> application performance."
> 
> Thanks


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



Re: silly newbie question

1999-11-08 Thread Jacob Nikom

Use JAVA_HOME environment variable and assign your classpath to it.

Jacob Nikom

Jalaluddin Riaz wrote:
> 
> pardon me for this silly question, but i have to know. How do i set multiple
> classpaths? i have jdk1.2pre2 running and want to do some stuff with
> servlets and jdbc. the jdbc is fine for applets and applications but with
> not woth servlets. i use 'javac -classpath /path/servlet.jar . this
> didnot help. when i put everything in classpath bash env variable, jdk
> complains noClassdefFoundError.
> 
> what do i do?,..
> 
> __
> Get Your Private, Free Email at http://www.hotmail.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: Thread in the Linux's JVM

1999-11-09 Thread Jacob Nikom

So, you think that JNI does not represent any specific issues in
Java multithreading? Does the JNI/C code executes in the same thread
as the Java method which invoked it?

Also, what about event-dispatching thread? In the documentation about 
InvokeLater() method there is no any mention that you have to change
the non-event-dispatching thread's priority in order to allow the
event-dispatching thread get called. Is it simply assumed? This is
strange.

Jacob Nikom

Nathan Meyers wrote:
> 
> Jacob Nikom wrote:
> 
> > It would be nice to know more about multithreading features of Linux
> > JVM.
> 
> There are two threading models. If you run with green threads, there is
> no preemption, and control passes between threads either with yield()
> calls or possibly with other calls that can block (such as sleep() and
> various I/O calls).
> 
> If you run with native threads, the JVM is using the system's pthread
> API, which (except for very strangely configured systems) means it's
> using kernel threads. They give you preemption but not thread
> priorities, and there is no guarantee about the size of the time slices,
> when preemption occurs, or how thread execution is distributed across
> multiple processors.
> 
> It sounds from your description like you're relying on preemption.
> Unfortunately, that's a bad thing - Java doesn't guarantee that you'll
> get it, and you need to code as if preemption will not happen.
> SwingWorker is a nice tool for conveniently launching another thread,
> but it doesn't magically turn non-preemptive threads into preemptive
> threads.
> 
> So to your problem... why did the behavior change when you rewrote some
> of your Java methods as native methods? My guess is that you were using
> some Java methods that do voluntary yields, and you stopped using them
> when you rewrote the code as native methods.
> 
> BTW, that Sun article mentioned in Evandro's original mail (below)
> discusses why Solaris is a good platform for applications that rely on
> preemptive multi-threading. But it's a Solaris marketing article, not a
> Java programming guide. The Java portability message is very clear:
> don't rely on preemption.
> 
> Nathan
> 
> >
> > Hi,
> >
> > Thank you for bringing up this question. I also have problems with
> > multiple threads in Linux. In my case the behavior of threads with
> > JNI is different from pure Java behavior.
> >
> > I use SwingWorker class. If I don't have JNI methods I don't have
> > to use yield() method. If I replace my Java methods with JNI calls
> > I must use yield(), otherwise the application simply does not work.
> > There is no mentioning of yield() method in any SwingWorker-related
> > documentation.
> >
> > It would be nice to know more about multithreading features of Linux
> > JVM.
> >
> > Jacob Nikom
> >
> > > Evandro Luquini wrote:
> > >
> > > Hi,
> > > In the JavaWord article called "programming Java threads in the real
> > > world, Part 1(
> > > http://www.javaworld.com/jw-09-1998/jw-09-threads.html)", the author
> > > sad that "Java's promise of platform independence falls flat on its
> > > face in the threads arena". If you read this paper you will can see
> > > two plataform example : NT and Solaris.
> > >
> > > Major question is what scheduling is implemented by the Linux JVM and
> > > the Linux OS. Does it use a nonpreemptive our preemptive scheduler ?
> > >
> > > The other important question is about what thread's architecture is
> > > implement by Linux O.S. I am asking it because in the sun's paper
> > > "Multithreading: General And Java-Specific Information
> > > 
>(http://www.sun.com/solaris/java/wp-java/4.html;$sessionid$5CBVN2YAAI4VTAMW0JZE3NUBS1JHEUDO)"
> > > sad : "Understanding the architectural advantages of one native MT
> > > environment/architecture over another is critical to an understanding
> > > of the advantages of one Java implementation over another. Since a
> > > typical JVM runtime is implemented on top of the traditional platform,
> > > a richer, architecturally superior MT platform will obviously
> > > translate to a superior Java MT environment for Java applications on
> > > that platform. The native OS threads model greatly influences Java
> > > application performance."
> > >
> > > 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: JavaLinux: Re: Where should I start?

1999-11-10 Thread Jacob Nikom

Hi Russell,

The first thing you have to do is to install Balckdown JDK on 
your machine and be able to compile and run the JBuilder apps 
which you already developed. It will be easier for you to get 
used to new environment if you know the results of your program. 
I like the book "Running Linux" by Matt Welsh and others by 
O'Reilly.

If you worked with VB you are probably interested in GUI development.
You can try to replicate your VB work using Swing. I like John
Zukowski's
latest book "Definite Guide to Swing for Java 2".

Good luck,

Jacob Nikom

> Russell wrote:
> 
> Hi guys!
> 
> I'm a visual basic programmer, have been playing with Redhat for a few
> months and have done some elementary J Builder windows apps (slighty
> bigger than 'Hello World' ;).  Where should I start my journey into
> the world of Linux Java?
> 
> Cheers, Russ.


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



Re: Question about printing in Jdk 1.1

1999-11-12 Thread Jacob Nikom

Hi,

Here is some documentation:
"The direct color model is a color model which specifies a translation
from 
pixel values to alpha, red, green, and blue components using the actual
bits 
of the pixel value. This color model is similar to an X11 TrueColor
visual."

"The Abstract Window Toolkit represents each pixel as a 32-bit integer.
Bits 24-31 
are the alpha transparency, bits 16-23 are the red value, bits 8- 15 are
the green 
value, and bits 0-7 are the blue value."

You can use lookup table to save space and generate colors on fly.

Jacob Nikom.

Eric Chao wrote:
> 
> I have an image that I wanted to print... This image is constructed
> using MemoryImageSource using an array of bytes, with each byte
> representing a pixel.
> I also have a DirectColorModal to translate the color in each pixel.
> 
>  image = createImage
>   (new MemoryImageSource
> (d.width,
>   d.height,
>   dcm,/* Direct Color
> Model */
>   pixels,  /* array of bytes
> */
>   0,
>   d.width) );
> 
> When I tried to print the image. I keep getting this error(listed
> below). But when I change the array of bytes to array of ints. It
> worked.  But I do not want to store my data as ints when bytes works
> fine... So any ideas???
> 
> Error Message:
> 
> Exception occurred during event dispatching:
> java.lang.ClassCastException: java.awt.image.DirectColorModel
>  at sun.awt.motif.PSGraphics.blitImage(Compiled Code)
>  at sun.awt.motif.PSGraphics.drawImage(Compiled Code)
>  at MyCanvas.paint(Compiled Code)
>  at MemoryImageSourceTest1.actionPerformed(Compiled Code)
>  at java.awt.Button.processActionEvent(Compiled Code)
>  at java.awt.Button.processEvent(Compiled Code)
>  at java.awt.Component.dispatchEventImpl(Compiled Code)
>  at java.awt.Component.dispatchEvent(Compiled Code)
>  at java.awt.EventDispatchThread.run(Compiled Code)
> 
> Chang-Cheng (Eric) Chao
> Merlin Software Technologies Inc.
> 
> --
> 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: place to get limix 1.2 port for linux

1999-11-15 Thread Jacob Nikom

http://www.blackdown.org/java-linux/mirrors.html

Abeezar wrote:
> 
> hi
> 
> can anyone tell me the palce where i can get jdk 1.2 port for linux
> 
> regards
> Abeezar Burhanpurwala
> 
> --
> 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]



JNI problem - unresolved symbols at RUN TIME

1999-01-17 Thread Jacob Nikom

Hi,

I am writing JNI application called MainPanel using Java, C++ and
a bit of C.  It compiles and links without problem, but when I run 
it, it crushes with the message: 

prompt>java -green MainPanel pixelbuf
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
/homes/nikom/work/libStereoImageTransform.so: 
undefined symbol: cout
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 MainPanel.(MainPanel.java:13)
make: *** [go] Error 1

Here is the code of MainPanel.java:

  1 import java.awt.*;
  2 import java.awt.event.*;
  3 import javax.swing.*;
  4 
  5 class MainPanel extends JPanel
  6 {
  7 
  8public static synchronized native void
  9   ImageTransform(int[] x1Array, int[] y1Array, int[]
x2Array, int[] y2Array);
 10 
 11static
 12{
-->  13  System.loadLibrary("StereoImageTransform");
 14}
 15 
 16   static ImagePanel imagePanel;
 17 
..

The structure of this JNI application is very simple:
 
  ++ 
  | Java code  | 
  ++ 
|^   
v|  
  ++ 
  | C wrapper  |
  ++ 
|^   
v|   
  ++ 
  | C++ code   | 
  ++ 
 
I always thought all symbols should be found (resolved) during the 
linking stage. If there is no complains from the linker, there should 
not be any complains during runtime.  Looks like it is not so, but why? 
Do you have any suggestions how to fix or investigate the problem?

Thank you,

Jacob Nikom


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



Re: JNI problem - unresolved symbols at RUN TIME

1999-11-22 Thread Jacob Nikom

Thank you Nathan,

You were right. I thought if you use C++ files the linker picks up
correct libraries automatically - not yet.

Anyway, your answer reminds me how great our listserver is.

Thank you again,

Jacob Nikom



Nathan Meyers wrote:
> 
> On Fri, Nov 19, 1999 at 06:44:48PM -0500, Jacob Nikom wrote:
> > I am writing JNI application called MainPanel using Java, C++ and
> > a bit of C.  It compiles and links without problem, but when I run
> > it, it crushes with the message...
> 
> My guess is that you linked your shared library using gcc instead of
> g++, and so it lacks a reference to the C++ library that defines
> cout. If you run "ldd" on the shared library and you see no reference
> to a library named libstdc++, that's the culprit. Try linking your
> .so with g++.
> 
> > I always thought all symbols should be found (resolved) during the
> > linking stage. If there is no complains from the linker, there should
> > not be any complains during runtime.  Looks like it is not so, but why?
> 
> I don't believe the linker complains about unresolved references in
> shared libraries. The rationale, I guess, is that the missing piece will
> come from the application or some other shared library.
> 
> Nathan
> 
> On Fri, Nov 19, 1999 at 06:44:48PM -0500, Jacob Nikom wrote:
> > Hi,
> >
> > I am writing JNI application called MainPanel using Java, C++ and
> > a bit of C.  It compiles and links without problem, but when I run
> > it, it crushes with the message:
> >
> > prompt>java -green MainPanel pixelbuf
> > Exception in thread "main" java.lang.UnsatisfiedLinkError:
> > /homes/nikom/work/libStereoImageTransform.so:
> > undefined symbol: cout
> >   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 MainPanel.(MainPanel.java:13)
> > make: *** [go] Error 1
> >
> > Here is the code of MainPanel.java:
> >
> >   1 import java.awt.*;
> >   2 import java.awt.event.*;
> >   3 import javax.swing.*;
> >   4
> >   5 class MainPanel extends JPanel
> >   6 {
> >   7
> >   8public static synchronized native void
> >   9   ImageTransform(int[] x1Array, int[] y1Array, int[]
> > x2Array, int[] y2Array);
> >  10
> >  11static
> >  12{
> > -->  13  System.loadLibrary("StereoImageTransform");
> >  14}
> >  15
> >  16   static ImagePanel imagePanel;
> >  17
> > ..
> >
> > The structure of this JNI application is very simple:
> >
> >   ++
> >   | Java code  |
> >   ++
> > |^
> > v|
> >   ++
> >   | C wrapper  |
> >   ++
> > |^
> >     v|
> >   ++
> >   | C++ code   |
> >   ++
> >
> > I always thought all symbols should be found (resolved) during the
> > linking stage. If there is no complains from the linker, there should
> > not be any complains during runtime.  Looks like it is not so, but why?
> > Do you have any suggestions how to fix or investigate the problem?
> >
> > Thank you,
> >
> > Jacob Nikom
> >
> >
> > --
> > 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]



Question: JAVA_DEBUG environment variable

1999-11-23 Thread Jacob Nikom

Hi,

In one of his messages Nathan Meyers mentioned JAVA_DEBUG environment
variable which should be set up for debugging. I looked at debugging
documentation but could not find any mention about JAVA_DEBUG variable.
What kind of value JAVA_DEBUG variable should have? Do I really need it 
for java debugging? Is it Blackdown JDK specific variable?

Thank you,

Jacob Nikom


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



Re: Problem with Native Thread under jdk1.2.2 RC2

1999-11-29 Thread Jacob Nikom

Was HotSpot ported to Linux?

Jacob Nikom 

Andy Choi wrote:
> 
> Hi all,
> 
> I have got a problem using native thread and hotspot with rc2. When i
> try to run java, it would gives me the following messages.
> 
> /usr/local/jdk1.2.2/bin/i386/native_threads/java: error in loading
> shared libraries:
> /usr/local/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so: symbol
> sem_init, version GLIBC_2.1 not defined in file libpthread.so.0 with
> link time reference
> 
> However, Green Thread works fine.
> 
> My System is a RedHat 6.0/glibc 2.1, with kernel 2.2.13.
> 
> Thanks,
> Andy
> 
> --
> 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: Using native functions in Java

1999-12-01 Thread Jacob Nikom

If you cannot changed the name of your function in the library,
you have to create JNI wrapper for this function. You call this
wrapper from Java using JNI and make your function call from this
wrapper. You also have to link your shared C++ library.

Jacob Nikom



[EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> Is it possible to use functions from an existing shared library (written in C++) in 
>Java ???
> I read that I have to use the JNI. Can anyone tell me exactly how this works 
> 
> Thanks ...
> E-Mail : [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]



Java Advanced Imaging availability on Linux

1999-12-06 Thread Jacob Nikom

Hi,

I have question about Java Advanced Imaging (JAI) 
availability on Linux. In their "Introduction to Java 
Advanced Imaging" (http://java.sun.com/products/java-me\
dia/jai/forDevelopers/jai1_0guide/Introduct\
ion.doc.html#52476) they wrote:

"1.3.1 Cross-platform Imaging

Whereas most imaging APIs are designed for one specific 
operating system, JAI follows the Java run time library model, 
providing platform independence. Implementations of JAI 
applications will run on any computer where there is a Java 
Virtual Machine*. This makes JAI a true cross-platform imaging 
API, providing a standard interface to the imaging capabilities 
of a platform. This means that you write your application once 
and it will run anywhere."

Sounds good isn't it?

However, when I looked at JAI web site and found they have only
downloads for Solaris and Windows. Why in this case they have special
distribution? Is it possible to use them on Linux? Is it pure Java 
stuff?

Thank you,

Jacob Nikom


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



Java Andanced Imaging avalability on Linux

1999-12-06 Thread Jacob Nikom

Hi,

I am interested to know is Java Advanced Imaging (JAI) implementation is 
available on Linux. When I looked at Sun's JAI web page I have read the 
following:

"1.3.1 Cross-platform Imaging

Whereas most imaging APIs are designed for one specific operating
system, 
JAI follows the Java run time library model, providing platform
independence. Implementations of JAI applications will run on any
computer where there 
is a Java Virtual Machine*. This makes JAI a true cross-platform imaging
API, 
providing a standard interface to the imaging capabilities of a
platform. 
This means that you write your application once and it will run
anywhere."

However, when I wanted to download the package I found the formats only
for
Windows and Solaris for SPARC and x86 platforms. So, is it really
possible
to run JAI on Linux? If yes, which distribution I should download?

Thank you,

Jacob Nikom


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



Re: Sun and Inprise Java 2 announcement

1999-12-07 Thread Jacob Nikom

But it does matter how it was claimed. If the work was done by
Inprise it is one thing, if it is only relabeling of Blackdown
code, it is another.

This is the text:
"Inprise and Sun Microsystems have taken a big step toward 
maintaining open, standards-based network computing architectures
that utilize technologies like Linux and the Java 2 platform," 
said Dale Fuller, Interim CEO and President of Inprise."

I think it is the drawback of the "Open Source" model. Technically,
you can take any code and release it as yours after few changes.

It is interesting what guys from Inprise think about it?

Jacob Nikom

Brian Pomerantz wrote:
> 
> On Tue, Dec 07, 1999 at 04:39:07PM -0500, Derek Glidden wrote:
> >
> > Not to dis you or your company's efforts, but if this is actually a
> > "clean" implementation of the JDK straight from Sun sources and never
> > having touched the Blackdown code, then I find the contents of
> > jdk1.2.2/jre/README.linux to be rather suspicious:
> >
> >   README.linux for Java 2 SDK Version 1.2.1 for Linux, pre-release 1
> >   Steve Byrne
> >   29/8/1999
> >
> >   This is the Blackdown Java-Linux port of the Java 2 SDK Version 1.2.1.
> >
> >   [etc...]
> >
> > It looks like either someone at Inprise or at Sun isn't playing fair.
> > Either that or this is some bizarre remnant of applying patches to the
> > base JDK source from Blackdown mods, in which case, it's still not fair
> > to claim this as a "clean" implementation not related to the Blackdown
> > effort.
> >
> > If I were any of the Blackdown porters, I would find a good friend
> > immediately to pull Sun's knife from my back.
> >
> 
> It doesn't matter who did the work on it.  Sun owns the rights to
> any work done to their JDK.  When the Blackdown group sends patches
> back to Sun, Sun can do with those patches what they want, including
> give them to Inprise to do their own work.
> 
> BAPper
> 
> --
> 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: Blackdown JDK vs Sun JDK

1999-12-08 Thread Jacob Nikom

I am eager to buy it. Could you tell us when it will be available?

Jacob Nikom

Nathan Meyers wrote:
> 
> Man, it's hard to keep up with this business!
> 
> When the industry's first book about Java/Linux hits the streets in a
> few weeks, it'll have several chapters about Blackdown and the Blackdown
> port, and not a word about the Inprise port -- final editing was
> completed weeks ago.
> 
> But thanks to a deal the publisher made with Inprise months ago, the
> book's CD-ROM will have JBuilder and, well... I guess it'll also have
> the Inprise JDK (although I don't really know and it's not under my
> control).
> 
> The drama never ceases. This is not a business for the faint of heart
> :-).
> 
> Nathan Meyers
> Author, "Java Programming on Linux"
> Macmillan Computer Press
> http://www.javalinux.net
> 
> --
> 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: Sun and Inprise Java 2 announcement

1999-12-08 Thread Jacob Nikom

I still cannot completely agree with Brian - credit not 
"should be given", but must be given. If you work for the 
company and you patented something, the company owns the 
patent, but you still own your name on the patent. Company 
cannot change it, otherwise the patent will be invalidated.

Sun owns the code, but I think they don't own the name of 
the person who produced that code. They cannot change it. 
There is something here.

I worked for software companies for many years and always 
compared myself with ancient egyptian worker who built egyptian 
pyramids. Everybody admires them, but nobody knows who built 
them.

With open source movement the situation is changing. However,
I am not sure that Sun's community license and even GPL pay
enough attention to the name ownership. Otherwise, we would
not have "GNU/Linux" discussion, because both use GPL.
Code released under my name promotes me and makes me responsible
for it.

Michael Young gave his IPO shares to some Linux developers years 
after they did their work. It created good precedent for Blackdown 
team. Who knows, may be McNealy is going to do something like that 
in the future?

Jacob Nikom

Brian Pomerantz wrote:
> 
> On Tue, Dec 07, 1999 at 06:28:29PM -0500, Jacob Nikom wrote:
> > But it does matter how it was claimed. If the work was done by
> > Inprise it is one thing, if it is only relabeling of Blackdown
> > code, it is another.
> 
> I was speaking from a legal standpoint.  According to Sun's brain-dead
> license, they own all changes to derivative works.  I agree that
> credit should be given where it is due.
> 
> >
> > This is the text:
> > "Inprise and Sun Microsystems have taken a big step toward
> > maintaining open, standards-based network computing architectures
> > that utilize technologies like Linux and the Java 2 platform,"
> > said Dale Fuller, Interim CEO and President of Inprise."
> >
> >
> > I think it is the drawback of the "Open Source" model. Technically,
> > you can take any code and release it as yours after few changes.
> >
> > It is interesting what guys from Inprise think about it?
> >
> 
> I think it is actually a drawback to the marketing departments not
> knowing much of anything on what they create press releases out of.
> Having worked at a place that was always trying to pull a press
> release out of thin air, I've seen how the most innocent comment or
> piece of fluff can be made to sound like ground breaking news.  I
> seriously doubt they meant to not hand over credit.  I'm sure the
> problem was that nobody told the marketing droids to specifically say
> most of the Linux changes in the JDK were made by Blackdown.
> 
> BAPper


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



Re: sun announcement

1999-12-09 Thread Jacob Nikom

I was able to get in - it looks like it exists.

Jacob Nikom

Robbie Baldock wrote:
> 
> Dimitrios Vyzovitis wrote:
> 
> > Apparently, sun has made an apologetic announcement. Check out:
> > http://java.sun.com/features/1999/12/linux.html
> 
> That URL doesn't appear to exist...
> 
> Robbie
> 
> --
> 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: sun announcement

1999-12-09 Thread Jacob Nikom

It looks like they forgot to connect it to the rest of the site -
even search of their web site does not find it.

Jacob

Wolfgang HOSCHEK wrote:
> 
> Any other Sun page linking to that page? Couldn't find one.
> 
> Wolfgang.
> 
> Jacob Nikom wrote:
> >
> > I was able to get in - it looks like it exists.
> >
> > Jacob Nikom
> >
> > Robbie Baldock wrote:
> > >
> > > Dimitrios Vyzovitis wrote:
> > >
> > > > Apparently, sun has made an apologetic announcement. Check out:
> > > > http://java.sun.com/features/1999/12/linux.html
> > >
> > > That URL doesn't appear to exist...
> > >
> > > Robbie


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



Re: Good job on 1.2.2RC*, comments

1999-12-10 Thread Jacob Nikom

Hi Michael,

I would like to elaborate a bit about your comments:
ownership versus credit. I think there are some legal
issues here.

If you work for the company and you patented something, 
the company owns the patent, but you still own your name 
on the patent. Company cannot change it, otherwise the 
patent will be invalidated.

Sun owns the code, but I think they don't own the name of 
the person who produced that code. They cannot change it. 

I am not sure that Sun's community license and even GPL pay
enough attention to the name ownership. Otherwise, we would
not have "GNU/Linux" discussion, because both use GPL. Code 
released under the developer's name promotes the developer
and makes him/her more responsible for it.

Michael Young gave his IPO shares to some Linux developers years 
after they did their work. It created good precedent for Blackdown 
team. Who knows, may be McNealy is going to do something like that 
in the future?

Jacob Nikom


Michael Thome wrote:
> 
> Just wanted to say that I'm *really* pleased with 1.2.2RC2, and I'm
> sure that the rest will be even better.  I've been running RC2 with
> native threads on an SMP machine (2xPIII-500) with 2.3-series kernel
> without a hitch - *very* nice.  Worth the wait, guys!
> 
> It appears that the whole blackdown/sun/inprise debacle really was a
> case of multiple miscommunication - it is unfortunate, but such
> problems often occur when organizations with such different goals and
> restrictions interface.  I sure hope that everyone calms down and does
> the right thing by the others...  while there is plenty of blame to go
> around, it just isn't productive.
> 
> Re: author credit vs the SCSL... There are two issues here: ownership
> and credit.  While it is true that under the SCSL, Sun may *own*
> derivative works, failure to cite the authors of such work is simple
> plagiarism.  It is intellectual dishonesty to claim authorship of
> someone else's works, even if you own rights of distribution.  That
> said, it appears that Sun has done a pretty reasonable job at
> assigning due credit in their recent PRs.
> 
> -mik
> --
> Michael Thome ([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]



Simpliest way to check the file presence.

1999-12-20 Thread Jacob Nikom

Hi,

What is the simplest way to check, whether the file
exist or not on the Linux hard drive? Is there any operation
which delivers binary output whether file exist or not?

Thank you,

Jacob Nikom


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



Re: JAI

1999-12-22 Thread Jacob Nikom

You don't have to port it to Linux - your can run it on Linux.
See in the JAI archive how to do it - search for Linux keyword.

Jacob Nikom

Morten Primdahl wrote:
> 
> Is Java Advanced Imaging getting ported to Linux?
> 
> --
> Morten Primdahl Caput ApS   Tel +45 33 12 24 42
> [EMAIL PROTECTED]Nygade 6Fax +45 33 91 24 42
> http://www.caput.comDK-1164 Kbh K
> 
> --
> 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: how to extract .tar.bz2 ?

1999-12-27 Thread Jacob Nikom

6. Unzip the file with bzcat
bzcat jdk1.2pre-v2-debug.tar.bz2 > jdk1.2pre-v2-debug.tar
7. Untar the file
tar xvf jdk1.2pre-v2-debug.tar
8. Set up the path
set path = (/homes/nikom/work/java/bin1/jdk1.2/bin $path)

Jacob Nikom

[EMAIL PROTECTED] wrote:
> 
> I download Blackdown jdk1.2.2:
> 
> jdk-1.2.2-RC3-linux-i386.tar.bz2
> 
> I can not use "tar xvfI jdk-1.2.2-RC3-linux-i386.tar.bz2"
> command in linux # prompt. Anyone help me ?
> 
> JackWang
> 
> --
> 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: Do you have any example showing us how to read a line. an interger, a float... from console?

1999-12-30 Thread Jacob Nikom

import java.io.*;

// KeyboardInput.class reads a line of text from standard keyboardInput,
 
class KeyboardInput 
{
  public static void main (String args[]) 
  {
String keyboardInput = "";
boolean inputError;

InputStreamReader inputStreamReader = new
InputStreamReader(System.in);
BufferedReader bufferedReader = new
BufferedReader(inputStreamReader);

do 
{
  inputError = false;
  System.out.print ("Input the text line > ");

  System.out.flush ();

  try 
  {
keyboardInput = bufferedReader.readLine();   
  } 
  catch (IOException e) 
  {
System.out.println ("An keyboardInput inputError was caught");
inputError = true;
  }
} while (inputError);
   
System.out.println ("The text line is: "+keyboardInput);
  }
}

[EMAIL PROTECTED] wrote:
> 
> Hello everybody,
> 
> Have you got any example like that? It's because there are so many
> classes in java.io that I don't know what to choose to do it.
> 
> Thanks a lot.
> 
> --
> 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: JDK1.2 installation on Linux...

2000-01-04 Thread Jacob Nikom

1. Where to obtain JDK 1.2  for Linux?
http://www.blackdown.org/

2. Go to "Download the JDK for Linux" link
3. Find appropriate ftp site
3. Go to the JDK1.2/i386/pre-v2/glibc2.1 directory
4. Middle click on jdk1.2pre-v2-debug.tar.bz2 file
5. Menu opens - download the file
6. Unzip the file with bzcat
bzcat jdk1.2pre-v2-debug.tar.bz2 > jdk1.2pre-v2-debug.tar
7. Untar the file
tar xvf jdk1.2pre-v2-debug.tar
8. Set up the path
set path = (/homes/nikom/work/java/bin1/jdk1.2/bin $path)

Hope it helps,

Jacob Nikom

> Pramila wrote:
> 
> Hi! ,
> 
> I just downloaded the file jdk1.2pre-v2.tar.bz2 , but I don't know
> how to install it.
> 
> Anyone could please let me know how / from where I can install
> JDK1.2 on Linux...
> 
> Thanks & Regards
> Pramila


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



Re: New site for doing Java on Linux jlinux.org

2000-01-06 Thread Jacob Nikom

Very good idea. However, how to separate Java from Java/Linux from
Linux? Java/Linux from PC? Are you going to have different pages
for those topics?

Jacob Nikom



Christopher Smith wrote:
> 
> Hi there. I have collected various bits of info on running Java on
> Linux and decided to put it all together on a site. It's still very
> early on, so there isn't a ton of information, but I'd love to hear
> feedback from people. It can be found at:
> 
> http://www.jlinux.org/
> 
> Please note that I'm aware that the site has zero cosmetic value. ;-)
> I'll address that sooner or later, but right now I just wanted to get
> the info up.
> 
> --Chris
> 
> --
> 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: Nathan's Book

2000-01-10 Thread Jacob Nikom

For example, Quantum Bookstore in Cambridge cited $39.99, but called
it "preliminary" price.

Jacob Nikom

Nathan Meyers wrote:
> 
> Rich Ibbotson wrote:
> >
> > I realize that this is way off-topic for this list, and I apologize for that...
> > But there's a rather nice web-site put together by Steve Wells and Brian Gannon
> > that compares prices of books at a number of on-line sites:
> > http://www.snmputils.com/booksearch/
> > It's amazing how the prices vary.  For example, a search for Nathan Meyers'
> > "Java Programming for Linux" (ISBN 1571691669) turns up:
> 
> I don't entirely believe these results. Early pricing information from
> the publisher was based on a low pagecount estimate, and some
> booksellers are taking time to catch up to the final list price. You'll
> need to visit the vendor and see what list price they're claiming to
> discount - if it's not $49.99, then you're not seeing their real
> discount price.
> 
> Nathan
> 
> >
> >  SITE  PRICE
> >  VCSS $29.99
> >  KingBooks$31.99
> >  Borders  $34.99
> >  BookStreet   $35.99
> >  BooksaMillion$39.99
> >  BookBuyer$42.49
> >  Amazon   $42.49
> >  Powells  $49.99
> >  Softpro  $49.99
> >
> > And no, I'm not affiliated with any of these stores or the authors of the above
> > site/PERL-script.  I just use it a lot.
> >
> > Rich Ibbotson
> > [EMAIL PROTECTED]
> >
> > Weiqi Gao wrote:
> > >
> > > Hi,
> > >
> > > I saw Nathan Meyers' new 'Java Programming for Linux' at Borders.
> > > Browsed through it and found it packed with information that a
> > > Java-Linux developer would want/need/find indespensable.  Not a
> > > textbook/tutorial.  Lots of hints, tools, de-hype-ifications, whys, and
> > > coverage.  The spirit of Linux shines through throughout.
> > >
> > > I'm buying it from Amazon.com, they are giving a $7.50 discount on this
> > > book.
> > >
> > > Thank Nathan you for such a wonderful book.  And have fun updating it
> > > every year for the next five years.  You are going to update it, aren't
> > > you?
> > >
> > > --
> > > Weiqi Gao
> > > [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]
> 
> --
> 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: Nathan's Book

2000-01-10 Thread Jacob Nikom

Does "Java Programming for Linux" have anything about programming Java
3D on Linux?

Jacob Nikom

Nathan Meyers wrote:
> 
> Rich Ibbotson wrote:
> >
> > I realize that this is way off-topic for this list, and I apologize for that...
> > But there's a rather nice web-site put together by Steve Wells and Brian Gannon
> > that compares prices of books at a number of on-line sites:
> > http://www.snmputils.com/booksearch/
> > It's amazing how the prices vary.  For example, a search for Nathan Meyers'
> > "Java Programming for Linux" (ISBN 1571691669) turns up:
> 
> I don't entirely believe these results. Early pricing information from
> the publisher was based on a low pagecount estimate, and some
> booksellers are taking time to catch up to the final list price. You'll
> need to visit the vendor and see what list price they're claiming to
> discount - if it's not $49.99, then you're not seeing their real
> discount price.
> 
> Nathan
> 
> >
> >  SITE  PRICE
> >  VCSS $29.99
> >  KingBooks$31.99
> >  Borders  $34.99
> >  BookStreet   $35.99
> >  BooksaMillion$39.99
> >  BookBuyer$42.49
> >  Amazon   $42.49
> >  Powells  $49.99
> >  Softpro  $49.99
> >
> > And no, I'm not affiliated with any of these stores or the authors of the above
> > site/PERL-script.  I just use it a lot.
> >
> > Rich Ibbotson
> > [EMAIL PROTECTED]
> >
> > Weiqi Gao wrote:
> > >
> > > Hi,
> > >
> > > I saw Nathan Meyers' new 'Java Programming for Linux' at Borders.
> > > Browsed through it and found it packed with information that a
> > > Java-Linux developer would want/need/find indespensable.  Not a
> > > textbook/tutorial.  Lots of hints, tools, de-hype-ifications, whys, and
> > > coverage.  The spirit of Linux shines through throughout.
> > >
> > > I'm buying it from Amazon.com, they are giving a $7.50 discount on this
> > > book.
> > >
> > > Thank Nathan you for such a wonderful book.  And have fun updating it
> > > every year for the next five years.  You are going to update it, aren't
> > > you?
> > >
> > > --
> > > Weiqi Gao
> > > [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]
> 
> --
> 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]



Java 3d installation problem

2000-01-10 Thread Jacob Nikom

Hi,

I run RedHat 6.0, libc-2.1.1 and Blackdown jdk1.2pre-v2-debug.tar.bz2. 
I installed Java3D package from 
ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/java3d/1.1.1/i386/

Everything went smoothly, even the installation of the MesaGL library.
I was able to run a lot of MesaGL demos.

However, when I started to run Java3d examples, every example
complained about the lack of libMesaGl.so.3 library:
appletviewer -J-mx64m HelloUniverse.html
java.lang.UnsatisfiedLinkError:
/homes/nikom/Java/jdk1.2/jre/lib/i386/libJ3D.so: 
libMesaGL.so.3: 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 javax.media.j3d.UniverseManager$1.run(Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.UniverseManager.(Compiled Code)
at javax.media.j3d.VirtualUniverse$2.run(Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:464)
at HelloUniverse.(Compiled Code)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Compiled Code)
at sun.applet.AppletPanel.createApplet(Compiled Code)
at sun.applet.AppletPanel.runLoader(Compiled Code)
at sun.applet.AppletPanel.run(Compiled Code)

However, Mesa's installation script did not create MesaGL library - it
only
produced libGL.so, libGLU.so, libglut.so, etc. How I can get
libMesaGL.so
and where I have to put it?

Thank you,

Jacob Nikom


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



Re: Java 3d installation problem

2000-01-11 Thread Jacob Nikom

Hi Jeff,

Thank you very much for your answer. I followed your suggestion 
and it worked. The only thing I have to add was the change to the
LD_LIBRARY_PATH variable, which Java (or its different packages)
used to get to the shared library.

Regards,

Jacob Nikom

Jeff Galyan wrote:
> 
> Jacob,
> 
> Just make a symlink to libGL.so as libMesaGL.so.3 - in Mesa3D 3.x, the
> default for the build is to name the libraries libGL.so etc., for easier
> swappability with "real" OpenGL implementations. Earlier versions of
> Mesa3D used the name libMesaGL.so for the libGL.so library.
> 
> The sumlink can be created in whichever directory your libGL.so lives
> in.
> 
> --Jeff
> 
> Jacob Nikom wrote:
> >
> > Hi,
> >
> > I run RedHat 6.0, libc-2.1.1 and Blackdown jdk1.2pre-v2-debug.tar.bz2.
> > I installed Java3D package from
> > ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/java3d/1.1.1/i386/
> >
> > Everything went smoothly, even the installation of the MesaGL library.
> > I was able to run a lot of MesaGL demos.
> >
> > However, when I started to run Java3d examples, every example
> > complained about the lack of libMesaGl.so.3 library:
> > appletviewer -J-mx64m HelloUniverse.html
> > java.lang.UnsatisfiedLinkError:
> > /homes/nikom/Java/jdk1.2/jre/lib/i386/libJ3D.so:
> > libMesaGL.so.3: 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 javax.media.j3d.UniverseManager$1.run(Compiled Code)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at javax.media.j3d.UniverseManager.(Compiled Code)
> > at javax.media.j3d.VirtualUniverse$2.run(Compiled Code)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:464)
> > at HelloUniverse.(Compiled Code)
> > at java.lang.Class.newInstance0(Native Method)
> > at java.lang.Class.newInstance(Compiled Code)
> > at sun.applet.AppletPanel.createApplet(Compiled Code)
> > at sun.applet.AppletPanel.runLoader(Compiled Code)
> > at sun.applet.AppletPanel.run(Compiled Code)
> >
> > However, Mesa's installation script did not create MesaGL library - it
> > only
> > produced libGL.so, libGLU.so, libglut.so, etc. How I can get
> > libMesaGL.so
> > and where I have to put it?
> >
> > Thank you,
> >
> > Jacob Nikom
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> --
> Jeff Galyan
> http://www.anamorphic.com
> http://www.sun.com
> jeffrey dot galyan at sun dot com
> talisman at anamorphic dot com
> Sun Certified Java(TM) Programmer
> ==
> Linus Torvalds on Microsoft and software development:
> "... if it's a hobby for me and a job for you, why are you doing such a
> shoddy job of it?"
> 
> The views expressed herein do not necessarily reflect those of my
> employer.
> 
> Sun Microsystems, Inc., has no connection to my involvement with the
> Mozilla Organization.


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



Mixing heavy (Java3d) and light (Swing) components

2000-01-19 Thread Jacob Nikom

Hi,

I am trying to work with Java3D and Swing on Linux. I was able to
run some 3D programs but stuck when I tried to place JPanel and 
Canvas3D on the same Frame.

I could see my Canvas3D objects very well, but my JPanel object
always lies behind the background color in the main Frame. I could
see some small part of it, if I resize the Frame, I could see
(sometimes) larger part of it, but I could not place it on front.
My heavy and light objects don't overlap, nevertheless I could
not see all of them.

I read Amy Fowler's article about mixing heavy and light components
but the example only tells about JPopupMenu.

JPopupMenu.setDefaultLightWeightPopupEnabled(false);

What I can do about JPanel?

Currently I add JPanel to Frame - I could not make it otherwise.
Do you have any ideas?

Here is a piece of code:

.
HelloUniverse helloUniverse = new  HelloUniverse(); // heavy
component 3D

DisplayImagePanel displayImagePanel = new DisplayImagePanel(); //
JPanel

displayImagePanel.setBounds(0, 100, 128, 128);
displayImagePanel.CreateImage();

Frame frame = new MainFrame(helloUniverse, 400, 400);
frame.add(displayImagePanel);
frame.setVisible(true);
frame.validate();
.


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



Re: Terrible native thread performance

2000-01-19 Thread Jacob Nikom

Hi Jonathan,

You mentioned 2.4 kernel. Do you know when it is going to
come out?

Jacob Nikom

Jonathan Doughty wrote:
> 
> Daniel Stux wrote:
> 
> > Here is what I see with Linux. I am running on a freshly installed
> > RedHat 6.1 machine. With either JDK, running in native threads is
> > absolutely crippling. There seems to be a serparate JDK process ID
> > for each running thread, or otherwise something is casuing it to
> > fork 15 times. Of these threads four or five of them just hammer the
> > CPU, leaving the whole machine at a crawl. Actual performance of our
> > Java GUI isn't too bad, but it's no where near where it should be.
> 
> You are seeing an artifact of the Linux threading model: native Java
> threads are mapped onto kernel threads and kernel threads look a lot
> (to ps and friends) like separately forked processes.  As for your
> four or five CPU hammers; that may be a Java problem, a Linux problem,
> or a Java/Linux problem but it is hard to say without more details
> from you.
> 
> For a *really* good analysis (IMHO) of Java / Linux threading issues,
> kernel tweaks that can improve the situation, and what we might be
> seeing in the 2.4 kernels unless the Linux kernel powers that be
> address the situation, see the recently published paper:
>  Java, threads, and scheduling in Linux
>Patching the kernel scheduler for better Java performance
> at http://www-4.ibm.com/software/developer/library/java2/index.html
> Recommended reading; the Java on Linux situation really needs this
> kind of work. (Speaking only for myself.)
> 
> --
> Jonathan Doughty  The MITRE Corporation  [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: java3d installation

2000-01-19 Thread Jacob Nikom

Hi,

Add /usr/local/lib directory to your LD_LIBRARY_PATH path (C shell)
setenv LD_LIBRARY_PATH .:/local/lib:/usr/lib:/usr/lib/X11:/usr/local/lib
or incrementally
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/local/lib

Jacob Nikom

Nash'at Ahmad wrote:
> 
> Mesa libraries are in /usr/local/lib
> I have created the link libMesaGL.so.3 -> libGL.so
> When I run java3d examples I get the error:
> I am running RedHat Linux 6.1.
> 
> java.lang.UnsatisfiedLinkError: /usr/local/jdk1.2/jre/lib/i386/libJ3D.so:
> libMesaGL.so.3: cannot open shared object file: No such file or directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java, Compiled
> Code)
> 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,
> Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.media.j3d.UniverseManager.(UniverseManager.java,
> Compiled Code)
> at javax.media.j3d.VirtualUniverse$2.run(VirtualUniverse.java,
> Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:464)
> at javax.media.j3d.Screen3D.(Screen3D.java:39)
> at javax.media.j3d.Canvas3D.(Canvas3D.java:31)
> at FourByFour.init(FourByFour.java, Compiled Code)
> at sun.applet.AppletPanel.run(AppletPanel.java, Compiled Code)
> at java.lang.Thread.run(Thread.java, Compiled Code)
> 
> --
> 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: Sun JDK for Linux vs. Blackdown

2000-01-20 Thread Jacob Nikom

Look at http://www.blackdown.org/java-linux/info.html
Obviously, Sun placed their JDK on Sun's web site.
To understand this stuff better, read Nathan Meyers
book "Java Programming on Linux" (www.javalinux.net)

Jacob Nikom


Michael Maloney wrote:
> 
> I just learned that Sun now has its JDK available for Linux.
> I downloaded it from:
> 
> http://developer.java.sun.com/developer/earlyAccess/j2sdk122
> 
> I noticed that in the README 'credits' section they give kudos to
> the blackdown development team.
> 
> What is the relationship between the blackdown JDK and Sun's?
> 
> When I rebuild my test application that had a memory problem
> (see my previous email with subject "Segmentation fault problem"),
> it runs fine with the Sun JDK. I.e. it runs to completion with
> no memory problems or seg faults. It also never grows the process
> size reported by 'ps'. It also seems to run significantly faster.
> 
> I also notice that the 'ps' command only shows one process for
> every Java program running. The blackdown showed several.
> 
> How do they do this? Does the Sun JDK use green threads by
> default?
> 
> --
> Michael Maloney
> Ilex Engineering, Inc.
> 
>   Tel: 410.241.5248
> Email: [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: Threads

2000-01-20 Thread Jacob Nikom

Hi,

Sorry for the book referring instead of direct answer -
those are too generic questions to answer in a message.

The best thing to understand this stuff better is to
read Nathan Meyers book "Java Programming on Linux" 
(www.javalinux.net).

You also can find some answer searching through the
Java-Linux archive 
http://www.mail-archive.com/[email protected]/

Also you can go to Java tutorial and look over there
http://java.sun.com/docs/books/tutorial/search.html

Jacob Nikom

"A. Scott White" wrote:
> 
> Hello. I'm a complete newbie to Linux, please bear with me. I am an experienced
> C, C++ programmer, however, so feel free to answer accordingly.
> 
> In reading the {} document I came across this quote:
> 
> == BEGIN QUOTE ==
> * We strongly recommend using the native threads vm in conjunction
>   with JNI. An absolute no-no is using pthread code with with the
>   green threads vm.
> == END QUOTE ==
> 
> 1. What is JNI?  right?
> 2. What is the native threads vm? What are native threads?
> 3. What is pthread code?
> 4. What it the green threads vm? What are green threads?
> 
> I know what threads are, and I understand multithreading in general. Are these
> Linux terms or Java terms?
> 
> Thanks.
> 
> ==
> A. Scott White
> Director, Information Systems
> Healthcare Solutions Group
> Affiliated Computer Services, Inc.
> [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]



What are the rules for adding one components to another?

2000-01-25 Thread Jacob Nikom

Hi,

If I try to add JFrame component to the Frame component like

Frame.add(JFrame);

I get the error message "you cannot add window to a container".

Now the question arises, which component I always can add to which?
Speaking about such containers like: 

Panel JPanel
Frame JFrame
WindowJWindow
CanvasJComponent

what are the rules which govern the "addability" of those components?

Can I have in my program the following statements:
Container.add(Container)
JWindow.add(Frame)
Panel.add(Jpanel)
Jpanel.add(Panel),
...
Canvas3D.add(JFrame)


and so on with many possible combinations. There are
Swing components, AWT components, Java2D components,
Java3D components, JAI, JMF components, etc. How to
navigate which could be added to which? What are the
rules?

Thank you,

Jacob Nikom


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



Re: RC4 - what it is about?

2000-01-29 Thread Jacob Nikom

Is it simply bug fixing release?

Jacob Nikom

Nathan Meyers wrote:
> 
> Peter Graves wrote:
> >
> > Blackdown 1.2.2 RC4 is up on ftp.tux.org:
> >
> > ftp://ftp.tux.org/java/JDK-1.2.2/i386/rc4
> >
> 
> Also in that directory: the debut of the JDK1.2 Java plug-in for
> Netscape!
> 
> Nathan
> 
> > -Peter
> > http://armedbear.org
> >
> > --
> > 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: RC4 - what it is about?

2000-01-29 Thread Jacob Nikom

Nathan,

Thank you very much for your message - the information
about graphical debugger was very important for me.
I have problem with JBuilder installation - famous "No
free memory" message, so I thought I could use javadt.

Unfortunately, when I tried to use 'javadt' I could not
find any documentation about it. Its usage looks intuitive, 
but in reality it is deceiving. I could not open any files 
with File->Open menu item, I could not set up any break 
points, etc. When I click on Help menu, nothing happened.

It is also very slow on my PIII 500MHz machine. Do you
know where I can find any docs and why it is so slow?

Regards,

Jacob Nikom

Nathan Meyers wrote:
> 
> Jacob Nikom wrote:
> >
> > Is it simply bug fixing release?
> 
> At least... but there are some important breakthroughs. A look at the
> README shows that some longstanding problems have been addressed:
> 
> - The "incompatible raster" problems have been fixed, allowing Swing/AWT
> apps to run on many more X servers. Also fixed is the problem preventing
> use with X servers with non-native byte order.
> 
> - The Java Platform Debugging Architecture is now present (back-ported
> from JDK1.3), as is a new graphical debugger. If everything works, it
> might even put the Inprise JDK port out of business :-).
> 
> - More problems with native thread and green thread robustness have been
> addressed.
> 
> Nathan
> 
> >
> > Jacob Nikom
> >
> > Nathan Meyers wrote:
> > >
> > > Peter Graves wrote:
> > > >
> > > > Blackdown 1.2.2 RC4 is up on ftp.tux.org:
> > > >
> > > > ftp://ftp.tux.org/java/JDK-1.2.2/i386/rc4
> > > >
> > >
> > > Also in that directory: the debut of the JDK1.2 Java plug-in for
> > > Netscape!
> > >
> > > Nathan
> > >
> > > > -Peter
> > > > http://armedbear.org
> > > >
> > > > --
> > > > 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: information to get started

2000-01-29 Thread Jacob Nikom

Have you looked at http://java.sun.com/docs/books/tutorial/

Also, look at http://www.javalinux.net/

about development environments

Jacob Nikom


"Joe T." wrote:
> 
> hello
> Ive been planning on learning java development for a
> couple weeks now and im getting pretty sick of just
> sitting around -- id like to get started  :P
> 
> I picked up Just Java 2 from Sun and Pure Java 2 from
> Sams..both of which, IMO, werent very good books at
> all.  Just Java trys to explain the terms in such a
> simplified manner, you completely miss the point,
> while Pure Java is way advanced for where im at right
> now.  Maybe itll be usefull later on.
> 
> Where is there good documentation or even online books
> on the internet for learning Java? I hear Thinking in
> Java is good, but is it up to date on Java2?  I have
> to go online/free style now considering Ive spent too
> much on books and other computer-related stuff, my
> budget is too low for it right now.
> 
> Also, I downloaded JBuilder for Linux, but it seems
> like it would spoil me in means of actually learning
> the language..the VB-style method for the swing apps
> is an example..
> Are there any decend devel environments for Java? or
> am i better off going the joe/jed/vi route?
> 
> Thanks for your time
> 
> =
> Joe Topjian
> [EMAIL PROTECTED]
> http://auximini.cjb.net
> 
> Even a stopped clock gives the right time twice a day
> __
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.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]



Insurmountable hurdles with JBuilder installation

2000-02-02 Thread Jacob Nikom

Hi,

I tried to install JBuilder on my machine (PIII, RedHat 6.1) but 
met with such objstacles that I am going to give up on installation.

First, it started to complain about lack of free space. I looked at
JBuilder FAQ and newsgroup and found that it cannot be install on the 
server ( one of the problem is with df command and long device name 
(two lines instead of one for free space report).

So, I tried to install it locally. I could not unmount my server (it is 
automounted), so I went into "single user" Linux mode with only local
drive available. However, it started to complain about Java virtual 
machine which it could not find.

Next I installed JVM on the local drive. It almost started to install,
but hung after JVM was found and JVM selection was made. After that 
I went back to the configuration with server but starting from local 
drive, hoping that it will install it locally and would not complain 
about server's disk space. No, it did. So, I don't know what should 
I do next.

What you would expect from the product which is so difficult to 
install, especially comparing with installation of other Linux 
software like Blackdown JDK? Does it make any sense to use it?

I am looking for graphical Java debugger for small project development
under Linux. I don't need GUI builder, source code control, etc, but 
I would prefer simple nice stuff. I am interested in one which can 
work with Blackdown JDK1.2+ but be easily switched to another JDK. 
I cannot use VisualAge since they support only 1.1.8. I did not try 
DDD - soes it work with GNOME? I heard that it works only with KDE.

What would you recommend?

Thank you,

Jacob Nikom


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



Re: Insurmountable hurdles with JBuilder installation

2000-02-02 Thread Jacob Nikom

Hi Paolo,

Thank you for your message - it really helped to know 
that I have to run X. I thought that all necessary stuff 
is in the install.bin which is really huge - more than
10MB. Why it is so large - it even includes binary code
in it?

With our sysadmin's heavy help finally I was able to install
JBuilder. We played with 2nd level of single user mode where
you can get X, but still don't have NFS. In the 1st level you 
don't have X - here I spent my time initially.

Our NFS is automounted in a special way which makes it difficult
to unmount. I don't know all details but I have not been able
to do that.

Currently JBuilder is installed in /usr/local/jbuilder30 directory.
Is this location fixed - for example if I move it into another
directory is it going to work? 

Thank you very much for your help. I read that Inprise is going
to make their C++ IDE available on Linux - hope to use it for
JNI debugging.

Regards,

Jacob Nikom

Paolo Ciccone wrote:
> 
> Hi Jacob,
> 
> I'll gladly try to help you with the installation but I think we should take
> this out of this forum.
> The installer bug with NFS/SMB has caused us some gripes but we have a fix
> ready for the next version. The installer requires a GUI so you have to run
> it from X. If you cannot unmount any of the shares you could try to install
> it on a another machine and then copy (ftp) it over.
> 
> On Wed, Feb 02, 2000 at 09:42:36AM -0500, Jacob Nikom wrote:
> > So, I tried to install it locally. I could not unmount my server (it is
> > automounted), so I went into "single user" Linux mode with only local
> > drive available. However, it started to complain about Java virtual
> > machine which it could not find.
> 
> I undersrand from this that you can reboot the machine. Why can't you
> unmount the shares ?
> 
> > Next I installed JVM on the local drive. It almost started to install,
> > but hung after JVM was found and JVM selection was made.
> 
> This can be caused by two thing: you were not running X or the X server was
> using an incompatible color depth (known problem with AWT). Please use
> "export LAX_DEBUG=true", rerun the program and send me the output prinmted
> on the console.
> 
> > I am looking for graphical Java debugger for small project development
> > under Linux. I don't need GUI builder, source code control, etc, but
> > I would prefer simple nice stuff. I am interested in one which can
> > work with Blackdown JDK1.2+ but be easily switched to another JDK.
> > I cannot use VisualAge since they support only 1.1.8. I did not try
> > DDD - soes it work with GNOME? I heard that it works only with KDE.
> 
> BTW, I tried JBuilder with Blackdown's RC4 and it seems to work.
> Congratulations to the team. It's still early to consider it completely
> compatible but we will start formal testing soon.
> 
> --
> Paolo Ciccone
> JBuilder dev.team


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



Re: No swing classes

2000-02-03 Thread Jacob Nikom

I think if you download Blackdown RC4 you are not going to have
those messages. You also can try the solution from Nathan Meyers
book. Look at 
http://www.javalinux.net/JavaLinux/CDROM/Chapter14/font.properties

Jacob Nikom

Jeff Galyan wrote:
> 
> paul campbell wrote:
> >
> > Works OK - well sort of...
> >
> > (except "Font specified in font.properties not found[--symbol blbah blah
> 
> This one's a known issue. I think there may be a fix for it - check the
> Blackdown.org site.
> 
> > and
> > Could not load Look and Feel:
> > com.sun.java.swing.plaf.windows.WIndowsLookAndFeel
> > when I clicked the "Windows" radio button.
> > )
> >
> 
> This is expected behaviour on non-MS systems. The decision was made to
> simply not allow the Windows look & feel to be loaded except on Windows
> (although the classes *are* there), since Microsoft hasn't given
> permission to Sun to use the Windows look & feel anywhere except
> Windows.
> 
> --
> Jeff Galyan
> http://www.anamorphic.com
> http://www.sun.com
> jeffrey dot galyan at sun dot com
> talisman at anamorphic dot com
> Sun Certified Java(TM) Programmer
> ==
> Linus Torvalds on Microsoft and software development:
> "... if it's a hobby for me and a job for you, why are you doing such a
> shoddy job of it?"
> 
> The views expressed herein do not necessarily reflect those of my
> employer.
> 
> Sun Microsystems, Inc., has no connection to my involvement with the
> Mozilla Organization.
> 
> --
> 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]



Pen-operated portable that can run Java?

2000-02-04 Thread Jacob Nikom

Hi,

Are there any pen-based portable devices that can run Java?

Thank you,

Jacob Nikom


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



Re: Help,, Red Hat 5.1 and JDK1.2

2000-02-04 Thread Jacob Nikom

You could have problem with glibc. JDK1.2.2 which you have does not
work with gilibc 2.1.1 which you likely have on RedHat 5.1

Jacob Nikom

Marcos Oliva wrote:
> 
> Hello guys,
> 
> I downloaded the JDK1.2 and Un-tar the thing on /usr/local and
> i set the PATH to included, but when I try to run
> java -version
> i get the following
> 
> /usr/local/jdk1.2.2/bin/java: /bin/realpath: No such file or directory
> /usr/local/jdk1.2.2/bin/java: /bin/realpath: No such file or directory
> java was not found in /bin/i386/green_threads/java
> 
> any help
> 
> TIA
> 
> --
> 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: Help,, Red Hat 5.1 and JDK1.2

2000-02-04 Thread Jacob Nikom

Very easily:
ls -l /lib/libc.so.*

Jacob Nikom

"David A. Gershman" wrote:
> 
> Sorry, for this stupid follow-up question, but how do I determine my
> version of glibc?
> 
> David
> 
> > You could have problem with glibc. JDK1.2.2 which you have does not
> > work with gilibc 2.1.1 which you likely have on RedHat 5.1
> >
> > Jacob Nikom
> >
> > Marcos Oliva wrote:
> > >
> > > Hello guys,
> > >
> > > I downloaded the JDK1.2 and Un-tar the thing on /usr/local and
> > > i set the PATH to included, but when I try to run
> > > java -version
> > > i get the following
> > >
> > > /usr/local/jdk1.2.2/bin/java: /bin/realpath: No such file or directory
> > > /usr/local/jdk1.2.2/bin/java: /bin/realpath: No such file or directory
> > > java was not found in /bin/i386/green_threads/java
> > >
> > > any help
> > >
> > > TIA
> > >
> > > --
> > > 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: running JAVA on embeded linux

2000-03-22 Thread Jacob Nikom

Look at
http://www.sun.com/developers/tools/j2me.html
and
http://java.sun.com/j2me/

Jacob Nikom

Xiangzhou Wang wrote:
> 
> Hi
> 
> I try to embed Linux in a device and I also want to run java (including
> GUI). How many libraries do I need for running java. Is there any java
> mircro edition release soon on Linux?
> 
> Thanks,
> Fox
> 
> --
> 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: Classpath

2000-03-24 Thread Jacob Nikom

With latest JDK1.2.2 I don't think you need CLASSPATH on Linux.
If you want you can set it to JAVA_HOME/bin
setenv CLASSPATH .:JAVA_HOME/bin

Don't forget to set 
setenv LD_LIBRARY_PATH .:/local/lib:/usr/lib:/usr/lib/X11:/usr/local/lib

Don't forget to set your PATH!

Jacob Nikom


Ben Pharr wrote:
> 
> Where and how should I set my classpath in Linux?  I have it working fine
> Windows, but I can't import any classes or packages in Linux.  Please help!!
> 
> Ben
> 
> --
> 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]




C-like functionality in numeric output

2000-03-27 Thread Jacob Nikom

Hi,

I tried to imitate the C-like functionality for numeric output
in Java. I hoped to format numeric output (integer) so that they
line up to the left like:

   1
  12
 344
1557

etc.

I used DecimalFormatter class:

DecimalFormat myFormatter = new DecimalFormat("");
String iString = myFormatter.format(myNumber);

However, what I got was:

0001
0012
0344
1557

(The pattern "" did not work at all)

Do you know, how I can get rid of leading zeroes and get
my formatting correctly?

Jacob Nikom


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




Re: C-like functionality in numeric output

2000-03-28 Thread Jacob Nikom

Thank you Cyntia,

I have read this docs and found that it is easier to convert
leading zeroes to spaces by myself.

Regards,

Jacob Nikom

Cynthia Jeness wrote:
> 
> Jacob,
> 
> I also think that this should be part of standard Java; however, here is
> a paragraph from the Javadoc supplied with Java 2 for the NumberFormat
> class:
> 
> ---Extract from JavaDoc--
> You can also use forms of the parse and format methods with ParsePosition
> and FieldPosition to allow you to:
> 
>   progressively parse through pieces of a string
>   align the decimal point and other areas
> 
> For example, you can align numbers in two ways:
> 
> 1.If you are using a monospaced font with spacing for alignment, you
> can pass the FieldPosition in your format call, with
>   field = INTEGER_FIELD. On output, getEndIndex will be set to the
> offset between the last character of the integer and
>   the decimal. Add (desiredSpaceCount - getEndIndex) spaces at the
> front of the string.
> 2.If you are using proportional fonts, instead of padding with
> spaces, measure the width of the string in pixels from the start to
>   getEndIndex. Then move the pen by (desiredPixelWidth -
> widthToAlignmentPoint) before drawing the text. It also works
>   where there is no decimal, but possibly additional characters at
> the end, e.g., with parentheses in negative numbers: "(12)"
>   for -12.
> -
> 
> Cynthia Jeness
> 
> Jacob Nikom wrote:
> 
> > Thank you very much Juergen,
> >
> > It sounds like there is no such functionality in "standard" Java
> > at all - this is strange. To be able to right-justified numbers
> > is the basic requirement for any numerical output.
> >
> > It is not a problem to write a program which does it - actually
> > it is quite easy to convert leading zeroes into spaces. I wanted
> > to have "pure" Java solution in the sense that people should not
> > write what is already written (or should be written).
> >
> > If I find "standard Java" solution I will post it.
> >
> > Regards,
> >
> > Jacob Nikom
> >
> > Juergen Kreileder wrote:
> > >
> > > >>>>> Jacob Nikom writes:
> > >
> > > Jacob> I used DecimalFormatter class:
> > >
> > > Jacob> DecimalFormat myFormatter = new DecimalFormat("");
> > > Jacob> String iString = myFormatter.format(myNumber);
> > >
> > > Jacob> However, what I got was:
> > >
> > > Jacob> 0001
> > > Jacob> 0012
> > > Jacob> 0344
> > > Jacob> 1557
> > >
> > > Jacob> (The pattern "" did not work at all)
> > >
> > > Jacob> Do you know, how I can get rid of leading zeroes and get
> > > Jacob> my formatting correctly?
> > >
> > > I never tried it but maybe this does what you want:
> > >
> > > http://www2.jps.net/~adahlman/programs/PaddedDecimalFormat.java
> > > http://pws.prserv.net/ad/programs/PaddedDecimalFormat.html (Javadoc)
> > >
> > > 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]


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




Re: error in compilation

2000-04-14 Thread Jacob Nikom

It appears when you use method which is no longer supported by
Sun. This is the way how Sun modernizes Java. You still can use
this method but it could stop to work one day.

Jacob Nikom 

Luz Lopez wrote:
> 
> Hi
> 
> I am compiling an applet but send me the following error:
> 
> uses or overrides a deprecated API.  Recompile with "-depreca
> tion" for details.
> 
> When appear this type of error?
> 
> thanks in advanced,
> 
> Regards,
> 
> __
> Get Your Private, Free Email at http://www.hotmail.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: jdb tips?

2000-04-21 Thread Jacob Nikom


Hi Zack,

Which debugger you used? jdb?
What commands did you run in order to make it work?
Could you write short notice for other people how
to run a debugger?

Jacob

Zack Grossbart wrote:
> 
> Nathan,
> 
> Thank you very much for your help.  I now have a working debugger on Linux.
> I have only one remaining issue.  If you must pass in the bootclasspath, is
> there anyway to only concatenate it?  I'm thinking specifically about
> i18n.jar.  This JAR is needed for internationalization support.
> 
> I can build a bootclasspath with only the stuff I need in it, but I would
> like to be able to assure that the bootclasspath that is set, and could have
> been set by the user, is used.
> 
> Thanks a lot.
> 
> Zack
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Nathan Meyers
> > Sent: Wednesday, April 19, 2000 12:16 PM
> > To: Zack Grossbart
> > Cc: noisebrain; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: jdb tips?
> >
> >
> > Zack Grossbart wrote:
> > >
> > > Nathan,
> > >
> > > Thank you very much for your help.  I need to pass a
> > couple more flags than
> > > just -debug.  When I launch:
> > >
> > > java -Djava.compiler=NONE -debug
> > -Xbootclasspath:/path/to/my/jdk/jre/lib/rt.
> > > jar:/path/to/my/jdk/lib/tools.jar
> > -Xrunjdwp:transport=dt_shmem,address=agfrn
> > > ,server=y,suspend=n myClass
> > >
> >
> > Followup to my previous response...
> >
> > I overlooked one thing when I tried your example... I run with green
> > threads by default. It appears that jpda fails with native threads in
> > Blackdown RC4. Try running "java -green ..." or setting the THREADS_FLAG
> > environment variable to "green".
> >
> > Nathan
> >
> >
> >
> > > my JVM crashes with the following trace:
> > >
> > > Agent password=5i442a
> > > Transport dt_shmem failed to initialize, rc = 509.
> > > FATAL ERROR in native method: No transports initialized
> > > SIGABRT   6*   abort (generated by abort(3) routine, also SIGIOT)
> > > si_signo [6]: SIGABRT   6*   abort (generated by abort(3)
> > routine, also
> > > SIGIOT)
> > > si_errno [0]: Success
> > > si_code [0]: SI_USER [pid: 0, uid: 0]
> > > stackpointer=0xbfffeb0c
> > >
> > > Full thread dump Classic VM (Linux_JDK_1.2.2_RC4, native threads):
> > > "Debugger agent" (TID:0x40e9e640, sys_thread_t:0x80f8df8, state:R,
> > > native ID:0x1005) prio=10
> > > "Finalizer" (TID:0x40e98320, sys_thread_t:0x80d4c10,
> > state:CW, native
> > > ID:0xc04) prio=8
> > > at java.lang.Object.wait(Native Method)
> > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
> > > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
> > > at
> > java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
> > > "Reference Handler" (TID:0x40e983b0,
> > sys_thread_t:0x80cec78, state:CW,
> > > native ID:0x803) prio=10
> > > at java.lang.Object.wait(Native Method)
> > > at java.lang.Object.wait(Object.java:424)
> > > at
> > java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
> > > "SIGQUIT handler" (TID:0x40e983e0, sys_thread_t:0x80ce8e8, state:R,
> > > native ID:0x402) prio=5
> > > "main" (TID:0x40e981e0, sys_thread_t:0x80537a8, state:R, native
> > > ID:0x400) prio=5
> > > Monitor Cache Dump:
> > > java.lang.ref.ReferenceQueue$Lock@40E98338/40ECE028: 
> > > Waiting to be notified:
> > > "Finalizer" (0x80d4c10)
> > > java.lang.ref.Reference$Lock@40E983C0/40ECDB20: 
> > > Waiting to be notified:
> > > "Reference Handler" (0x80cec78)
> > > Registered Monitor Dump:
> > > JDWP Transport Send Monitor: 
> > > JDWP Transport Listener Monitor: 
> > > JDWP Initialization Monitor: 
> > > JDWP Invocation Lock: 
> > > JDWP Step Handler Lock: 
> > > JDWP Thread Lock: 
> > > JDWP Reference Table Monitor: 
> > > JDWP Alloc Lock: 
> > > utf8 hash table: 
> > > JNI pinning lock: 
> > > JNI global reference lock: 
> > > BinClass lock: 
> > > Class linking lock: 
> > > System class loader lock: 
> > > Code rewrite lock: 
> > > Heap lock: 
> > > Monitor cache lock: owner "main" (0x80537a8) 1 entry
> > > Thread queue lock: owner "main" (0x80537a8) 1 entry
> > > Monitor registry: owner "main" (0x80537a8) 1 entry
> > >
> > > Thanks a lot for your help.
> > >
> > > Zack
> > >
> > > P.S. I am running glibc 2.1.2.
> > >
> > > > -Original Message-
> > > > From: nathanm [mailto:nathanm]On Behalf Of Nathan Meyers
> > > > Sent: Wednesday, April 19, 2000 10:38 AM
> > > > To: Zack Grossbart
> > > > Cc: noisebrain; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > > Subject: Re: jdb tips?
> > > >
> > > >
> > > > Zack Grossbart wrote:
> > > > >
> > > > > Nathan,
> > > > >
> > > > > When I try to launch a JVM with the debug options it
> > > > says there is no JDWP
> > > > > implementatio

Re: J2SEE 1.3 for Linux!

2000-06-05 Thread Jacob Nikom

Whose port is it? I looked at Blackdown and they don't have it.

Jacob Nikom

Peter Schuller wrote:
> 
> A Beta is available at
> 
> http://developer.java.sun.com/developer/earlyAccess/j2sdk13/download-linux.html
> 
> --
> / Peter Schuller, InfiDyne Technologies HB
> 
> PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
> Key retrival: Send an E-Mail to [EMAIL PROTECTED]
> E-Mail: [EMAIL PROTECTED] Web: http://scode.infidyne.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]




Is it Java-Linux or my problem (painting image on the component)?

2000-06-05 Thread Jacob Nikom

Hi,

I wonder do I have Java-Linux problem or it is my fault. I run
JDK1.2.2 RC4 with kernel 2.2.12-20 and libc 2.1.2 on PIII machine. 
I wrote a small program which creates two buttons and generates 
different images depends on which button is pressed. The images 
are painted on the JPanel component.

I have exactly the same code for both buttons, but the images
they produce and paint are very different. My "Stop" button does
not produce the image at all and instead draws the image of the
button.

My "Start" button works well but creates the image located
slightly differently than the one created during initialization.
All images suppose to be exactly the same because I use the same 
paintComponent routine for all drawing - so the result should be 
the same. I don't remember that I had this problem when I used 
my NT machine some time ago.

Any help is very appreciated,

Thank you,

Jacob Nikom

---
Here is the code (rather small, little more than 50 lines in 
the each module):

// == beginning of the main file GuiPanel.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

class GuiPanel extends JPanel
{
  MeteorImageInterface meteorImageInterface;

  JButton startButton, stopButton;

  Color backgroundColor = new Color(0.433f,0.691f,0.641f);

  GuiPanel()
  {
super();
System.out.println("Start  GuiPanel constructor");
this.setLayout(null);
this.setBounds(0,0, 266,250);
this.setBackground(Color.blue);

startButton = new JButton("Start");
startButton.setBounds(5, 5, 125, 30);
startButton.setBackground(Color.green);
startButton.addActionListener(startListener);
startButton.setEnabled(true);

stopButton = new JButton("Stop");
stopButton.setBounds(135, 5, 124, 30);
stopButton.setBackground(Color.red);
stopButton.addActionListener(stopListener);
stopButton.setEnabled(true);

meteorImageInterface = new MeteorImageInterface();
meteorImageInterface.setBounds(5,40, 128,128);
meteorImageInterface.setBackground(new Color(0.433f,0.691f,0.641f));
meteorImageInterface.setForeground(new Color(0.001f,0.300f,0.900f));
  
this.add(startButton);
this.add(stopButton);
this.add(meteorImageInterface);
  
System.out.println("Finish GuiPanel constructor");
  } 
  ActionListener startListener = new ActionListener()
  {
public void actionPerformed(ActionEvent event)
{
  meteorImageInterface.imageStart();
};
  };

  ActionListener stopListener = new ActionListener()
  {
public void actionPerformed(ActionEvent event)
{
  meteorImageInterface.imageStop();
}
  };

  public static void main(String[] args)
  {
JFrame frame = new JFrame("Swing Worker Thread Motion Example");
frame.setBounds(100,100, 286, 310);

frame.addWindowListener(new WindowAdapter()
{
  public void windowClosing(WindowEvent e)
  {
System.exit(0);
  }
});

Container container = frame.getContentPane();

container.setLayout(null);

GuiPanel guiPanel = new GuiPanel();

container.add(guiPanel);
frame.setVisible(true);
frame.validate();
  }
}
// == end of the main file GuiPanel.java

// == beginning of the class file MeteorImageInterface.java
import javax.swing.*;
import java.awt.*;
import java.awt.image.*;

public class MeteorImageInterface extends JPanel
{
  public static Image videoImage;
  MediaTracker myTracker;

  public static int imageWidth  = 160, imageHeight = 120;

  static int intArr[];

  MeteorImageInterface()
  {
super();

intArr = new int[imageWidth * imageHeight];

for (int i = 0; i < imageWidth * imageHeight; i++)
{
  intArr[i] = 0Xff00;
}

videoImage =
  createImage(
new MemoryImageSource(imageWidth, imageHeight, intArr, 0,
imageWidth));
  }

  public synchronized void imageStart()
  {
System.out.println("Start  imageStart");

//  Filling the arrays with colors
for (int i = 0; i < imageWidth * imageHeight; i++)
{
  intArr[i] = 0X00ff;
}

//  Create the video images
videoImage = 
  createImage(
 new MemoryImageSource(imageWidth, imageHeight, intArr, 0,
imageWidth));


//  Load the video image
myTracker = new MediaTracker(this);
myTracker.addImage(videoImage, 0);

try
{
  if (!myTracker.waitForID(0, 1000)) { return; }
} catch (Exception ignore) { }

repaint();
  }

  public synchronized void imageStop()
  {
//  Filling the arrays with colors
for (int i = 0; i < imageWidth * imageHeight; i++)
{
  intArr[i] = 0X00f000ff;
}

//  Create the video images
videoImage =
  createImage(
 new MemoryImageSource(imageWidth, imageHeight, intArr, 0,
imageWidth));

//  Load the video image
myTracker = new MediaTracker(this);
myTracker.addImage(v

Re: AW: C# -- the Java killer?

2000-06-28 Thread Jacob Nikom

In order to compete successfully with Java it has to be free.
It is not typical for Microsoft.

Jacob Nikom

"Hildebrandt, Kai (VIS32)" wrote:
> 
> >>   * Cross-platform portability does not appear to be a goal.
> >Of course it is only for MS World!
> And why they turned C# over to the ECMA and ISO?
> 
> Just speculating...
> 
> Kai
> 
> --
> 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: can't find libjava.so.

2000-06-28 Thread Jacob Nikom

You have to set up the variable LB_LIBRARY_PATH
Your .so file should be on this path. Usually you
have it in your current directory.

In my case it is (T-shell)
LD_LIBRARY_PATH=.:/local/lib:/usr/lib:/usr/lib/X11:/usr/local/lib

Regards,

Jacob


binyomin segal wrote:
> 
> (the first attempt at this message seems to have failed - sorry for any
> duplication)
> 
> hi all,
> 
> i am not a linux person (though the more i use it the more i like it) so
> please go slowly.
> 
> we are working on a cross-platform (mac/win/linux/solaris) java solution.
> 
> right now im working on the linux piece - we're using redhat 6.2 and
> blackdown java 1.2.2.
> 
> the solution interacts with various cds and creates a database on the
> users hard drive of info based on those cds.
> 
> to get the program working i was using the following shell script:
> 
> #!/bin/bash
> cd /
> cd /usr/local/jre1.2.2/bin
> export CLASSPATH=/root/myDirectory:/root/myDirectory/myJar.jar
> bash java myApplication
> 
> the problem with that shell is that because it leaves the prompt in the
> jre/bin directory any reading/writing of files defaults to there.
> 
> so i tried the following:
> 
> #!/bin/bash
> export CLASSPATH=/root/myDirectory:/root/myDirectory/myJar.jar:
>/usr/local/jre1.2.2/bin
> export PATH=$CLASSPATH:$PATH
> bash java myApplication
> 
> this does not work instead i get a "can't find libjava.so." error
> 
> any help would be appreciated
> please feel free to email me directly at [EMAIL PROTECTED]
> 
> tia
> ben
> 
> --
> 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: THEY WORK AGAIN!!!

2000-07-05 Thread Jacob Nikom

Could you tell me for the URL is?

THank you,

JAcob Nikom

Patrick Ohnewein wrote:
> 
> Ohh the links work now
> 
> I guess they just had a server crash
> 
> cu patrick
> 
> Patrick Ohnewein wrote:
> >
> > I posted a report to IBM reporting the problem, I've got the response
> > they forwarded the report to the webmaster :-<, may be I will ever get
> > to a download :-)
> >
> > cu patrick
> >
> > p.s. I will check the links again later, may be there was just a server
> > down, may be they us MS servers :-)
> >
> > Julio Cesar Aguilar Cabrera wrote:
> > >
> > > > Some of u managed to download the packages??
> > >
> > > I did download the RPM package (27+Mb) without a problem.
> > > I installed it but had time for nothing else.
> > >
> > >   --
> > >   Julio Cesar Aguilar Cabrera
> > >   [EMAIL PROTECTED]
> > >   Laboratorio Nacional de Informatica Avanzada
> > >   Xalapa, Veracruz, Mexico.
> > >
> > > --
> > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> > --
> > -
> > Save software competition, use Linux and Java!
> > mailto:[EMAIL PROTECTED]
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> --
> -
> Save software competition, use Linux and Java!
> mailto:[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]




Communication with Linux community

2000-07-05 Thread Jacob Nikom

Hi,

My question is little off the usual java-linux topics and relates 
to the activity in Linux community.

My company thinks about donating some of their applications to the
Linux community. Where I can look how to do it, whom to communicate
with and how it is usually happens?

Thank you,

Jacob Nikom


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





Who is right?

2000-09-07 Thread Jacob Nikom

Hi,

This is not really Java-Linux, but more like Java question.
May be it is different for Java Linux implementation, that is
why I decided to ask.

My friend and I recently tried to figure out which String
implementation is more efficient and correct:

String a = "bb"

or

String a = new String("bb");

He said that the second one is a copy constructor which is less
efficient. It uses more memory and requires to copy the array
from one place to another. I said that they are the same and it is
simply different syntax. Who is right?

 Thank you,

 Jacob Nikom




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




Re: Who is right?

2000-09-08 Thread Jacob Nikom

Hi,

I would like to thank all people in  discussion, especially Chris.
I had never looked at bytecodes before. As far as I see the
call to the String constructor is in the line 3.

It is interesting to know how different bytecodes could be in
different compilers.

Regards,

Jacob Nikom


Chris Abbey wrote:

> At 01:45 9/8/00 +0200, Uli Luckas wrote:
> >Now the second bad news, if you decompile the code generated with either
> >javac or jikes you can see that the constructor call is really compiled
> >into the code.
>
> umm... no it isn't
>
> test.java:
> public class test {
>  public static void main (String[] args) {
>  String a = "aaa";
>  String b = new String("bbb");
>  System.out.println("---");
>  System.out.println(a);
>  System.out.println(b);
>  }
> }
>
> Jikes produced bytecode:
> Method void main(java.lang.String[])
> 0 ldc #9 
> 2 astore_1
> 3 new #11 
> 6 dup
> 7 ldc #13 
> 9 invokespecial #18 
>12 astore_2
>13 getstatic #22 
>16 ldc #25 
>18 invokevirtual #29 
>21 getstatic #22 
>24 aload_1
>25 invokevirtual #29 
>28 getstatic #22 
>31 aload_2
>32 invokevirtual #29 
>35 return
>
> as you can clearly see there is only one call to the String ctor,
> and that is for b not a. Doing otherwise would be a violation of
> the VM spec. Javac in 118 and 130 emit similar bytecode.
>
> Jacob, another point I forgot to mention in my offlist reply was
> that duplicating a String in java is potentially more than a byte
> array copy... Strings have to be "internalized" which isn't always
> cheap in either time or resources.
>
> --
> 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: Where does all my jdk go ?

2000-09-15 Thread Jacob Nikom

Man Chi Ly wrote:

> /usr/java/jdk1.3
>
> a useful command is: rpm -ql jdk | more
>
> On Fri, 15 Sep 2000, Mohd Mokhtar wrote:
>
> > Hi all,
> >
> > Just like Nigel Jewell <[EMAIL PROTECTED]>, I've downloaded the
> > Linux JDK 1.3RC1 .sh file from Sun's website into my Linux machine. I
> > store it in /home/jkd1.3 directory.
> > After unpacked the package, I've move the j2sdk-1_3_0rc1-linux.rpm into
> > /usr/local/sdk1.3. Then I install the RPM but I could'nt find the files
> > and directories created by the RPM. Nothing is there. Where could it be
> > ? Or is there any mistake that I've done.
> >
> > Advice needed
> > --= ahYeop =--
> >
> >
> > --
> > 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]

use the command:
locate jdk

Jacob Nikom


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




Re: Zoom!

2000-09-21 Thread Jacob Nikom



legin wrote:

Hi
,  Can somebody
point me out some Java examples or some sought of info on how to grab a
particulalar grid in aimage
and zoom it... Thanks,legin.

Look at
http://java.sun.com/products/java-media/jai/index.html
http://www.sun.com/software/imaging/JAI/index.html
Jacob Nikom




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



Re: The Deitels' Java How to Program and Linux

2000-09-22 Thread Jacob Nikom

"Peter D. Junger" wrote:

> Again my thanks.
>
> This is just to report that---as I should have guessed---I could not get
> the Caldera jdk rpm to work.  I am now slowly downloading the tarball
> of Sun's JDK 1.2.2.
>
> Just out of curiosity at the moment, what is the status of open source
> versions or clones of Java?
>
> --
> Peter D. Junger--Case Western Reserve University Law School--Cleveland, OH
>  EMAIL: [EMAIL PROTECTED]URL:  http://samsara.law.cwru.edu
>  NOTE: [EMAIL PROTECTED] no longer exists
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Look at the URL:
http://www.blackdown.org/java-linux/ports.html


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




Graph drawing tool in Java for Linux

2000-11-16 Thread Jacob Nikom

Hi,

I am looking for graphical program in Java which can draw directed graph

(or other graph-like structures) as a typical MS directory pattern:

+ root
|
+--+ directory1
||
|   + directory2
||
||
||
||
||
|+ subdirectory1
...


Any help will be appreciated.

Jacob Nikom



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




Re: Graph drawing tool in Java for Linux

2000-11-16 Thread Jacob Nikom

Robbie Baldock wrote:

> Quoting Jacob Nikom <[EMAIL PROTECTED]>:
>
> > I am looking for graphical program in Java which can draw directed
> > graph
>
> Isn't that a JTree?
>
> Robbie
>
> This message was sent by Easymail - http://www.easynet.co.uk/
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Not exactly. Each node can have more than one parent.
You can convert it to the tree-like representation introducing
proxy nodes.

However, you have to keep track of them. For example, if you remove
the real node, you have to remove the proxy node as well, but this node
will be in another location in the tree.

Regards,

Jacob Nikom


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




Re: font problem

2000-12-05 Thread Jacob Nikom

Download Sun's JDK which is not suppose to have this problem.  Verify it.
Take the "font.properties"  file from there and put it into your JDK. The
problem will disappear.

Regards,

Jacob Nikom


Lopez Jose Ariel wrote:

> Hello:
> i have the classical font not found problem
>
> several lines like this:
> Font specified in font.properties not found [--zapf
> dingbats-medium-r-normal--8-%d-*-*-p-*-adobe-fontspecific]
>
> I saw some email that ask the same question but in none of them i found a
> complete solution (only partial things)
>
> Too saw in an email that in the month 9 of 1999 there was a discussion
> about that but in the archives only is available until 10/1999
>
> Somebody can point me where can i find  a solution ?
>
> Thanks. Ariel Lopez
>
> --
> 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]




Is it possible to start Java application in another directory?

2000-12-07 Thread Jacob Nikom

Hi,

I found that I cannot do very simple thing in Java.

If I start Java application like HelloWorldApp.java
in the directory where  HelloWorldApp.class file is
it works OK.

If I start it in another directory like
java  Another_directory/HelloWorldApp/HelloWorldApp

it complains:
Exception in thread "main" java.lang.NoClassDefFoundError:

Is there any way to circumvent it without using a script?

Regards,

Jacob Nikom




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




Re: Request: No more generic Java questions

2000-12-09 Thread Jacob Nikom

Hi,

For the last 3 days it was about 20 messages on the java-linux list.
Two or three of them (including responses) were generic.  It is not
huge traffic,  comparing with one couple of years ago.

I would be more concern that we have not enough questions. If this
is the case, the mailing list is dying.

Do you think there is real abuse of the list?

Regards,

Jacob Nikom

Matt Welsh wrote:

> In recent weeks we have seen a large number of non-Linux related Java
> questions on this list. While I suppose there is little that can be done
> to prevent that, I'd like to propose that replies to those questions
> be sent directly to the person asking, rather than the whole list.
>
> There are a few people on the list who make a point to reply to every
> non-Linux-related question. While I'm glad that they are willing to
> provide that support, I think it would be best not to send the replies
> to the whole list. The large amount of non-Linux traffic renders the
> 'java-linux' list almost ineffective for discussions about Java on Linux.
> If we can throttle those discussions I think the list would clear up and
> be more effective for its original purpose.
>
> Thanks.
>
> Matt Welsh, UC Berkeley
>
> --
> 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]




Real Java/Linux question (I think...)

2000-12-11 Thread Jacob Nikom

Hi,

The problem: my Java Console window does not show any messages which
do appear on the lower part of my browser. I am debugging applets with
my
Netscape Communicator 4.75. on Linux RedHat 6.2, Pentium III.  The JDK
is
Linux Sun 1.2.2, plugins installed.

If I run Windows, however, the "same" Netscape shows all messages very
well.
What should I do in order to see those messages on Linux Netscape?

Thank you,

Jacob Nikom


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




Re: Apology --> Constructive solution.

2000-12-13 Thread Jacob Nikom

Hi,

When I was on four mailing lists, every additional message bothered me a lot.
Now I am on only one list and additional messages don't bother me so much.
It also sounds like Blackdown people don't have any problem with current list.

Jacob Nikom

[EMAIL PROTECTED] wrote:

> I have always viewed this list as a support for the Blackdown JVM in general,
> not just it's installation.  Further, I have been subsribed to this list
> for about 2 years, and have not noticed much change in the general content.
>
> Often a seemingly innocous problem will be due to a linux centric(examples:
> port numbers below 1024, green or native threads, etc).
>
> However, admittedly, some people would rather keep the traffic down to new
> linux users learning howto untar files or asking where to get the latest
> version of glibc.
>
> My proposed solution to realize that java and linux have grown and simply
> petition Blackdown to add an additional mailing list.  Then we can have
> one for installation problems and one for Java code problems.
>
> In the mean time I would encourage you to post.
>
> David Blankley
>
> -
> I was surprised to see in the list below a thread that I started 
>(UnknownHostException).
> I apologize for whatever inconvenience my posts may have caused java-linux
> subscribers.
> Please know that I posted my question in good faith and only after doing
> my homework,
> but I may have misunderstood the purpose of this mailing list.
>
> Having said that, I would like to risk a last off-topic question. Does anyone
> know of
> any other mailing list where questions regarding Java exceptions that appear
> in Linux
> but not in Windows are relevant? My future questions will probably be of
> that sort.
> I regularly visit JDC, jGuru, and LinuxNewbie.org, but this is the only
> Java-on-Linux
> mailing list that I have found. Newsgroups and chat rooms are not available
> to me.
>
> Thank you.
>
> -- nancy
>
> - Original Message -
> From: Matt Welsh <[EMAIL PROTECTED]>
> Sent: Sunday, December 10, 2000 2:15 AM
> Subject: Re: Request: No more generic Java questions
>
> > I am also counting all of the responses. The following threads in the
> > last month or so I consider unrelated to Linux:
> >
> > UnknownHostException (3 messages)
> > follow-up Re: UnknownHostException (2 messages)
> > Is it possible to start Java application ... (2 messages)
> > Is there a solution? (1 message)
> > Starting java (1 message)
> > Template makefile for Java? (2 messages)
> > How to print String to default Printer, Help (2 messages)
> > Pablo- configurar imap (2 messages)
> > localhost ip (12 messages)
> >
> > The list goes on. In fact the majority of messages to this list have
> > nothing to do with Linux. All I am asking is for people not to send
> > replies to these "generic" questions to the entire list; we don't need
> > to see those responses since they aren't relevant.
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
> --
> iWon <http://www.iwon.com/> - Best Search Engine on the Web plus the
> chance to win $10,000 every day, $1 million every month and $10
> million on Tax Day! See www.iwon.com for details.
>
> --
> 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: Pablo- Javamail

2000-12-13 Thread Jacob Nikom

I agree with you, Dave. I also think that for Java/Linux discussion it is nice to
use
the language of documentation.

However, if some people simply don't know English, they should say something
in the subject, like "French". In this case I would not go into this message.

Regards,

Jacob Nikom


[EMAIL PROTECTED] wrote:

> While I disagree with Matt Welsh on the restriction of content(see my previous
> mail), I do think it is not too much to ask for people to post and reply
> in English.
>
> This maximizes the chance that someone will be able to answer your question,
> and allows all of us to share in the knowledge transfer.
>
> Dave Blankley.
>
> -- Original Message --
>
> >Pablo Trujillo wrote:
> >>
> >> Estoy trabajando con Javamail para desarrollar un servicio de correo
> >> electronico en Web. Tengo problemas para utilizar la función renameTo
> >de
> >> dicha librería. Si alguien tiene algun ejemplo de como se usa y si sabe
> >de
> >> alguna trampita que se debe hacer por escribanme.
> >
> >¿Cual es el problema? Mostranos unas lineas de código que representen
> >el problema.
> >
> >--
> >Diego Pons Pharos Consulting LLC
> >[EMAIL PROTECTED]
> >
> >
> >--
> >To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
> >
>
> --
> iWon <http://www.iwon.com/> - Best Search Engine on the Web plus the
> chance to win $10,000 every day, $1 million every month and $10
> million on Tax Day! See www.iwon.com for details.
>
> --
> 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]




  1   2   >