Re: Classpath help

1998-05-25 Thread Alexander Davydenko

> ? I need some help configuring my classpath.
> ? I can javac on file it works fine ie:
> ? javac hello.java
> ? this creates the .class file.

It may be usefull a common solution to use -d option in javac command.Just create a 
directory named myclass and do compile all
class files in it.
Something, like that  javac -d /home/someone/java/myclass hello.java.
Point your CLASSPATH to myclass, as CLASSPATH=myclass:$CLASSPATH, and run
java hello.

--

Cheers.
Alexander






Re: tya 06 + jdk_1.1.5_v7?

1998-05-19 Thread Alexander Davydenko

Nelson Minar wrote:

> Does tya06 work with sbb's latest port of the JDK, 1.1.5_v7? TYA's
> configure script breaks when it tries to detect the Java version, but
> if you hack it so that it sees Byrne JDK 1.1.5 libc and use the same
> bit of configuration that's used for the version that matches
>   java*root:02/25/25*
> it seems to work OK, I got about a x2 speedup on my application.
>
> But JITs are a subtle thing, so I thought I'd ask.

 I don't know, what it does, but little hack was applied. Tya works great.
Once more thank's Albrecht!

--

Cheers.
Alexander




#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
for ac_option
do

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
  fi

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
datadir="$ac_optarg" ;;

  -disable-* | --disable-*)
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
# Reject names that are not valid shell variable names.
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
fi
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
case "$ac_option" in
  *=*) ;;
  *) ac_optarg=yes ;;
