Linux Section Index | Page 4
How can I reliably create files from servlets on Linux in a platform-portable way? Code that successfully creates a new file under Windows fails with permission problems under Linux.
The problem is that Linux has a real user and file system security model, and Windows does not. You cannot create files in arbitrary directories - you need to create the file in a directory writab...more
To run Apache JServ under Linux, what environment variables need to be set in the jserv.properties file? How are they set?
There are no special requirements for environment variables under Linux. If you need to set environment variables, the wrapper.env property will do the job. For example, if your servlets need an X...more
How can an applet find the Netscape plugin directory under Linux?
According to the Java Technology on the Linux Platform: A Guide to Getting Started document:
To let your Netscape browser know where the Java plug-in library is, set the NPX_PLUGIN_PATH environme...more
Where can I find out what optional Java packages are available for Linux?
The Blackdown organization Web site (http://www.blackdown.org) provides information on Linux-specific Java extensions - some on its Product Information pages and some in its download pages. Extens...more
Who/What is Blackdown?
Blackdown is the volunteer organization that, historically, has ported the Sun JDK to Linux since the days of JDK1.02. The organization's accomplishments include porting every JDK since 1.02, port...more
Which JVM implementations let you increase the number of simultaneously open files?
Which JVM implementations let you increase the number of simultaneously open files?
Even with the techniques described in
this discussion, some JVMs (like IBM's) allow more open descriptors, and so...more
How can a Java program running in the background properly clean up when the system is shut down?
If your program is a long-lived system daemon, you may want to write startup and shutdown scripts to start it at boot and stop it at shutdown. Most Linux distributions use the System V init mechan...more
How can I create a JVM using JNI in Linux?
You can use the invocation interface of JNI. It is well documented in the two books that I listed in the reply to your other question.
The invocation interface allows you to completely initialize...more
How difficult is it to move from developing Java on Windows to developing on Linux?
The hard part, if you're new to it, is learning Linux. There are plenty of good resources online and in the bookstores to help you. Allow yourself the time to learn your way around this powerful e...more
How can Java programs authenticate passwords from the Linux passwd or shadow password files?
There is no core capability in the JRE to use host authentication mechanisms, but you've got a couple of options:
Write some JNI code using the native methods used by Linux applications - getspna...more
Which Linux JDK ports use native threads and which use green threads?
Of the JDK1.3 releases:
The IBM JDK1.3 uses native threads
The Sun JDK1.3 uses native threads if you run the HotSpot VM (default behavior), but you can use green threads by running the classic VM...more
Why don't modal dialogs (such as JOptionPane dialog boxes) stay on top?
A modal dialog is one that accepts input while blocking input to other application windows until it is closed. Although it would be nice for the dialog to force itself to stay on top, there is not...more
Why do applets have so many problems under Netscape/Linux?
The Java implementation running in the Netscape shipped for Linux is an old JDK1.1.x implementation that has not received much recent attention.
The best way to run Java under Netscape is the Java...more
How does Linux handle Java thread priorities?
The Linux JDK ignores Java thread priorities. While Linux does offer programs a certain amount of control over task priority, that control can only be fully exercised by the super-user. So the JDK...more
How does runtime performance compare between JDK1.1 and JDK1.2 on Linux?
Many people have found 1.2 to be slower - there are several reasons, but an important one is the memory requirement to hold the much larger set of classes. It's difficult to do anything in JDK1.2 ...more