Re: jdk1.2 api?

1999-03-12 Thread Thierry Kormann


Hi !

see : http://java.sun.com/products/jdk/1.2/download-docs.html

Thierry.

-- 
Kormann Thierry
email: [EMAIL PROTECTED]  http://www.inria.fr/koala/thierry/
Koala/Dyade/Bull @ INRIA - Sophia Antipolis






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



HOWTO: jdk1.2pre1 on Slackware or SOLVED: missing libstdc++-libc6.0-1.so.2 and missing fonts on Slackware

1999-03-12 Thread Gerrit Cap

If you want to run jdk1.2pre1 on Slackware it is not enough to run this
command:

g++ -shared -o /usr/lib/libstdc++-libc6.0-1.so.2 -lm

If you do that you stiil get an unresolved __getfpucw in libm.
Instead run:

g++ -shared -o /usr/lib/libstdc++-libc6.0-1.so.2 -lm -lc

That should do the trick.

For the font problems: look on the website of www.blackdown.org:
Copy the 2 ghostscript fontfiles in the jre/lib/fonts directory and add
these 2 font files in the fonts.dir

Then JDK1.2 runs perfectly on Slackware 3.6!

Regards

Gerrit.
 Marble Consulting --
Gerrit Cap  http://www.ping.be/marble
OO Solutions Engineer   mailto:[EMAIL PROTECTED]
Marble Consulting  
Blauwe Gaanweg, 53  tel : +32 75 72.94.36
B-9150 Kruibeke-Bazel   fax : +32 3 744.19.17  
Belgium


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



missing library - help

1999-03-12 Thread DJ Frost

Hi all,

I have just installed jdk117-v1a, and i have a missing library so it won't
run.  It is called libXpm.so.4

Where could i get this from, i need it quite soon as i need to get java
running over this weekend as i have a uni assignment to do ( a run length
encoder ).

When i have it it should go in the /lib right?

Thanks for all the help

Dave Frost


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



Re: Font Problem with jdk1.2

1999-03-12 Thread Gerrit Cap

At 00:41 12/03/99 +0100, Willi Richert wrote:
>Thanks, that did it for me. But now I get the error (for example running
>java
>Notepad in demo/jfc):
>

Look on the www.blackdown.org messages for a solution
 Marble Consulting --
Gerrit Cap  http://www.ping.be/marble
OO Solutions Engineer   mailto:[EMAIL PROTECTED]
Marble Consulting  
Blauwe Gaanweg, 53  tel : +32 75 72.94.36
B-9150 Kruibeke-Bazel   fax : +32 3 744.19.17  
Belgium


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



Re: jdk1.2-pre-v1 on redhat 5.2

1999-03-12 Thread Gerrit Cap

At 16:48 11/03/99 -0800, Gabriel Montenegro wrote:
>in case you're interested, we tested (briefly) the jdk1.2-pre-v1
>release on the following platform:
>
>   redhat 5.2
>   linux kernel 2.2.3
>
>In order to get it to work we had to add the following symbolic link:
>
>   cd /usr/lib
>   ln -s libstdc++.so libstdc++-lib6.0-1.so.2

Look at the bug reports on blackdown.org. This is not a good solution!

>
>We also got a bunch of messages about fonts not found. Otherwise,
>it seems to work.

Also solved on the blackdown.org message board.

>
>We tested the swing demos under the demo subdirectory.
>
>-gabriel
>
>
>--
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
 Marble Consulting --
Gerrit Cap  http://www.ping.be/marble
OO Solutions Engineer   mailto:[EMAIL PROTECTED]
Marble Consulting  
Blauwe Gaanweg, 53  tel : +32 75 72.94.36
B-9150 Kruibeke-Bazel   fax : +32 3 744.19.17  
Belgium


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



jdk1.1.7 source

1999-03-12 Thread Dariusz Dziuda

Hi!
  Are sources for building jdk1.1.7 for linux available?

DD


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



Odp: jdk1.1.7 source

1999-03-12 Thread Dariusz Dziuda


> Od: Uncle George <[EMAIL PROTECTED]>
> Do: Dariusz Dziuda <[EMAIL PROTECTED]>
> Temat: Re: jdk1.1.7 source
> Data: 12 marca 1999 12:35
> 
> for this u should ask sun under their non-commercial license faq/document
> gat
> 
> Dariusz Dziuda wrote:
> 
> > Hi!
> >   Are sources for building jdk1.1.7 for linux available?
> >
> > DD
> >

OK! And what about sources for building jdk1.2 (java 2). Java 2 follows new Sun's 
licensing model. Does Blackdown make Jdk1.2 building source available?

DD


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



Re: Odp: jdk1.1.7 source

1999-03-12 Thread Brett W. McCoy

On Fri, 12 Mar 1999, Dariusz Dziuda wrote:

> OK! And what about sources for building jdk1.2 (java 2). Java 2
> follows new Sun's licensing model. Does Blackdown make Jdk1.2 building
> source available?

