Can someone please explain how JAR files and the Java class loader make use of /usr/share/java? Is this a special directory that the JVM will perform automatic JAR loading and class lookups in, but no other? For example, if I have x.jar that depends on y.jar. If both jars are in/usr/share/java the dependency, y.jar, is found when loading x.jar. But
Tag: java
Why does Glassfish appear to require much more memory in Linux than in Windows?
I’ve been tinkering with GlassFish 2.1.1 lately, on both an Ubuntu Linux box as well as a Windows XP one. Looking at the “java” processes representing asadmin, JavaDB server, and the GlassFish app server domain itself on Windows (using the Task Manager), they add up to just over 100 MB of memory. However, looking at the same processes on the
TCP performance differences between RH Linux and Solaris in java?
While comparing java TCP socket performance between RH Linux and Solaris, one of my test is done by using a java client sending strings and reading the replies from a java echo server. I measure the time spent to send and receive the data (i.e. the loop back round trip). The test is run 100,000 times (more occurrence are giving
MDI in SWT on Linux?
I’d like to create an MDI application using SWT. I’ve done extensive searches and reach that the Decorations Object is the one responsable for trying supporting behavior. However, I’ve a Linux box, and the example provided doesn’t work for me. The output of the example provided by the above link is: Image However, on Linux (GTK), I see only labels
Will System.currentTimeMillis always return a value >= previous calls?
https://docs.oracle.com/javase/6/docs/api/java/lang/System.html#currentTimeMillis() says: Returns the current time in milliseconds. Note that while the unit of time of the return value is a millisecond, the granularity of the value depends on the underlying operating system and may be larger. For example, many operating systems measure time in units of tens of milliseconds. It is not clear to me if I am guaranteed
The conventional location for storing my Java libraries and applications in UNIX based systems
I usually store the Java applications and JAR files that I download from the Web in the ~/Java folder on my computer (an OS X machine). I have been doing this since the days when I was a Windows user. However I think in UNIX based systems user local apps are conventionally stored in another directory. I have a feeling
Java: Graphics in Linux
Does X-Windows have to be installed on a Linux-box in order for Java to display fullscreen graphics? Answer Other answerers appear to assume that “full screen graphics in Java” necessarily means “a working implementation of AWT”. This is, of course, not necessarily true, as it is perfectly possible (some would even say desirable) to use Java without AWT. Cairo is
Authenticate linux based user in java
I have a username and password for a particular user in Linux i need to verify that if the user is valid or not using java? Abdul Khaliq Answer The Java way to do this would be JAAS, but you’ll still need a LoginModule that works with Linux. Here’s a beta implementation that claims to work.
How do I find my PID in Java or JRuby on Linux?
I need to find the PID of the current running process on a Linux platform (it can be a system dependent solution). Java does not support getting the process ID, and JRuby currently has a bug with the Ruby method, Process.pid. Is there another way to obtain the PID? Answer If you have procfs installed, you can find the process