Re: CLASSPATH problems.

1999-01-21 Thread PAX!

Karthik Vishwanath wrote:
> 
> Hi all,
> i use magician with Java as on openGl implementation. I
> have the jdk1.1.7 running on Linux RH5.1. Magician requires that i have a
> CLASSPATH set. The current value of my CLASSPATH is:
> /data/karthik/magician/classes. If I compile a program which uses some
> magician classes, the program compiles fine. But, on trying to execute it
> with java solarSystem; i get the following error: "Can't find class
> solarSystem". The file solarSystem.class *does* exist in my 'pwd'. can
> anyone shed some light on what i must do?

First of all, what is solarSystem ? Is part of a package, or is a
standalone class ?

* If is a part of a package, for example, foo, you must execute it with
"java foo.solarSystem". If java complaints again, then the packate isn't
at the classpath, and you must append _the_parent_ of the directory wich
contains the package to the classpath. For example:
If you have something like  /bar/foo/solarSistem.class, and the
package is foo, then you have to do something like (bash speaking, this
case) "export CLASSPATH=$CLASSPATH:/bar", and then try "java
foo.solarSystem".

* If it is a standalone class, not in a package, then I think that
somethig like (again bash) "export CLASSPATH=$CLASSPATH:$PWD" should do
the trick. Then, you only have to do "java solarSystem", et voiela.


> Microsoft isn't the answer.
> Microsoft is the question and the answer is NO.
I absolutely agree


-- 
Pocas cosas deseariamos ardientemente
si conocieramos del todo lo que deseamos
François de la Rochefocauld



Printing in Java

1999-01-22 Thread PAX!

hi all !!

I'm developing a small application in java, and I need to do some
printing. I've been looking at jdk 1.1.6 documentation, but I haven't
been able to find anything useful. Does anyone knows where is some good
info about this ?


-- 
Pocas cosas deseariamos ardientemente
si conocieramos del todo lo que deseamos
François de la Rochefocauld



netscape.security.AppletSecurityException

1999-01-26 Thread PAX!

Hi all,

I'm still developing my small application (I placed de question about
printing a few days ago), and now I have another strange problem.

I'm trying to connect via JDBC with a Postgres database. If I run with
appletviewer or in a frame as standalone application, everything seems
to be all right, the connection takes place succesfully. But if I try to
connect from Netscape, I get this exception (with exactly the same code
as before). The console logs this:


netscape.security.AppletSecurityException: security.Couldn't connect to
'localhost' with origin from 'local-classpath-classes'.
  at
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java:773)
  at java.lang.SecurityManager.checkConnect(SecurityManager.java:718)
  at java.net.InetAddress.getAllByName0(InetAddress.java:457)
  at java.net.InetAddress.getByName(InetAddress.java:367)
  at java.net.Socket.(Socket.java:123)
  at postgresql.PG_Stream.(PG_Stream.java:35)
  at postgresql.Connection.(Connection.java:188)
  at postgresql.Driver.connect(Driver.java:87)
  at java.sql.DriverManager.getConnection(DriverManager.java:90)
  at java.sql.DriverManager.getConnection(DriverManager.java:132)
  at TestConexion.conexionJDBC(TestConexion.java:82)
  at TestConexion.init(TestConexion.java:40)
* at
netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(DerivedAppletFrame.java:553)
  at
java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:81)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:135)
  at
netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:911)

I've tried a lot of things. Since Netscape seems to use jdk 1.1.5, I use
only awt components to be sure. Should I digitally sign the Applet? Is
there any way to disable security checks in Netscape ? Or it's another
thing ?

Aaaarg !!!



Re: Help!Help!

1999-04-05 Thread PAX!

Hello everybody

I think your problem is not about paths. I use 1.1.6 release, and my
libjava is in /usr/lib/jdk-1.1.6, so my JAVA_HOME and my JDKHOME
variables point to that directory. Have you set these variables properly
?

> Arnaldo Riquelme wrote:
> 
> I just downloaded the jdk v.117 . I trying to learn and get around
> this new enviroment.(linux)
> 
> A couple of problems
> I set my path like so
> 
> export PATH=/home/java/jdk117/bin:$PATH
> 
> I wrote a simple little test Hello Linux!! program to see if it was
> working
> but I get the following error
> 
>error in loading shared libraries
>libjava.so: cannot open shared object file:
> No such file or directory
> 
> I also tried specifying the path this way
> 
> export
> PATH=/home/java/jdk117/bin/i686/native_threads:$PATH
> AND
> export
> PATH=/home/java/jdk117/lib/i686/native_threads:$PATH
> 
> 
> What am I doing wrong?
> 
> Any help will be very appreciated. Can't wait to ge this going , so I
> can start moving most of my work on NT to Linux.

-- 
Los que ven alguna diferencia entre cuerpo y alma
es que carecen de ambos
Oscar Wilde



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



Just thinking about VM

1999-04-05 Thread PAX!

Hello everybody.

