JDBC

1999-09-21 Thread Nicholas.Knight

Thanks for the help so far regarding the JDBC-ODBC bridge.

I have down loaded the mm.mysql driver for JDBC, which after reading the
docs, this is a class IV driver. Does this mean that it DOES NOT require the
ODBC bridge. Cos if does why is JRE still asking for it

Thanks

Nick


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



Fixed (capturing stdout)

1999-09-21 Thread Neil Clayton

Well, sorry to leave so many messages regarding this.
I've worked it out - so problem is now history, and it was nothing to do
with the VM.

Cheers,
Neil Clayton


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



JDK 1.2 library problem

1999-09-21 Thread Pierre Heroux

I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2
glibc2.1, native threads, nojit)on RedHat 5.2.

I compile a C++ code which invoke JavaVM.
g++ simple.cpp -I/usr/local/jdk1.2/include -ljava

I get the following message

/usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
reference to `sem_destroy@@GLIBC_2.0'
/usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
reference to `sem_post@@GLIBC_2.0'
/usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
reference to `sem_wait@@GLIBC_2.0'
/usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
reference to `sem_init@@GLIBC_2.0'

It looks like if I forgot a library but which one ?
Is it an installation problem ?

Pierre




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



Re: debuggers for Java-JNI-C++

1999-09-21 Thread Paul Beardsley


Thanks, but how do I do that first step of
running a JVM under Java - is there a C
executable somewhere that runs a JVM,
so that I can gdb that executable?

Thanks, 
Paul.

Gregory Steuck writes:
 > 
 > Yeah, run JVM under gdb and set a breakpoint inside of your native code.
 > You have to be familiar with gdb though.
 >
 > > "Paul" == Paul Beardsley <[EMAIL PROTECTED]> writes:
 > 
 > Paul> Hi,
 > 
 > Paul> I am new to Linux/Java/JNI.  Is there such a thing as a
 > Paul> debugger for Java-C++ systems (communicating via the JNI)
 > Paul> which can cope with both sides of the interface?  Or given a
 > Paul> Java UI (the main is in Java) which is invoking a C++ system,
 > Paul> which then does some callbacks to Java, is there a way to get
 > Paul> a debugger running on the C++ part?


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



Re: JDK 1.2 library problem

1999-09-21 Thread Andreas Jaeger


On Tue, 21 Sep 1999, Pierre Heroux wrote:

> I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2
> glibc2.1, native threads, nojit)on RedHat 5.2.

RedHat 5.2 comes with glibc 2.0.7 and not with glibc 2.1.x.  Please get
the correct JDK release for your platform.
 
> I compile a C++ code which invoke JavaVM.
> g++ simple.cpp -I/usr/local/jdk1.2/include -ljava
> 
> I get the following message
> 
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_destroy@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_post@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_wait@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_init@@GLIBC_2.0'
> 
> It looks like if I forgot a library but which one ?
> Is it an installation problem ?
Yes.

Andreas
-- 
 Andreas Jaeger   [EMAIL PROTECTED][EMAIL PROTECTED]
  for pgp-key finger [EMAIL PROTECTED]


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



Re: [Problem with JNI_CreateJavaVM()]

1999-09-21 Thread Juergen Kreileder

> Ted Neward writes:

Ted> Pierre, I'm running RH5.2 and Blackdown 1.2-pre-v2, and the
Ted> code compiled (I had to add the "-I" include directives,
Ted> though--your g++ command-line below was missing those, but
Ted> that would yield a compile-time error, and not a run-time
Ted> segfault) and ran without a hitch; I'd check to make sure the
Ted> JDK installation itself is good, in case there's some
Ted> configuration issue at stake here. (Juergen, I didn't need
Ted> the LD_BIND_NOW directive to get this to run--is it really
Ted> required?)

No, but it helps sometimes when invocation fails on glibc-2.0 systems.


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]



Re: JDBC

1999-09-21 Thread Peter Pilgrim



[EMAIL PROTECTED] wrote:
> 
> Thanks for the help so far regarding the JDBC-ODBC bridge.
> 
> I have down loaded the mm.mysql driver for JDBC, which after reading the
> docs, this is a class IV driver. Does this mean that it DOES NOT require the
> ODBC bridge. Cos if does why is JRE still asking for it
> 
> Thanks
> 