I don't think the license allows it.  You'd still have to get the sources
from Sun and obtain your own license.  It's still not freely
redistributable.

Brett W. McCoy   
http://www.lan2wan.com/~bmccoy/
---
Humor in the Court:
Q.  Mrs. Smith, do you believe that you are emotionally unstable?
A.  I should be.
Q.  How many times have you comitted suicide?
A.  Four times.

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GAT dpu s:-- a C UL$ P+ L+++ E W++ N+ o K- w--- O@ M@ !V PS+++
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ G++ e>++ h+(---) r++ y
--END GEEK CODE BLOCK--


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



Understanding 1.2 classpath

1999-03-12 Thread Steve Cohen

I'm having a little difficulty understanding Java 1.2's classpath
structure.  Sun has a dcoument "Command Line Changes from 1.1 to 1.2".
After reading it, I'm even more confused.  For one thing, the Sun
document mentions a file called rt.jar.  I don't find an rt.jar.  In the
blackdown distribution I find in lib only tools.jar and dt.jar.

In any case, I am used to supplying a classpath, via the classpath
switch on the command line of :
/usr//local/java:/usr/local/java/jdk117_v1a/lib/classes.zip:/usr/local/java/swing/swing-1.0.3/swingall.jar.

For execution, it's the same except '.' is prepended.

With jdk 1.2 installed in /usr/local/java/jdk1.2 what would be the
equivalent classpath to use in 1.2 for compilation?  For execution?

Thanks.


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



Re: Understanding 1.2 classpath

1999-03-12 Thread Juergen Kreileder

> Steve Cohen writes:

Steve> I'm having a little difficulty understanding Java 1.2's
Steve> classpath structure.  Sun has a dcoument "Command Line
Steve> Changes from 1.1 to 1.2".  After reading it, I'm even more
Steve> confused.  For one thing, the Sun document mentions a file
Steve> called rt.jar.  I don't find an rt.jar.  In the blackdown
Steve> distribution I find in lib only tools.jar and dt.jar.

jdk1.2/jre/lib/rt.jar but there's no need to have it in your CLASSPATH.

Take a look at:

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

Steve> In any case, I am used to supplying a classpath, via the
Steve> classpath switch on the command line of :
Steve> 
/usr//local/java:/usr/local/java/jdk117_v1a/lib/classes.zip:/usr/local/java/swing/swing-1.0.3/swingall.jar.

Steve> For execution, it's the same except '.' is prepended.

Steve> With jdk 1.2 installed in /usr/local/java/jdk1.2 what would
Steve> be the equivalent classpath to use in 1.2 for compilation?
Steve> For execution?

You need no classpath. Don't even set it to "".


Juergen


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



jar problem...

1999-03-12 Thread Bruno Boettcher

hello,

since i pased to jdk 1.2 i have a problem with the jar command everytime i want
ot use it to create an  archive i get the error :
Can't determine application home

what's the meaning of this?? And what do i ahve to do to make my archives?

ciao
bboett
==
acount at earthling net 
http://erm6.u-strasbg.fr/~bboett
===
Unsolicited commercial email is NOT welcome at this email address
To contact me replace acount by bboett in above addresses


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



Library problem

1999-03-12 Thread sgee



I would like to say first off, Thanks to the blackdown team for getting JDK1.2
ported.  I finally got it installed last night and had no problems running it
until I tried to implement some of the GUI libraries.

Here is my code:
import javax.swing.*;

public class jfctest extends JFrame{
public static void main(String args[]){
new jfctest();
}//end main

public jfctest(){
init();
}//end contstuctor

public void init(){
this.setSize(300,300);
this.setVisible(true);
}//end init
}//end class

and here is my error:
# java jfctest
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: libstdc++-libc6.0-1.so.2:
cannot open shared object

thanks for the help

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]



javac 1.2 a real pig

1999-03-12 Thread Steve Cohen

both time-wise and memory usage wise.  I've had to boost the default
heap size to 20 MB.  (Possibly this is because I'm compiling with
-verbose because I had to see what the heck was taking it so long.)

Is a 1.2-compatible jikes available yet?  The jikes I used for 1.1.7
seems to zip through the files with its usual speed, but when I go to
run the thing I get "NoSuchClassExceptions" in my main class.


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



JacOrb & jdk1.2: NoClassDefFoundError: sun/tools/java/ClassPath

1999-03-12 Thread Bruno Boettcher

Hello,

tryed to compile one of my projects using JacOrb and run inton a problem...
thought maybe i could solve it recompiling jacOrb... but htere too the same
problem arises

Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/java/ClassPath
at jacorb.generator.Main.generate(Compiled Code)
at jacorb.generator.Main.main(Compiled Code)

when compiling y own idl files i get the very same

so what is this mysterious sun/tools/java/ClassPath-class that i couldn't fiond
in the source