esac
eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;

  -help | --help | --hel | --he)
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE   cache test results in FILE
  --help  print this message
  --no-create do not create output files
  --quiet, --silent   do not print \`checking...' messages
  --

Re: Versioning -- Linux JDK needs your HELP!

1998-09-25 Thread Alexander Davydenko

Steve Byrne wrote:

> We need three simple pieces of
> information from you:
>
> 1) Your system's libc version

libc.so.5 -> libc.so.5.4.44

>
> 2) Your system's libdl version

libdl.so.1 -> libdl.so.1.9.9

>
> 3) Whether you had to remove libc and libdl to make Java work for you

yes. It was removed.

Linux - 2.1.122 (i586)

--

Cheers.
Alexander





Re: Need help with initial Java setup

1998-10-02 Thread Alexander Davydenko

> Michael> Netscape does equally complex stuff.  It tries to find
> Michael> itself (and there is a setting but I forgot what it was)
> Michael> and once it does, it does even more by automatically
> Michael> adding *all* jar files in the directory where it stores
> Michael> its jar files.  This is so that plug-in and add-on java
> Michael> things can be done without the CLASSPATH setting.  Note
> Michael> that there actually is a problem with some versions of
> Michael> Netscape where if you have CLASSPATH defined at all when
> Michael> Netscape runs it does not try to find its own Java
> Michael> directories and thus will fail to run Java.  The best
> Michael> thing to do is not to have CLASSPATH defined when
> Michael> starting Netscape.
>
> export MOZILLA_HOME=/path/to/top/of/netscape/directory/tree
>
> Navigator will then successfully find the jar files it needs.

>From netscape README file:

Java Applet Support:

  Java Applet support is available for all Unix platforms.

  To run Java applets with the Java-enabled version, Communicator
  needs to be able to load Java class files from a file called
  java40.jar.  This file is included in the distribution, and is
  searched for using the following algorithm:

 if($CLASSPATH environment variable is set)
 Look at $CLASSPATH, where $CLASSPATH is a
 colon-delimited list of / entries.
 else
 Search in order:
 
 $MOZILLA_HOME/java/classes
 $HOME/.netscape
 /usr/local/netscape/java/classes
 /usr/local/lib/netscape

--

Cheers.
Alexander





Re: Trouble JDK 1.1.6 + HOTJAVA

1998-10-02 Thread Alexander Davydenko

>  > > * You DO NOT need to set JAVA_HOME.  Doing so can be bad for your health
>
> What makes you think HotJava needs JAVA_HOME?  Look at the launching script.  I
> think you need to set JDK_HOME (or JRE_HOME) but not JAVA_HOME, but the script
> is the final arbiter.

I can't catch a thought... What wrong is to set JAVA_HOME ?

The starter script is doing the same thing.

I just make it work simpler, by setting up that. :)

--

Cheers.
Alexander





Re: Where Can I find libBrokenLocale.so ?

1998-10-02 Thread Alexander Davydenko

[EMAIL PROTECTED] wrote:

> Is the source code available, because I have Slackware 3.5 not RHL.
>

If you have trouble with fonts, try to play with a font.properties.? file for your 
locale.

It was solving a problem for me. I've never needed that lib.

--

Cheers.
Alexander





Re: Trouble JDK 1.1.6 + HOTJAVA

1998-10-02 Thread Alexander Davydenko

Michael Sinz wrote:

> If that is the only Java VM on your system, then it should not cause
> a problem.  However, setting this can lead to problems if you install
> a new JDK to try it and forget to unset it.

:) i have 3 versions installed. Just use link to what i want.

> With so many different people doing so many different linux systems
> and so many different ways they install things, it is easier to just
> make a blanket statement that *generally* is true and assume that those
> who are more advanced users can work though the stuff.

it's truth

--

Cheers.
Alexander





Re: Java and CVS

1998-10-06 Thread Alexander Davydenko

Travis Shirk wrote:

> (1) I don't want CVS to try and merge .class
> files and

put file(s) cvsignore in the working dir and under all subdirs in the package 
hierarchy.

> (2) people working with the repository should need to do a cvs add
> on only the source file and not the new .class file.

there is a file(script) commitinfo under cvsroot/CVSROOT. It's used to verify what 
users want to
checkin, and allow(disallow) commit.

> javac -depend but I don't think it likes how I organize

try to use javadeps (http://www.cs.mcgill.ca/~stever/software/JavaDeps/)

For me, I use separate paths for .java and .class files, and run compiler with -d 
switch.
The Makefile I've composed checks dependencies, does call of jdeps tool, and finaly 
runs jikes.
_
Alexander



Re: JAVA Error

1998-10-13 Thread Alexander Davydenko


   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
... while talking to ns.tifrbng.res.in.:
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown




Reporting-MTA: dns; rover.javad.ru
Received-From-MTA: DNS; rover.javad.ru
Arrival-Date: Tue, 13 Oct 1998 13:18:20 +0400

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; ns.tifrbng.res.in
Diagnostic-Code: SMTP; 550 <[EMAIL PROTECTED]>... User unknown
Last-Attempt-Date: Tue, 13 Oct 1998 13:19:17 +0400


Subject:
   Re: JAVA Error
  Date:
   Tue, 13 Oct 1998 13:18:20 +0400
  From:
   Alexander Davydenko <[EMAIL PROTECTED]>
To:
   Syed Mubin <[EMAIL PROTECTED]>
 References:
   1



Syed Mubin wrote:

>
> iam sure java file exists in
> ./JDK1.6/jdk1.1.6/bin/i586/green_threads/java
>
> I have set the following classpath
>
> JAVA_HOME="/home/syed/JDK1.6/jdk1.1.6"

as said, it's prefere to use JDK_HOME instead JAVA_HOME

>
> export JAVA_HOME
> export DISPLAY=:0
> PATH="/home/syed/JDK1.6/jdk1.1.6/bin:$PATH"
> SWING_HOME="/home/syed/SWING13/swing-1.0.3"
> export SWING_HOME
> CLASSPATH=/home/syed/SWING13/swing-1.0.3/swingall.jar

CLASSPATH=".:$CLASSPATH"

>
> export CLASSPATH

--

Cheers.
Alexander






Re: Swing 1.0.3

1998-10-20 Thread Alexander Davydenko

Troy Wu wrote:

> On Mon, 19 Oct 1998, Miguel Mateos Lopez wrote:
>
>  I have some problems with the file swing.jar. When I compile an example,
>  the compiler returns errors. It doesn't find out included packages in
>  swing.jar. CLASSPATH is OK.
>
> Are you putting the full classpath; i.e.:
>
> CLASSPATH=$CLASSPATH:/where/you/have/installed/swing/swing.jar
>
> and _NOT_ just
>
> CLASSPATH=$CLASSPATH:/where/you/have/installed/swing
>
> ?

Try to use only swingall.jar classes archive, or archives swing.jar and
motif.jar(windows.jar) both.

--

Cheers.
Alexander





Re: Debian Java howto

1998-05-20 Thread Alexander Davydenko

Paul Reavis wrote:

> I'd like to volunteer to start and maintain some documentation on
> installing and running the java JDK port under Debian.

May it be prefere to maintain a .deb package?

--

Cheers.
Alexander






test jikes

1998-07-23 Thread Alexander Davydenko

code:

{
Object o=Finding.detect(this,new UnaryPredicate()
  {
23:   public boolean execute(Object o)
{ return ((Field)o).GetTag().charAt(0)!='0'; }
  });
if(o==null)
  throw new NoSuchElementException("No primary field.");
return (Field)o;
}
jikes output:

Found 1 semantic error compiling "Record.java":

23.   public boolean execute(Object o)
^
*** Error: Duplicate declaration of local variable o
--

Cheers.
Alexander





Re: Debian Java howto

1998-05-20 Thread Alexander Davydenko

Paul Reavis wrote:

> ? May it be prefere to maintain a .deb package?
>
> There is already a maintainer, I believe, but release issues and time
> make it hard to keep the .deb up with the absolute most current
> JDK release.
>
> For example, apparently the 1.1.5v7 release requires a version of glibc
> that is in the debian "unstable" distribution set; this would prevent
> people only running stable (bo)

on my box i'm running stable(bo) Debian with Steve's compiled jdk1.1.5v7.It was 
compiled with libc. No crashes, no leaks.

> 1.1.1 comes with hamm, but I want the latest and greatest, so I need to
> figure out all these library issues.
>
>

 btw, TYA0.6 works fine with the jdk.

--

Cheers.
Alexander






Re: How to print a GUI

1999-07-15 Thread Alexander Davydenko

Sitanshu Bhusan Nanda wrote:
> 
> I am using java1.1.5 in Redhat Linux 5.2. I have developed some
> applications using JDBC and Postgresql 6.4 . I have also generated some
> reports using Java AWT. My problem is how to print those GUIs(reports).
> Is there any way i can convert these GUIs to **.ps files?
> 
> --
> | ("`-''-/").___..--''"`-._ |Sitanshu Bhusan Nanda   |
> |  `6_ 6  )   `-.  ( ).`-.__.`) | At:- Pithapur  |
> |  (_Y_.)'  ._   )  `._ `. ``-..-'  |Po: Buxi Bazar  |
> |_..`--'_..-_/  /--'_.' ,'  |CUTTACK-753001  |
> |   (il), ''  (li),'  ((!.-'|Orissa, INDIA   |
> |email: [EMAIL PROTECTED]  |
> | When ever you smile others smile with ||
> | you but when you cry you cry alone.   ||
> --
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
You can try to use PSGraphics or PSGr classes. I cant remember where it
hosted,
but it seems a PSGraphics from Kaffe.

