Linux Section Index | Page 3
Why does running a command with Runtime.exec() generate output under Windows but not generate output under Linux?
Output from commands executed by Runtime.exec()
is sent to streams that your application has to read: you can
call Process.getInputStream() to get normal
output from the command and
Process.getErr...more
Is there a DBMS which runs on Linux and everywhere else Java runs (Windows, UNIX and MacOS)?
The only sure way to accomplish
what you want is
a Java-based DBMS - check FreshMeat.net
and SourceForge.net for some candidates.
Some possibilities are HSQL, InstantDB, and
Jeevan. There are also...more
How can I find out what Java programs are running in linux?
Java command lines can be pretty long, and the
part of the command naming the main class is usually
cut off in the ps listing. You should be
able to see the missing information by asking
for wider...more
What Linux PDAs support Java?
The best Linux Java PDA support right now is in
the PocketLinux
project - an IPaq-based PDA running Kaffe plus
a Kaffe-based desktop and numerous applications.
There is work going on to port vario...more
What is LAMP?
LAMP
What is LAMP?
User privileges and user ID for servlets
User privileges and user ID for servlets
I have a Java servlet that uploads files through a HTML form.
After uploading, the group and owner of the file is always "nobody"
Why is it &quo...more
How to launch files in Linux from java applets?
How to launch files in Linux from java applets?
How can an applet launch files under Netscape on
Linux? Signed applets running under Windows can
make a call like this:
Runtime.exec("rundll...more
Why do the JDK installations from Sun and Blackdown not work on Red Hat 7.0 systems?
Red Hat 7.0 shipped with a broken version of the C library glibc. Updating to their newer version (e.g., the glibc in http://www.ibiblio.org/pub/Linux/distributions/redhat/redhat-7.0/updates/i386/...more
How do I use Linux commands in my Java classes (e.g. ppp dialup scripts)?
You can use the Runtime.exec() methods to execute commands. For example:
Runtime.getRuntime().exec("pppd")
Some methods take an array of arguments, others take command strings which ar...more
How does performance of green threads compare with performance of native threads?
On a multi-CPU machine, native threads can assign work to multiple processors while green threads cannot - so native threads are a big advantage.
On a uniprocessor box, there is no clear answer. S...more
How can I set classpath for extensions (such as JavaMail API) on Linux?
With the Java 2 platform, you can install extension jarfiles into a directory meant to contain extensions. For the SDK, this is the jre/lib/ext subdirectory of the SDK installation, and for the JR...more
Can I run JSP on Linux with Tomcat and Apache?
Yes. Configuration is just like on any other Unix. See the FAQs on servlets, JSP, and Tomcat for more information.more
How can I print colored text from Java to a terminal such as the Linux console?
Native applications can take advantage of the curses library to use special terminal capabilities such as color. There is no such capability in the core Java classes, but here's a library that pro...more
Where can I find JNI Samples and Makefiles for Linux?
For a small C example, see: http://www.blackdown.org/java-linux/docs/faq/examples/jni-in-C/
And for a small C++ example, see: http://www.blackdown.org/java-linux/docs/faq/examples...more
Is a PersonalJava development kit available for Linux?
Sun's PersonalJava emulation environment is not available for Linux, but you can use the following two tools to develop PersonalJava apps with standard Java SDKs:
The PersonalJava compatibility c...more