what's the best way to solve this?

ciao
bboett
==
acount at earthling net 
http://erm6.u-strasbg.fr/~bboett
===
Unsolicited commercial email is NOT welcome at this email address
To contact me replace acount by bboett in above addresses


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



Re: javac 1.2 a real pig

1999-03-12 Thread Hani Suleiman

I use jikes with jdk1.2, the only snag is that you have to explicitly 
include rt.jar in your classpath. Also it will compile code that would not 
be passed by 1.2 javac. Sorry no specific code to demostrate this (and it 
would be long on the jikes mailing list anyways!), but it had to do with 
method calls in inner classes.

At 10:08 AM 3/12/99 -0600, Steve Cohen wrote:
>both time-wise and memory usage wise.  I've had to boost the default
>heap size to 20 MB.  (Possibly this is because I'm compiling with
>-verbose because I had to see what the heck was taking it so long.)
>
>Is a 1.2-compatible jikes available yet?  The jikes I used for 1.1.7
>seems to zip through the files with its usual speed, but when I go to
>run the thing I get "NoSuchClassExceptions" in my main class.


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



Re: javac 1.2 a real pig

1999-03-12 Thread Geoffrey T. Cheshire

On Fri, 12 Mar 1999, Steve Cohen wrote:

> Is a 1.2-compatible jikes available yet?  The jikes I used for 1.1.7

Yes.

-- 
Geoffrey T. Cheshire <[EMAIL PROTECTED]>


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



Anybody any Idea?

1999-03-12 Thread Ferenczi Gyorgy Laszlo



Hy,


I gotta problem: 

Wrote a nice cute java Applet that connects to a POSTGRES database, works
fine with appletviewer. 

But!!

If I wanna try to run in thru the web, it fails to connect

I tried everything: gave full access to everyone ( all  0.0.0.0  0.0.0.0
etc)   in the postgres server, set the URL correctly, but still does not
work !!

This shit's gonna be my thesis of diploma!

Please, if anybody knows anything about this, help !



Thanks,


George 






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



Re: JacOrb & jdk1.2: NoClassDefFoundError: sun/tools/java/ClassPath

1999-03-12 Thread Juergen Kreileder

> Bruno Boettcher writes:

Bruno> Hello, tryed to compile one of my projects using JacOrb and
Bruno> run inton a problem...  thought maybe i could solve it
Bruno> recompiling jacOrb... but htere too the same problem
Bruno> arises

Bruno> Exception in thread "main" java.lang.NoClassDefFoundError:
Bruno> sun/tools/java/ClassPath
Bruno> at jacorb.generator.Main.generate(Compiled Code)
Bruno> at jacorb.generator.Main.main(Compiled Code)

Bruno> when compiling y own idl files i get the very same

Bruno> so what is this mysterious sun/tools/java/ClassPath-class
Bruno> that i couldn't fiond in the source

JacOrb is broken because it uses non standard classes, i.e. classes
that are only in the JDK and nowhere else. There is no guarantee
that these classes won't change with a warning.

In the JDK 1.1 these classes where in classes.zip which means they
were available without setting up anything.

In 1.2 the sun.tools.java package has been moved to tools.jar because
only the JDK tools should use the classes and so there was no need to
have these classes in rt.jar.

If you're lucky JacOrb works if you put tools.jar in your classpath...



Juergen


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



Re: Anybody any Idea?

1999-03-12 Thread Nathan Meyers

Ferenczi Gyorgy Laszlo wrote:
> Wrote a nice cute java Applet that connects to a POSTGRES database, works
> fine with appletviewer. 
> 
> But!!
> 
> If I wanna try to run in thru the web, it fails to connect

Is the DB server running on the same host that you're loading the applet from?
Applets run in a restricted environment; you can't run an applet from one host
that connects to a service running on a different host. Appletviewer appears to
be more permissive than browsers about this.

Unless there's something Linux-specific here -- that is, you've fingered a bug
in the Linux JDK -- you might best pursue this question in a general
Java-related mailing list instead of this one.

Nathan

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



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



RE: Anybody any Idea?

1999-03-12 Thread John S Ra

Appletviewer is actually a pure Java Application. Hence no restrict. There
is nothing wrong with the Linux JDK. Appletviewer works the same way for NT
as well as UNIX.

John

> -Original Message-
> From: Nathan Meyers [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 12, 1999 4:42 AM
> To: Ferenczi Gyorgy Laszlo; [EMAIL PROTECTED]
> Subject: Re: Anybody any Idea?
>
>
> Ferenczi Gyorgy Laszlo wrote:
> > Wrote a nice cute java Applet that connects to a POSTGRES
> database, works
> > fine with appletviewer.
> >
> > But!!
> >
> > If I wanna try to run in thru the web, it fails to connect
>
> Is the DB server running on the same host that you're loading the
> applet from?
> Applets run in a restricted environment; you can't run an applet
> from one host
> that connects to a service running on a different host.
> Appletviewer appears to
> be more permissive than browsers about this.
>
> Unless there's something Linux-specific here -- that is, you've
> fingered a bug
> in the Linux JDK -- you might best pursue this question in a general
> Java-related mailing list instead of this one.
>
> Nathan
>
> -
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
>


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



cannot open shared object

1999-03-12 Thread sgee



# java jfctest
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: libstdc++-libc6.0-1.so.2:
cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)

