Tag archives: java

RSS feed of java

Last update on .

Java seems to be installed and maintained on Red Hat by using jpackage-utils. JPackage provides a repository of Java packages that can be installed using the package management tool of your choice. At the request of our administrator, here we’ll use the anemic up2date. The jpackage-utils rpm creates the filesystem structure that the jpackage ...

Last update on .

Sun does not allow redistribution of their JRE or SDK. The free VM’s for Java are behind by many versions. For that reason, some work has to be put in to get a usable Java development environment on Debian. I am using Debian Testing (Sarge).

There are two methods to get a Java environment ...

Last update on .

My understanding is this: J2ME (Java 2 Micro Edition) is for embedded systems development. If you don’t know what this is, then you don’t need it. If you are using JBoss or IBM’s Websphere, you might consider using the J2EE stuff (Enterprise Environment—server software and stuff). If you just want basic Java functionality, then ...

Last update on .

There are two steps to using a library from a jar file in your program. First, you need to import the libraries from the jar file that you would like to use into your source code. Second, make sure that your CLASSPATH environmental variable is set. Only the second step warrants additional discussion.

When you compile ...

Last update on .

I was told that a good thing to do is to create a .sh and .csh file in /etc/profile.d. The .sh file should have these two lines in them:

    export JDK_HOME=<path to your jdk implementation — mine is /usr/java/j2sdk1.4.1_01>
    export PATH=$PATH:$JDK_HOME/bin

My guess at what the .csh file should look like is this:

    setenv JDK_HOME=<path to your ...

Last update on .

This happened to me in Red Hat 8.0 with Sun’s j2sdk1.4.1_01, though I think it happens with a lot of Java packages. My problem was that I was writing at the command line:

 bash> java my_program.class

I should not have included the .class in my command line call. I just had to make sure that I ...