These are just a few personal thoughts about java and virtual machines
and I thought it could be interesting share them with other linux users.

I was just updating my beloved XEmacs, hacking and fixing a few minor
problems, configuring my system to the detail -- I really love it.

Then I started to think about the lisp machine [ Xl]Emacs holds inside.
It's a real virtual machine: bytecompiled, portable and fairly eficient.
What's the difference with jvm, for example?. jvm has another language,
and a bunch of good libraries to support it. What if lisp (emacs,
common, scheme or whatever) had libraries like the java ones ? Lisp is
flexible, portable, and applications like gimp use it to create plug-ins
wich I think is enough to demonstrate it's power. Also can be Object
oriented (flavors, and the like). With communication libraries, GUI, and
the free software community could have a free equivalent of Java (a Lisp
machine in Mozilla x.xx ?)

I like Java (the way I liked Warp, despite BigBlue marketroids) but
sometimes I get a bit angry when we suffer Sun rarities.

What do you think about it ?

Pax !



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



Just thinking about VM

1999-04-05 Thread PAX!

Hello everybody.

These are just a few personal thoughts about java and virtual machines
and I thought it could be interesting share them with other linux users.

I was just updating my beloved XEmacs, hacking and fixing a few minor
problems, configuring my system to the detail -- I really love it.

Then I started to think about the lisp machine [ Xl]Emacs holds inside.
It's a real virtual machine: bytecompiled, portable and fairly eficient.
What's the difference with jvm, for example?. jvm has another language,
and a bunch of good libraries to support it. What if lisp (emacs,
common, scheme or whatever) had libraries like the java ones ? Lisp is
flexible, portable, and applications like gimp use it to create plug-ins
wich I think is enough to demonstrate it's power. Also can be Object
oriented (flavors, and the like). With communication libraries, GUI, and
the free software community could have a free equivalent of Java (a Lisp
machine in Mozilla x.xx ?)

I like Java (the way I liked Warp, despite BigBlue marketroids) but
sometimes I get a bit angry when we suffer Sun rarities.

What do you think about it ?

Pax !


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



Re: Help!Help!

1999-04-05 Thread PAX!

Hello everybody

I think your problem is not about paths. I use 1.1.6 release, and my
libjava is in /usr/lib/jdk-1.1.6, so my JAVA_HOME and my JDKHOME
variables point to that directory. Have you set these variables properly
?

> Arnaldo Riquelme wrote:
> 
> I just downloaded the jdk v.117 . I trying to learn and get around
> this new enviroment.(linux)
> 
> A couple of problems
> I set my path like so
> 
> export PATH=/home/java/jdk117/bin:$PATH
> 
> I wrote a simple little test Hello Linux!! program to see if it was
> working
> but I get the following error
> 
>error in loading shared libraries
>libjava.so: cannot open shared object file:
> No such file or directory
> 
> I also tried specifying the path this way
> 
> export
> PATH=/home/java/jdk117/bin/i686/native_threads:$PATH
> AND
> export
> PATH=/home/java/jdk117/lib/i686/native_threads:$PATH
> 
> 
> What am I doing wrong?
> 
> Any help will be very appreciated. Can't wait to ge this going , so I
> can start moving most of my work on NT to Linux.

-- 
Los que ven alguna diferencia entre cuerpo y alma
es que carecen de ambos
Oscar Wilde


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



java plug-in

1999-04-26 Thread PAX!

Hello everybody

I'm trying to develope an applet based application. I was developing
with 1.1.6, but I moved to 1.2. Now I find Netscape can't execute my
applet (of course I recompiled it). Setting the CLASSPATH to point the
rt.jar isn't enough.

Then, I started reading about java-plugin, and such. I've seen in $un's
pages that there isn't a linux version (it was such a surprise :()!).
Does anybody knows some hack to make 1.2 applets work with netscape (I'm
using version 4.5) ?

Or shall I use.. (ugh, too painfull to mention ;))

Thank, and keep this great work going !!!


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



debugging problem

1999-05-02 Thread PAX!

Hi, everybody

I'm trying to debug an app using jdb, but I've found a problem (maybe a
bug?). When I begin debugging, eveything seems fine, but when the frame
appears on the screen (the constructor call has finished and I call
setVisible(true) on the frame) the thread finishes, and the debugger
ends the session.

I used jdb from jdk1.1.6 and I never found this strange problem before.
Does anybody knows what I'm doin wrong ? 

Thanks

-- 
Los que ven alguna diferencia entre cuerpo y alma
es que carecen de ambos
Oscar Wilde


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



Installer

1999-05-15 Thread PAX!

Hello everybody

I'm looking for a free good packager/installer for java. I remember that
someone announced a free one in this list, but I've lost my notes, and
can't find the message. Could anyone suggest me one ? Perhaps the author
is somewhere near ?

Thanks


-- 
La felicidad estriba en nuestro placer y no en las 
cosas; somos felices por poseer lo que amamos
y no por poseer lo que los demas juzgan deseable
 François de la Rochefocauld


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