any ideas on correcting this error?

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]



Mounting problems...

1999-03-12 Thread Dinesh D

Dear sir,
 I have java (jdk1.1.6) installed on a machine(linux). I mounted that
machine on another machine(linux) so that the all the files in the first
machine could be accessed by the second. But, "javac" and "java
interpreter"" don't run on the second machine.
 It says :
 Segmantation error occurred :
Not able to access I/O (unowned)
Monitor (unowned)
etc.
I'm not able to figure out what is happening ...

could you kindly help?

Thanking you,

Sincerely,
Dinesh.


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



Re: Anybody any Idea?

1999-03-12 Thread zun



On Fri, 12 Mar 1999, Ferenczi Gyorgy Laszlo wrote:

> I gotta problem: 
> 
> Wrote a nice cute java Applet that connects to a POSTGRES database, works
> fine with appletviewer. 
> 
> But!!
> 
> If I wanna try to run in thru the web, it fails to connect

Postgres must be running on the same computer as the web server that
delivered the applet.

Read up on applet security restrictions.

And cut down on the caffeine please =)

. . . Sean.



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



The question is: How can I read the /proc directory of other computers in an SNMP network using Java?

1999-03-12 Thread Juan Carlos

Hi friends,

Really, is it the question.  

How to configure an SNMP Linux Network?  I see it in an 
Linux mailing list.

Thanks for your attention.  

JC





_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



Re: Anybody any idea?

1999-03-12 Thread Justin F Knotzke



[EMAIL PROTECTED] wrote:
> 
> On Fri, 12 Mar 1999, Ferenczi Gyorgy Laszlo wrote:
> 
> > I gotta problem:
> >
> > Wrote a nice cute java Applet that connects to a POSTGRES database, works
> > fine with appletviewer.
> >
> > But!!
> >
> > If I wanna try to run in thru the web, it fails to connect
> 
> Postgres must be running on the same computer as the web server that
> delivered the applet.
> 


Right.. You either need to install Postgres on the same machine as the
server or add a proxy on the webserver that listens on the same port as
the Postgres server and have it route all the requests to the Postgres
server..

Hopefully you won't have to write this proxy yourself.. ;)

Justin.

-- 
Justin F Knotzke
[EMAIL PROTECTED]
www.shampoo.ca
pgp public key: finger -l [EMAIL PROTECTED] | pgp


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



Re: javac 1.2 a real pig

1999-03-12 Thread Steve Cohen

Hani Suleiman wrote:

> I use jikes with jdk1.2, the only snag is that you have to explicitly
> include rt.jar in your classpath. Also it will compile code that would not
> be passed by 1.2 javac. Sorry no specific code to demostrate this (and it
> would be long on the jikes mailing list anyways!), but it had to do with
> method calls in inner classes.
>
> At 10:08 AM 3/12/99 -0600, Steve Cohen wrote:
> >both time-wise and memory usage wise.  I've had to boost the default
> >heap size to 20 MB.  (Possibly this is because I'm compiling with
> >-verbose because I had to see what the heck was taking it so long.)
> >
> >Is a 1.2-compatible jikes available yet?  The jikes I used for 1.1.7
> >seems to zip through the files with its usual speed, but when I go to
> >run the thing I get "NoSuchClassExceptions" in my main class.

Yes.  I am now seeing that the problems I was seeing that I was attributing
to
jikes are also seen when running the program compiled under javac:

More on the slowness of javac:
Compilation speed (from scratch building multiple class files for same
application:
javac: [done in 1009911 ms]
jikes: approx 15 seconds.

I had previously thought the errors I was getting on execution were the
result of using jikes.  But apparently not so. Once javac finished its
compilation, an identical exception occurred on executing the compiled
application:

[scohen@stevecoh jahtzee]$ java JahtzeeApp
Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp (wrong
name: jahtzee/JahtzeeApp)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Compiled Code)
 at java.security.SecureClassLoader.defineClass(Compiled Code)
 at java.net.URLClassLoader.defineClass(Compiled Code)
 at java.net.URLClassLoader.access$1(Compiled Code)
 at java.net.URLClassLoader$1.run(Compiled Code)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)
 at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)

What is the problem here?  This application worked when compiled under
JDK117.
Perhaps I need to supply classpath to java?
Doing it that way yields:

[scohen@stevecoh jahtzee]$ java -cp /usr/local/java/ JahtzeeApp
Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp

without all the further info.