You must be loading it with `Class.forName("sun.jdbc.odbc.JdbcOdbc" )' .
Or the software is default to this class name in your JDK config.
I haven't got JDK 1.2 but maybe there is a new properties file for
specifiying default JDBC drivers? 

-- 

Adios
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
"Give the man, what he wants. £££" [on Roy Keane, Quality Player]


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



Re: JDK 1.2 library problem

1999-09-21 Thread Harri Sunila

On Tue, 21 Sep 1999, Pierre Heroux wrote:

> I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2
> glibc2.1, native threads, nojit)on RedHat 5.2.
> 
> I compile a C++ code which invoke JavaVM.
> g++ simple.cpp -I/usr/local/jdk1.2/include -ljava
> 
> I get the following message
> 
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_destroy@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_post@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_wait@@GLIBC_2.0'
> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
> reference to `sem_init@@GLIBC_2.0'
> 
> It looks like if I forgot a library but which one ?
> Is it an installation problem ?

I think, you'll need a glibc 2.0 version of the JDK. I suppose RH5.2 is
based on glibc 2.0 not glibc 2.1.

Harri

Harri Sunila
Research assistant
Helsinki University of Technology
Telecommunications Software and Multimedia Laboratory
URL: http://www.tcm.hut.fi/~harri


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



Re: debuggers for Java-JNI-C++

1999-09-21 Thread Juergen Kreileder

> Paul Beardsley writes:

Paul> Thanks, but how do I do that first step of
Paul> running a JVM under Java - is there a C
Paul> executable somewhere that runs a JVM,
Paul> so that I can gdb that executable?

$ DEBUG_PROG=gdb java_g 
...
(gdb) run 

Paul> Gregory Steuck writes:
>> 
>> Yeah, run JVM under gdb and set a breakpoint inside of your native code.
>> You have to be familiar with gdb though.
>> 
>> > "Paul" == Paul Beardsley <[EMAIL PROTECTED]> writes:
>> 
Paul> Hi,
>> 
Paul> I am new to Linux/Java/JNI.  Is there such a thing as a
Paul> debugger for Java-C++ systems (communicating via the JNI)
Paul> which can cope with both sides of the interface?  Or given a
Paul> Java UI (the main is in Java) which is invoking a C++ system,
Paul> which then does some callbacks to Java, is there a way to get
Paul> a debugger running on the C++ part?


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]



Re: JDK 1.2 library problem

1999-09-21 Thread Juergen Kreileder

> Pierre Heroux writes:

Pierre> I am using jdk1.2 Classic VM (build Linux_JDK_1.2_pre-release-v2
Pierre> glibc2.1, native threads, nojit)on RedHat 5.2.

Pierre> I compile a C++ code which invoke JavaVM.
Pierre> g++ simple.cpp -I/usr/local/jdk1.2/include -ljava