Cheers.
-- 
Alexander Davydenko |
[EMAIL PROTECTED], [EMAIL PROTECTED]   | Moscow, USSR
-
<<<<<   Powered by Linux & 220V   >>>>>


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



Re: File or class transfer over tcpip

1999-08-03 Thread Alexander Davydenko

Robert Covell wrote:
> 
> System.out.println("Getting file: " + loc);
> try
> {
> DataInputStream di = new DataInputStream(new
> FileInputStream(new File(loc)));
> int avail = di.available();
i think it must return 0,  (if it actually not
overloaded)
> System.out.println("Available: " + avail);
>     byte[] data = new byte[avail];

Cheers.
-- 
Alexander Davydenko |
[EMAIL PROTECTED], [EMAIL PROTECTED]   | Moscow, USSR
-
<<<<<   Powered by Linux & 220V   >>>>>


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



Re: How can I setup a Chinese Java on Linux? [locale]

1999-08-21 Thread Alexander Davydenko

Ulli Kortenkamp wrote:
> 
> Ulli Kortenkamp wrote:
> 
> > Please ignore my question.
> 
> Well, after trying to make things work and failing badly,
> I would like to here of anybody how successfully enabled
> the Chinese locale on his Linux Java.
> 
I played with locale some time ago and I think it very raw implementation.
On my locale it works for some Format, but doesn't for characters
translation,
 
By the way, do you have any non XKB keyboard swich method get working?
I have no any chance to switch to my localized keyboard with modemap change
since jdk1.1.6. It seems all versions jdk after that one, grab
modmap settings on startup and freeze it forever. I think it's buggy.

Cheers.
-- 
Alexander Davydenko |
[EMAIL PROTECTED], [EMAIL PROTECTED]   | Moscow, USSR
-
<<<<<   Powered by Linux & 220V   >>>>>


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



Re: Debugger

1999-10-13 Thread Alexander Davydenko

Brian Miller wrote:
> 
> I was wondering what debugger people are using?  Does a Linux port of
> ddd exist?

IMHO pure jdb from terminal with some patience is a nice choice, especially
if threads debugging. There is a jd from alphaworks. It's a java written,
and
quite robust.

Cheers.

-- 
Alexander Davydenko |
[EMAIL PROTECTED], [EMAIL PROTECTED]   | Moscow, USSR
-
<<<<<   Powered by Linux & 220V   >>>>>


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



Re: javac parser bug in blackdown jdk?

2000-08-04 Thread Alexander Davydenko

On Thu, Aug 03, 2000 at 08:23:47PM +, Dimitris Vyzovitis wrote:
 > I am getting a very strange error with javac of blackdown 1.2.2RC4 (I
 > haven't tested with the FCS yet), that does not occur with jikes or the
 > javac that comes with ibm's jdk 1.3.
 > 
 > The problem is illustrated by the following:
 > 
 > file a.java:
 > interface a {
 > 
 > interface b {
 > 
 > public static final String test = "test";
 > 
 > }
 > 
 > } 
 > 
 > file c.java:

it seems needs look like that, is'nt it?
public class c implements a {
  
  public static void main( String[] args ) {
System.out.println( a.b.test );
  }
  
}
  
 > 
 > If you try to compile those files with jikes or ibm's javac, everything
 > works smoothly.
 > However, if your do so with blackdown's 1.2.2RC4, the following error
 > occurs:
 > [dimitris@gauss bugs]$ javac a.java c.java
 > c.java:4: Undefined variable or class name: b
 > System.out.println( b.test );
 > ^
 > 1 error
 > 
 > Obviously, this is not the correct behavior, since b is a static
 > sub-interface of a, of which c is an instance. So b should a type
 > directly accessible to c.
 > Hence, I believe that the compilation should not produce any problems
 > (this is the behavior of jikes and ibm's javac).
 > And, to strengthen this argument, if I change b.test to a.b.test the
 > program compiles normally.
 > Any comments?
 > 
 > 
 > -- dimitris 
 >mailto:[EMAIL PROTECTED]
 > 
 > 
 > ------
 > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


-- 
Alexander Davydenko |
[EMAIL PROTECTED], [EMAIL PROTECTED]| Moscow, USSR
-
<<<<<   Powered by Linux & 220V   >>>>> 


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