Maybe I need to supply the current directory as well?
No, doing it that way gives me the same error messages as no classpath at
all.

[scohen@stevecoh jahtzee]$ java -cp ./:/usr/local/java/ JahtzeeApp
Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp (wrong
name: jahtzee/JahtzeeApp)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(Compiled Code)
 at java.security.SecureClassLoader.defineClass(Compiled Code)
 at java.net.URLClassLoader.defineClass(Compiled Code)
 at java.net.URLClassLoader.access$1(Compiled Code)
 at java.net.URLClassLoader$1.run(Compiled Code)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)
 at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
 at java.lang.ClassLoader.loadClass(Compiled Code)




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



Re: javac 1.2 a real pig

1999-03-12 Thread zun

On Fri, 12 Mar 1999, Steve Cohen wrote:

> I had previously thought the errors I was getting on execution were the
> result of using jikes.  But apparently not so. Once javac finished its
> compilation, an identical exception occurred on executing the compiled
> application:
> 
> [scohen@stevecoh jahtzee]$ java JahtzeeApp
> Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp (wrong
> name: jahtzee/JahtzeeApp)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(Compiled Code)
>  at java.security.SecureClassLoader.defineClass(Compiled Code)
>  at java.net.URLClassLoader.defineClass(Compiled Code)
>  at java.net.URLClassLoader.access$1(Compiled Code)
>  at java.net.URLClassLoader$1.run(Compiled Code)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(Compiled Code)
>  at java.lang.ClassLoader.loadClass(Compiled Code)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>  at java.lang.ClassLoader.loadClass(Compiled Code)
> 
> What is the problem here?  This application worked when compiled under
> JDK117.

Is JahtzeeApp in a package?  If so, try 'java jahtzee.JahtzeeApp'. If you
have a class in a package, then running it requires the fully qualified
name, ie. ., and the .class file must be in a
directory called , and _that_ directory needs to be in a
directory listed in the CLASSPATH.

. . . Sean.



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



Java class run locally, only

1999-03-12 Thread Ferenczi Gyorgy Laszlo

Dear collegues,

I created an applet, that is for connecting to the database Postgresql
which runs on the same server.

I can successfully execute it with an appletviewer only if I invoke it
from its own directory.

E.g:
the Class and the required HTML file are in the work directory:
/home/ferenczi/work/conect1.class
/home/ferenczi/work/conect1.html

The 

appletviewer connect1.html

commnad runs perfectly.

If I go to another directory (e.g. one up), and invoke:

appletviewer work/connect1.html

the java class fails to connect to the database.

Could you help me, please?

Thanks,


George 







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



Java class run locally, only PLUSS

1999-03-12 Thread Ferenczi Gyorgy Laszlo

Dear collegues,

In addition to my previous problem:

On the netscape JAVA consol the next message appeared:


java.sql.SQLException: No suitable driver
java.sql.SQLException: No suitable driver
  at java.sql.DriverManager.getConnection(DriverManager.java:110)
  at java.sql.DriverManager.getConnection(DriverManager.java:132)
* at connect1.GeoMakeConnection(connect1.java:35)
  at connect1.paint(connect1.java:71)
  at java.awt.Component.dispatchEventImpl(Component.java:1734)
  at java.awt.Container.dispatchEventImpl(Container.java:946)
  at java.awt.Component.dispatchEvent(Component.java:1715)
  at java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:83)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
  at 
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)
Exception caught.

etc

Could you help me, please?

Thanks,


George 


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



Re: Java class run locally, only

1999-03-12 Thread Maureen Lecuona

Hi:

Check the codebase in connect.html.  Make it "/home/ferenczi/work".  

This works for me.

Maureen Lecuona

Ferenczi Gyorgy Laszlo wrote:
> 
> Dear collegues,
> 
> I created an applet, that is for connecting to the database Postgresql
> which runs on the same server.
> 
> I can successfully execute it with an appletviewer only if I invoke it
> from its own directory.
> 
> E.g:
> the Class and the required HTML file are in the work directory:
> /home/ferenczi/work/conect1.class
> /home/ferenczi/work/conect1.html
> 
> The
> 
> appletviewer connect1.html
> 
> commnad runs perfectly.
> 
> If I go to another directory (e.g. one up), and invoke:
> 
> appletviewer work/connect1.html
> 
> the java class fails to connect to the database.
> 
> Could you help me, please?
> 
> Thanks,
> 
> George
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 

The three principal virtues of a programmer are Laziness, Impatience,
and Hubris.
   
 -- Larry Wall
   
I don't want to achieve immortality through my work, I want to achieve
it by not dying.
   
 - Woody Allen


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



Re: Java class run locally, only PLUSS

1999-03-12 Thread Maureen Lecuona

HI:

Does this happen both locally and in another path???

You must insure that you are loading the JDBC driver properly:
For Oracle I use:

DriverManager.registerDriver( new oracle.jdbc.driver.OracleDriver());