Pierre> I get the following message

Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_destroy@@GLIBC_2.0'
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_post@@GLIBC_2.0'
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_wait@@GLIBC_2.0'
Pierre> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined
Pierre> reference to `sem_init@@GLIBC_2.0'

Pierre> It looks like if I forgot a library but which one ?
Pierre> Is it an installation problem ?

Do have glibc-2.1 installed?  If not, you have the wrong JDK version.

If you have glibc-2.1.2 installed, you've hit one of the bad sides of
symbol versioning: With glibc-2.1.2 it's impossible to link against
the glibc-2.1 JDK :-((


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]



Re: debuggers for Java-JNI-C++

1999-09-21 Thread Paul Beardsley


OK, but I'm running Java 2 SDK so I think I don't have 
access to a java_g - is there an alternative 
approach for Java 2?

Paul.


Juergen Kreileder writes:
 > 
 > Paul> Thanks, but how do I do that first step of
 > Paul> running a JVM under Java - is there a C
 > Paul> executable somewhere that runs a JVM,
 > Paul> so that I can gdb that executable?
 > 
 > $ DEBUG_PROG=gdb java_g 
 > ...
 > (gdb) run 
 > 


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



Re: debuggers for Java-JNI-C++

1999-09-21 Thread Juergen Kreileder

> Paul Beardsley writes:

Paul> OK, but I'm running Java 2 SDK so I think I don't have 
Paul> access to a java_g - is there an alternative 
Paul> approach for Java 2?

Use 'java' or download jdk1.2pre-v2-debug.tar.bz2 which contains 'java_g'.

Paul> Juergen Kreileder writes:
>> 
>> $ DEBUG_PROG=gdb java_g 
>> ...
>> (gdb) run 
>> 


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]



Re: Downloading the IBM JDK 1.1.8. Any Luck?

1999-09-21 Thread John N. Alegre

Actually I think it depends on the day or the phase of the moon or somesuch.  I
just tried it again, same browser, same mime types and it worked first try.

??
john

On 20-Sep-99 Pete Toscano wrote:
> likewise.  i tried the "if you experience a problem" link too, but that
> was useless.
> 
> pete
> 
> On Sun, 19 Sep 1999, John N. Alegre wrote:
> 
>> I have had no luck downloading the JDK 1.1.8 from IBM.  Connection to
>> alphaWorks site is fine.
>> 
>> I set a MIME type in Netscape as
>> 
>> Description: GNUZiped File
>> Mime Type:   application-x/compressed
>> Suffixes:.gz .tgz
>> 
>> and checked the "save to disk" radio button.
>> 
>> No luck.  After completing the reg form and license agreement, the next
>> screen
>> just hangs.  No download.
>> 
>> Is there any way to FTP direct to this site and download using standard FTP.
>> 
>> All comments welcome
>> john
> 
> -- 
> Pete Toscano  h:[EMAIL PROTECTED]  w:[EMAIL PROTECTED]
> GPG fingerprint: AE5C 18E4 D069 76D3 9B9C  D226 D86A 522F 446C 767A

--
E-Mail: John N. Alegre <[EMAIL PROTECTED]>
Date: 20-Sep-99
Time: 19:20:57

This message was sent by XFMail
--


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



Installation..

1999-09-21 Thread Raj Patel

Hi,
I am running Linux Redhat 5.2.  I just downloaded
jdk1.2pre-v2.tar.bz2.  Is that the suitable latest version?  Can i get
installation instruction?



begin:  vcard
fn: Rajesh Patel
n:  Patel;Rajesh
org:Lockheed Martin Information Systems 
adr;dom:Advance Simulation Center;;37 North Ave.;Burlington;MA;01803;
email;internet: [EMAIL PROTECTED]
tel;work:   781 505 9582
tel;fax:781 505 9501
tel;home:   [EMAIL PROTECTED]
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:2.1
end:vcard




How can I help stuff...

1999-09-21 Thread Larry Gates


Not too long ago, there were 2 volunteers wanting to know how they can
help the Linux-Java community and I responded (among many examples)
that a Postscript viewer would be a neat, but tough java project.  In case
anyone started this, better check this out:

On Thu, 12 Aug 1999 08:17:59 -0400 (EDT), 
[EMAIL PROTECTED] (Nelson Minar) wrote

>>I can't believe that I can't create images on dedicated Web server and send
>>it to clients over http response if I don't run X!!!
>
>The Java image stuff is fairly poor. Various people have written
>libraries to do graphics without AWT. One that looks interesting is
>Jef Poskanzer's, over at http://www.acme.com/
>
>  [EMAIL PROTECTED]
>.   .  . ..   .  . . http://www.media.mit.edu/~nelson/

apparently, Jef's site claims "JavaSoft and Adobe are said to be
working on a 2-D rendering API similar to PostScript", so I would find
out more about this before re-inventing the wheel.

-Larry Gates


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



Re: Fixed (capturing stdout)

1999-09-21 Thread Todd Papaioannou

At 20:52 21/09/99 +1200, Neil Clayton wrote:
>Well, sorry to leave so many messages regarding this.
>I've worked it out - so problem is now history, and it was nothing to do
>with the VM.

And the fix was...?

cheers

Todd


---
   Todd Papaioannou @ MSI   Luckyspin @ TerraFirmA
  http://luckyspc.lboro.ac.ukhttp://terrafirma.terra.mud.org
 "Mobility is Key"  'It's a brave new world in there'
---
The Aglet Portal - http://luckyspc.lboro.ac.uk/Aglets
---


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



Capturing stdout.

1999-09-21 Thread Neil Clayton

Oh, thought I would provide an explanation of my problem, just so people
know.

The full command was:

sflwl -hlwl.fourmilab.ch:2076 '[EMAIL PROTECTED]'

The argument to sflwl being
1. -hlwl.fourmilab.ch:2076
2. [EMAIL PROTECTED]

Which of course works fine in the shell.  However; I was using the
single argument form of Runtime.exec(String command), and this was
passing in the quotes too. So the arguments to sflwl when run under Java
were:

1. -hlwl.fourmilab.ch:2076
2. '[EMAIL PROTECTED]'

And of course the command failed to produce any output, because no one
with that email address existed on the server (must be an exact match).
I had actually tried the array version, exec(String cmd[]), but that
failed to produce the right output since the args to sflwl became (it
appears to perform a splilt on the ':'):

1. -hlwl.fourmilab.ch
2. 2076
3. [EMAIL PROTECTED]

Anyway, so there is my solution.  As I emailed to some other kind person
who was attemptin to help me: Live and learn.

So this must mean that the VM does not use the *nix shell in order to
exec() commands? (forgive the question, I've not looked at the JVM
source)

Neil


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



Re: debuggers for Java-JNI-C++

1999-09-21 Thread jools enticknap


Hi

I was hoping that somebody might come up with a better solution to the one I 
currently use ( as it's very flaky ) so I though I'd post the way I debug 
JNI on Linux.

1) Get a copy of ddd. ( Plase don't post messages as to how you get it, 
it'll just piss of the rest of the guys )

2) Using the jdb feature of the debugger, start your application and place a 
break point on your native method.

3) When you hit the break point, startup another ddd session except use the 
attach feature to debug the (green) java program.

4) Set a breakpoint in your JNI code.

5) press the cont button on the C/C++ debug session.

6) press the cont button the Java session.


Yeah yeah yeah, I know its not great, but it works most of the time :-(

Or you could write you own program which loads the virtual machine and just 
use ddd on that, setting a breakpoint in your shared library or what 
ever.


Best regards


--Jools




>From: Paul Beardsley <[EMAIL PROTECTED]>
>To: Juergen Kreileder <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: debuggers for Java-JNI-C++
>Date: Tue, 21 Sep 1999 12:07:43 -0400 (EDT)
>
>
>OK, but I'm running Java 2 SDK so I think I don't have
>access to a java_g - is there an alternative
>approach for Java 2?
>
>Paul.
>
>
>Juergen Kreileder writes:
>  >
>  > Paul> Thanks, but how do I do that first step of
>  > Paul> running a JVM under Java - is there a C
>  > Paul> executable somewhere that runs a JVM,
>  > Paul> so that I can gdb that executable?
>  >
>  > $ DEBUG_PROG=gdb java_g
>  > ...
>  > (gdb) run 
>  >
>
>
>--
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact 
>[EMAIL PROTECTED]
>

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



Re: Capturing stdout.

1999-09-21 Thread Juergen Kreileder

> Neil Clayton writes:

Neil> Oh, thought I would provide an explanation of my problem,
Neil> just so people know.

Neil> The full command was:

Neil>   sflwl -hlwl.fourmilab.ch:2076 '[EMAIL PROTECTED]'

Neil> So this must mean that the VM does not use the *nix shell in
Neil> order to exec() commands? (forgive the question, I've not
Neil> looked at the JVM source)

Yep, the JDK uses execve(2)/execv(3) and not system(3).

A working command array for your problem is

  { "/bin/sh", "-c", "sflwl -hlwl.fourmilab.ch:2076 '[EMAIL PROTECTED]'" }


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]



Installing JRE on Linux

1999-09-21 Thread Ahbaid Gaffoor

Hello all,

I'm trying to install Oracle 8i v 8.1.5 on RedHat Linux 5.1,

part of their installation is to download JRE 1.1.6 v5 and create a link

to the root directory of the jre installation as /usr/local/jre

I did this but, upon doing ./runInstaller nothing happens,

My question is:

How excatly should I install JRE 1.1.6 v5? Do I need to do anything
after
running tar -zxvf jre*.tar.gz ?

Such as creating links, setting environment variables etc?

Any help in this matter would be greatly welcomed,

thank you,

Ahbaid


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



Re: [Q] CLASSPATH, JAR searching, etc

1999-09-21 Thread Daniel Barclay


> From: dave madden <[EMAIL PROTECTED]>

> 
> Hi.  I'm fairly new to Java, but stumbling along quite nicely, thank
> you; but I'm confused about how the VM finds stuff mentioned in
> CLASSPATH.  Is there an "everything you wanted to know" FAQ, the kind
> of thing that when you get done reading it, you wish you hadn't asked?

[10 seconds after sending previous reply]

Oh wait, there is, right my search results:

http://java.sun.com/products/jdk/1.2/docs/tooldocs/findingclasses.html

Daniel


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



Re: [Q] CLASSPATH, JAR searching, etc

1999-09-21 Thread Daniel Barclay


> From: dave madden <[EMAIL PROTECTED]>

> 
> Hi.  I'm fairly new to Java, but stumbling along quite nicely, thank
> you; but I'm confused about how the VM finds stuff mentioned in
> CLASSPATH.  Is there an "everything you wanted to know" FAQ, the kind
> of thing that when you get done reading it, you wish you hadn't asked?

Sun has some document about how classes are found and loaded.
I couldn't remember how to find it just now, but look around the
JDK 1.2 area on their Java web site.

Daniel


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



No such file?

1999-09-21 Thread [EMAIL PROTECTED]


Here's the error:

$ java
/usr/local/jdk1.2/jre/bin/realpath:
/usr/local/jdk1.2/jre/bin/i386/realpath: No such file or directory
/usr/local/jdk1.2/jre/bin/realpath:
/usr/local/jdk1.2/jre/bin/i386/realpath: No such file or directory
/usr/local/jdk1.2/bin/java: /usr/local/jdk1.2/bin/i386/native_threads/java:
No such file or directory
/usr/local/jdk1.2/bin/java: /usr/local/jdk1.2/bin/i386/native_threads/java:
No such file or directory

I get the error if I install either the Glibc2.0 or Glibc2.1 version.  I've
looked in the given directories and, sure enough, the files are there with
correct permissions (world read, world execute, etc.).

To install the JDK I bunzip2'd the archive then did:

$ cd /usr/local
$ tar xf jdk1.2.whatever.tar

Should the JDK be unpacked elsewhere?  Why am I getting this error (the
Blackdown JDK port of v1.1.7 installed just fine many moons ago).

Here's some system information:

Linux Slackware version 4.0.

$ set | grep PATH
 PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/openwin/bin:/usr/games:
.:/opt/kde/bin:/usr/local/jdk1.2/bin:~/bin

$ uname -a
Linux caitlin 2.2.6 #20 Tue Apr 27 15:23:25 CDT 1999 i686 unknown

$ ls -l /usr/local/jdk1.2/jre/bin/i386
total 14
drwxr-xr-x   2 root root 1024 Jun  4 02:46 green_threads/
drwxr-xr-x   2 root root 1024 Jun  4 02:46 native_threads/
-rwxr-xr-x   1 root root11862 Jun  4 00:43 realpath*

$ ls -l /usr/local/jdk1.2/
total 4404
-rw-r--r--   1 root root  915 Jan 26  1999 COPYRIGHT
-rw-r--r--   1 root root 8605 Jan 26  1999 LICENSE
-rw-r--r--   1 root root 5864 Jan 26  1999 README
-rw-r--r--   1 root root  608 Jun  4 02:51 README.PRE-RELEASE
-rw-r--r--   1 root root19431 Jan 26  1999 README.html
-rw-r--r--   1 root root11688 Jun  4 02:51 README.linux
-rw-r--r--   1 root root 6422 Jun  4 02:51 README.linux.src
drwxr-xr-x   3 root root 1024 Jun  4 02:50 bin/
drwxr-xr-x   4 root root 1024 Jun  4 02:50 demo/
drwxr-xr-x   3 root root 1024 Jun  4 02:50 include/
drwxr-xr-x   3 root root 1024 Jun  4 02:50 include-old/
drwxr-xr-x   4 root root 1024 Jun  4 02:50 jre/
drwxr-xr-x   2 root root 1024 Jun  4 02:52 lib/
-rw-r--r--   1 root root  4427339 Jun  4 02:51 src.jar

$ ls -l jdk*
-rw-r--r--   1 root root 45168640 Sep 21 15:14 jdk1.2pre-v2-glibc21.tar
-rw-r--r--   1 root root 44298240 Sep 21 15:13 jdk1.2pre-v2.tar

$ ldconfig -v | grep libc
ldconfig: warning: /lib/libdl-2.0.7.so is not a shared library, skipping
libcurses.so.1 => libcurses.so.1.0.0
libc.so.5 => libc.so.5.4.46
libcom_err.so.2 => libcom_err.so.2.0
libc.so.4 => libc.so.4.7.6
libcurses.so.0 => libcurses.so.0.1.2

The warning on ldconfig bothers me a bit more than slightly (I had a
partial HD crash and wound up reinstalling most of Linux v4.0 again,
including the JDK several times from scratch).

I sure hope I'm missing something simple here.

Thanks for any hints as to what I'm doing wrong!

Dave


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



Re: [Q] CLASSPATH, JAR searching, etc

1999-09-21 Thread Jeff Galyan

dave madden wrote:
> ...
> find classes there, but is there any more to it?  Why are there so
> many .jar files?  Why are some in ...java/lib, and others in (and
> under) ...java/jre/lib?  Is it a Bad Idea to unpack them all into a
> master tree, then make a giant .jar containing all the .class files?
> 

Well, if you're using JDK 1.2, you don't need to set a CLASSPATH
environment variable. The VM will find the classes automatically in the
default locations in that release. If you want to use add-on packages
(like JMF for example), you can take advantage of the extension
mechanism by putting the jar files in /jre/lib/ext and then
it "just works" - as long as the jar files are world-readable (or at
least readable by your user account). If you're using an earlier release
of Java, you'll need to have all the jar and zip files containing
classes in your CLASSPATH.

Generally, you should not need to unpack the jar files, nor is it
generally a good idea to do so, as they frequently contain fairly
complex directory structures that, if altered, will cause the VM to not
be able to find the classes it needs.



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