OT: Howto get the 'pwd'
Hi All, If i am running a java application, is it possible for me to find out the complete dir path from where the application was launched? -Karthik. +-+ | Karthik Vishwanath, Junior Research Fellow, | | National Centre for Biological Sciences, TIFR Bangalore, India. | | Ph[Off]: (080)8561657/58/59/71/72; 8462895, Ext. 3231 | | mail to: [EMAIL PROTECTED] | +-+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
I have a big problem with Sun
It seems that Sun will not support bug reports that occur in the platform independent parts of Java since I'm using Linux. If you report a bug and say your on Linux they say its not a supported platform. Even though I've been reporting bugs in the Swing. I can't believe Sun forces me to use NT ! Anyway just though I'd warn everybody on the list that if you report a bug don't let them know your on linux they will drop it. Pissed off. Mike -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Help!Help!
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
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
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!
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]
Using Syslog from Java
Has anyone implemented the equivalent of the syslog commands -- openlog, syslog and closelog-- in Java. If so, any pointers in terms of the protocol. Thanks, Cynthia Jeness -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Using Syslog from Java
Cynthia, Well, not exactly. What I have done is to make a daemon out of our Java application. I don't have much experience with threading under Linux, but someone mentioned on this list that signal handling can be tricky since the thread that receives the signal may not be the thread listening for it (I'm quoting from memory here, but I don't think I'm too far off base). A daemon, of course, should respond to signals, so I created a parent process in C to handle it with a child launching a Java VM via the Invocation API. To make a long story short (sorry for the winding answer), I created two pipes before forking and exec'ing the child. The first pipe is tied (with dup2) to both STDOUT and STDERR of the child process and the second pipe is tied to STDIN. All output from the Java application is routed to syslog. When the parent receives a signal to shutdown, it closes the second pipe. The main thread of the Java application is blocked reading System.in. When it detects the close, it simply cleans up and shuts down the application. For a simpler application, I'm sure you could implement a logging method to syslog via JNI without going through the trouble explained above. :-) Good luck, Russ [EMAIL PROTECTED] on 04/05/99 11:40:24 AM To: [EMAIL PROTECTED] cc:(bcc: Russell Pridemore/Lex/Lexmark) Subject: Using Syslog from Java Has anyone implemented the equivalent of the syslog commands -- openlog, syslog and closelog-- in Java. If so, any pointers in terms of the protocol. Thanks, Cynthia Jeness -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Using Syslog from Java
Actually, what I would like to be able to do (if possible) is to contact "syslogd" directly from Java using UDP. I want to avoid native code since we need to have this work across all the platforms which support syslogd. So does anyone know if it is possible to communicate to syslogd through UDP and, if so, where might I find the protocol documented. Cynthia [EMAIL PROTECTED] wrote: > Cynthia, > > Well, not exactly. What I have done is to make a daemon out of > our Java application. I don't have much experience with threading > under Linux, but someone mentioned on this list that signal handling > can be tricky since the thread that receives the signal may not be > the thread listening for it (I'm quoting from memory here, but I don't > think I'm too far off base). A daemon, of course, should respond > to signals, so I created a parent process in C to handle it with a > child launching a Java VM via the Invocation API. > > To make a long story short (sorry for the winding answer), I created > two pipes before forking and exec'ing the child. The first pipe is > tied (with dup2) to both STDOUT and STDERR of the child process > and the second pipe is tied to STDIN. All output from the Java > application is routed to syslog. When the parent receives a signal > to shutdown, it closes the second pipe. The main thread of the > Java application is blocked reading System.in. When it detects > the close, it simply cleans up and shuts down the application. > > For a simpler application, I'm sure you could implement a logging > method to syslog via JNI without going through the trouble explained > above. :-) > > Good luck, > Russ > > [EMAIL PROTECTED] on 04/05/99 11:40:24 AM > > To: [EMAIL PROTECTED] > cc:(bcc: Russell Pridemore/Lex/Lexmark) > Subject: Using Syslog from Java > > Has anyone implemented the equivalent of the syslog commands -- > openlog, syslog and closelog-- in Java. If so, any pointers in terms of > the protocol. > > Thanks, > Cynthia Jeness > > -- > 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: Just thinking about VM
On Sun, 4 Apr 1999, PAX! wrote: > It's a real virtual machine: bytecompiled, portable and fairly eficient. > What's the difference with jvm, for example?. jvm has another language, Compare number of C++ developers to number of lisp developers and you will get an answer. C/C++/Java/Pascal syntax is a lot more popular and easier to learn - despite being a lot more verbose in some cases. Everybody understand iterating the loop with for, many people has problems with grasping car/cdr conctept to the point of being able to use it efficiently. So lisp is for hackers. If I would have too choose I will rather think about Smalltalk or Eiffel to replace java, not lisp. Artur -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
bz2 File format.
The 1.2 pre-release version appears to only be available in a .bz2 file format instead of .gz. I couldn't find anything in the FAQ or the README files that explains how to unzip this type of file or why the change from .gz. -- Will --- William Penn Shackleford III[EMAIL PROTECTED] National Institute of Standards & TechnologyTel:(301) 975-4286 Building 220 Room B-127FAX:(301) 990-9688 Gaithersburg MD 20899 USA http://isd.cme.nist.gov/staff/shackleford/ --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: bz2 File format.
You apparently missed the lengthy debate regarding bzip2 that has plagued this list for the last week. In the interests of avoiding a rebirth of this (hopefully) dead thread I offer the following URL: http://www.muraroa.demon.co.uk/ In future, you might want to try searching the fine repository at http://www.freshmeat.net for any mysterious piece of Linux software you are looking for. Cheers, Ryan Will Shackleford wrote: > The 1.2 pre-release version appears to only be available in a .bz2 file format > instead of .gz. I couldn't find anything in the FAQ or the README files that > explains how to unzip this type of file or why the change from .gz. > > -- Will > > --- > William Penn Shackleford III[EMAIL PROTECTED] > National Institute of Standards & TechnologyTel:(301) 975-4286 > Building 220 Room B-127FAX:(301) 990-9688 > Gaithersburg MD 20899 USA http://isd.cme.nist.gov/staff/shackleford/ > --- > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Using Syslog from Java
Cynthia Jeness wrote: > > Actually, what I would like to be able to do (if possible) is to contact > "syslogd" directly from Java using UDP. I want to avoid native code since > we need to have this work across all the platforms which support syslogd. > So does anyone know if it is possible to communicate to syslogd through UDP > and, if so, where might I find the protocol documented. I've got a bookmark to this site, but have never actually downloaded the software but it may help: http://www.ice.com/java/syslog/index.shtml Chris Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos 414 Gilbert Road [EMAIL PROTECTED] Preston, Victoria 3072 61 3 94718224 - voice Australia 61 3 94711622 - fax -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: bz2 File format.
> You apparently missed the lengthy debate regarding bzip2 that has plagued thi > s > list for the last week. In the interests of avoiding a rebirth of this > (hopefully) dead thread I offer the following URL: > http://www.muraroa.demon.co.uk/ > > In future, you might want to try searching the fine repository at > http://www.freshmeat.net for any mysterious piece of Linux software you are > looking for. or your distribution CD or download site. It's been on RH distros for some time. -- Cheers John Summerfield http://os2.ami.com.au/os2/ for OS/2 support. Configuration, networking, combined IBM ftpsites index. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]