Something similar to this must be used for your JDBC driver.

Maureen Lecuona

Ferenczi Gyorgy Laszlo wrote:
> 
> Dear collegues,
> 
> In addition to my previous problem:
> 
> On the netscape JAVA consol the next message appeared:
> 
> java.sql.SQLException: No suitable driver
> java.sql.SQLException: No suitable driver
>   at java.sql.DriverManager.getConnection(DriverManager.java:110)
>   at java.sql.DriverManager.getConnection(DriverManager.java:132)
> * at connect1.GeoMakeConnection(connect1.java:35)
>   at connect1.paint(connect1.java:71)
>   at java.awt.Component.dispatchEventImpl(Component.java:1734)
>   at java.awt.Container.dispatchEventImpl(Container.java:946)
>   at java.awt.Component.dispatchEvent(Component.java:1715)
>   at 
>java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:83)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
>   at 
>netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)
> Exception caught.
> 
> etc
> 
> Could you help me, please?
> 
> Thanks,
> 
> George
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 

The three principal virtues of a programmer are Laziness, Impatience,
and Hubris.
   
 -- Larry Wall
   
I don't want to achieve immortality through my work, I want to achieve
it by not dying.
   
 - Woody Allen


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



Re: Java class run locally, only

1999-03-12 Thread Ferenczi Gyorgy Laszlo

Dear Maureen,

Thanks for your quick response. I would like to clarify my problem. In
fact, the connetc1.html file can call the class, but the connection to the
database works only when called from the same directory.

Thnaks in advance

George

On Fri, 12 Mar 1999, Maureen Lecuona wrote:

> Check the codebase in connect.html.  Make it "/home/ferenczi/work".  
> 
> This works for me.
> 
> Maureen Lecuona



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



Re: Java class run locally, only

1999-03-12 Thread zun



On Fri, 12 Mar 1999, Ferenczi Gyorgy Laszlo wrote:

> Thanks for your quick response. I would like to clarify my problem. In
> fact, the connetc1.html file can call the class, but the connection to the
> database works only when called from the same directory.

Where is your JDBC driver?  Sounds like you might want to consider
packaging both your applet and the JDBC driver classes into one file,
either .jar or .zip and then refer to that in the HTML.

As this has nothing to do with Java-Linux, please reply privately and I
will help as much as I can.  Let's take this discussion off the mailing
list.

. . . Sean.



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



Re: Java class run locally, only

1999-03-12 Thread Maureen Lecuona

Then you must be sure the html archive object points to the correct jar
files:

 archive = "/home/ferenczi/work/jdbcclasses.jar"


And make sure your jar files are placed where the archive object says
they are
in connect.html.  

PS. Sean is right, this is not a java-linux question, so please try
postgress
or some other mailing list if you have further questions.

Maureen Lecuona

Ferenczi Gyorgy Laszlo wrote:
> 
> Dear Maureen,
> 
> Thanks for your quick response. I would like to clarify my problem. In
> fact, the connetc1.html file can call the class, but the connection to the
> database works only when called from the same directory.
> 
> Thnaks in advance
> 
> George
> 
> On Fri, 12 Mar 1999, Maureen Lecuona wrote:
> 
> > Check the codebase in connect.html.  Make it "/home/ferenczi/work".
> >
> > This works for me.
> >
> > Maureen Lecuona

-- 

The three principal virtues of a programmer are Laziness, Impatience,
and Hubris.
   
 -- Larry Wall
   
I don't want to achieve immortality through my work, I want to achieve
it by not dying.
   
 - Woody Allen


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



Re: The question is: How can I read the /proc directory of other computers in an SNMP network using Java?

1999-03-12 Thread Nathan Meyers

Juan Carlos wrote:
> 
> Really, is it the question.  
> 
> How to configure an SNMP Linux Network?  I see it in an 
> Linux mailing list.
> 
> Thanks for your attention.  

This is a Java-Linux mailing list devoted to the support of Java on Linux. The
reason there are so many mailing lists in the world is so each can focus on a
particular area of interest without too much clutter. We're not trying to be
exclusive or nasty -- just trying to keep the conversation focused. You are
asking a Linux networking question, which is best answered in a group that deals
with Linux networking.

Nathan

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



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



Re: javac 1.2 a real pig

1999-03-12 Thread Moses DeJong

I too have had some problem with jikes generated code with JDK 1.2.
I think the problem is being worked on but perhaps more messages like
"I can not run jikes compiled code under 1.2" will help get the bugs
fixed. Joining the jikes mailing list is also a good way to keep up
to date with jikes changes. Check out www.research.ibm.com/jikes
for more info.

Mo DeJong
dejong at cs.umn.edu

On Fri, 12 Mar 1999, Steve Cohen wrote:

> both time-wise and memory usage wise.  I've had to boost the default
> heap size to 20 MB.  (Possibly this is because I'm compiling with
> -verbose because I had to see what the heck was taking it so long.)
> 
> Is a 1.2-compatible jikes available yet?  The jikes I used for 1.1.7
> seems to zip through the files with its usual speed, but when I go to
> run the thing I get "NoSuchClassExceptions" in my main class.
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


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



Re: javac 1.2 a real pig

1999-03-12 Thread Moses DeJong

On Fri, 12 Mar 1999, Steve Cohen wrote:

> Hani Suleiman wrote:
> 
> > I use jikes with jdk1.2, the only snag is that you have to explicitly
> > include rt.jar in your classpath. Also it will compile code that would not
> > be passed by 1.2 javac. Sorry no specific code to demostrate this (and it
> > would be long on the jikes mailing list anyways!), but it had to do with
> > method calls in inner classes.
> >
> > At 10:08 AM 3/12/99 -0600, Steve Cohen wrote:
> > >both time-wise and memory usage wise.  I've had to boost the default
> > >heap size to 20 MB.  (Possibly this is because I'm compiling with
> > >-verbose because I had to see what the heck was taking it so long.)
> > >
> > >Is a 1.2-compatible jikes available yet?  The jikes I used for 1.1.7
> > >seems to zip through the files with its usual speed, but when I go to
> > >run the thing I get "NoSuchClassExceptions" in my main class.
> 
> Yes.  I am now seeing that the problems I was seeing that I was attributing
> to
> jikes are also seen when running the program compiled under javac:
> 
> More on the slowness of javac:
> Compilation speed (from scratch building multiple class files for same
> application:
> javac: [done in 1009911 ms]
> jikes: approx 15 seconds.
> 
> I had previously thought the errors I was getting on execution were the
> result of using jikes.  But apparently not so. Once javac finished its
> compilation, an identical exception occurred on executing the compiled
> application:
> 
> [scohen@stevecoh jahtzee]$ java JahtzeeApp
> Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp (wrong
> name: jahtzee/JahtzeeApp)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(Compiled Code)
>  at java.security.SecureClassLoader.defineClass(Compiled Code)
>  at java.net.URLClassLoader.defineClass(Compiled Code)
>  at java.net.URLClassLoader.access$1(Compiled Code)
>  at java.net.URLClassLoader$1.run(Compiled Code)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(Compiled Code)
>  at java.lang.ClassLoader.loadClass(Compiled Code)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>  at java.lang.ClassLoader.loadClass(Compiled Code)

The problem is that the jikes compiled code does not pass the bytecode
verify stage. If you run the same code under JDK 1.1 and it works then
you know for sure that that is the problem. Please post notes about
this problem on the jikes mailing list. A small example that shows
the problem would be good too.

later
mo dejong
dejong at cs.umn.edu
 
> What is the problem here?  This application worked when compiled under
> JDK117.
> Perhaps I need to supply classpath to java?
> Doing it that way yields:
> 
> [scohen@stevecoh jahtzee]$ java -cp /usr/local/java/ JahtzeeApp
> Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp
> 
> without all the further info.
> 
> Maybe I need to supply the current directory as well?
> No, doing it that way gives me the same error messages as no classpath at
> all.
> 
> [scohen@stevecoh jahtzee]$ java -cp ./:/usr/local/java/ JahtzeeApp
> Exception in thread "main" java.lang.NoClassDefFoundError: JahtzeeApp (wrong
> name: jahtzee/JahtzeeApp)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(Compiled Code)
>  at java.security.SecureClassLoader.defineClass(Compiled Code)
>  at java.net.URLClassLoader.defineClass(Compiled Code)
>  at java.net.URLClassLoader.access$1(Compiled Code)
>  at java.net.URLClassLoader$1.run(Compiled Code)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(Compiled Code)
>  at java.lang.ClassLoader.loadClass(Compiled Code)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>  at java.lang.ClassLoader.loadClass(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: javac 1.2 a real pig

1999-03-12 Thread Nelson Minar

>The problem is that the jikes compiled code does not pass the
>bytecode verify stage. If you run the same code under JDK 1.1 and it
>works then you know for sure that that is the problem.

Well, not exactly. You might also want to try runnign it with JDK 1.2
without verification. "oldjava" does this, and is there a -noverify flag?

>Please post notes about this problem on the jikes mailing list. A
>small example that shows the problem would be good too.

yes, sample code is majorly useful to find bugs. And now that we have
the source for Jikes, we can fix the bugs ourselves!

  [EMAIL PROTECTED]
.   .  . ..   .  . . http://www.media.mit.edu/~nelson/


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



javacc

1999-03-12 Thread Stefan Lauterbach

Hi,

of course the wrong list. But maybe one of the java wizards here on the
list knows the answer: How can I get the actual line at the end of a rule
in the Java Compiler Compiler (javacc) ?

Thanks,
--
Stefan Lauterbach[EMAIL PROTECTED]

Priconet e.V.   Braunschweig, Germany


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



Begining on Linux (using Java).

1999-03-12 Thread Flávio Eduardo de Córdova




Hi Guys
 
    I'm using Java to create some 
simple apps and now I'm starting to use Linux as well.
 
I installed the new Java 1.2 (pre v1) release 
but I'm having some problems. That's all right when I try to run apps with 
character outputs (just System.out methods) only, but an exception occurs when I 
try to use any GUI component (like Frame, for instance).
 

Exception in thread 
"main" java.lang.UnsatisfiedLinkError:
/jdk1.2/jre/lib/i386/libfontmanager.so: libstdc++-libc6.0-1.so.2: cannot 
open shared object file: No 
such file or directory
at 
java.lang.ClassLoader$NativeLibrary.load(Native Method)
at 
java.lang.ClassLoader.loadLibrary0(Compiled Code)
at 
java.lang.ClassLoader.loadLibrary(Compiled Code)
at 
java.lang.Runtime.loadLibrary0(Compiled Code)
at 
java.lang.System.loadLibrary(Compiled Code)
at 
sun.security.action.LoadLibraryAction.run(Compiled Code)
at 
java.security.AccessController.doPrivileged(Native Method)
at 
sun.awt.font.NativeFontWrapper.(NativeFontWrapper.java:41)
at 
sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:61)
at 
java.lang.Class.forName0(Native Method)
at 
java.lang.Class.forName(Compiled Code)
at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Compiled Code)
at 
sun.awt.motif.MToolkit.(MToolkit.java:59)
at 
java.lang.Class.forName0(Native Method)
at 
java.lang.Class.forName(Compiled Code)
at 
java.awt.Toolkit$2.run(Compiled Code)
at 
java.security.AccessController.doPrivileged(Native Method)
at 
java.awt.Toolkit.getDefaultToolkit(Compiled Code)
at 
java.awt.Window.getToolkit(Compiled Code)
at 
java.awt.Frame.addNotify(Compiled Code)
at 
java.awt.Window.show(Compiled Code)
at Teste.main(Compiled 
Code)
 
 
The "ldconfig -D" command is showing some warnings I 
think are my problem, but I don't have any idea about what to do...
 

ldconfig -D | grep warning 
> /mnt/disco_d/flavio/errojav2.txt
ldconfig: warning: 
/usr/i486-linux-libc5/lib/libform.so.1.9.9e has inconsistent soname 
libform.so.3.0)
ldconfig: warning: 
/usr/i486-linux-libc5/lib/libmenu.so.1.9.9e has inconsistent soname 
libmenu.so.3.0)
ldconfig: warning: 
/usr/i486-linux-libc5/lib/libncurses.so.1.9.9e has inconsistent soname 
libncurses.so.3.0)
ldconfig: warning: 
/usr/i486-linux-libc5/lib/libpanel.so.1.9.9e has inconsistent soname 
libpanel.so.3.0)
ldconfig: warning: 
/lib/ld-2.0.7.so has inconsistent soname (ld-linux.so.2)
ldconfig: warning: 
/lib/libBrokenLocale-2.0.7.so has inconsistent soname 
(libBrokenLocale.so.1)
ldconfig: warning: 
/lib/libc-2.0.7.so has inconsistent soname (libc.so.6)
ldconfig: warning: 
/lib/libcrypt-2.0.7.so has inconsistent soname (libcrypt.so.1)
ldconfig: warning: 
/lib/libdb-2.0.7.so has inconsistent soname (libdb.so.2)
ldconfig: warning: 
/lib/libdl-2.0.7.so has inconsistent soname (libdl.so.2)
ldconfig: warning: 
/lib/libm-2.0.7.so has inconsistent soname (libm.so.6)
ldconfig: warning: 
/lib/libnsl-2.0.7.so has inconsistent soname (libnsl.so.1)
ldconfig: warning: 
/lib/libnss_compat-2.0.7.so has inconsistent soname 
(libnss_compat.so.1)
ldconfig: warning: 
/lib/libnss_db-2.0.7.so has inconsistent soname (libnss_db.so.1)
ldconfig: warning: 
/lib/libnss_dns-2.0.7.so has inconsistent soname (libnss_dns.so.1)
ldconfig: warning: 
/lib/libnss_files-2.0.7.so has inconsistent soname 
(libnss_files.so.1)
ldconfig: warning: 
/lib/libnss_nis-2.0.7.so has inconsistent soname (libnss_nis.so.1)
ldconfig: warning: 
/lib/libpthread-0.7.so has inconsistent soname (libpthread.so.0)
ldconfig: warning: 
/lib/libresolv-2.0.7.so has inconsistent soname (libresolv.so.2)
ldconfig: warning: /lib/libutil-2.0.7.so has inconsistent soname 
(libutil.so.1)
 
 
I'm using RedHat 5.2. Can 
you help me, please ?
 
Thank you!