Java general

Forum : java-forums
about grouping in a GUI lay-out
Java Lecture notes (very complete course)

byte[] sysex = MidiUtil.sysexMessagesToByteArray(msgs);

Java tutorials:

Java tutorials at Sun website:

10 Interview Questions for Java (@ TrainJava blog)
How to use GridbagLayout


  1. errors1 : Exception in thread "main" java.lang.NoClassDefFoundError: core/DeviceListWriter
  2. errors2 : Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/xawt/
  3. errors3 : No preferences window
  4. export_jar_errors : In Eclipse : file > export > Jar file results in the error: Problem writing /JSynthLib-CVS/bin/META-INF/MANIFEST.MF to JAR: duplicate entry: META-INF/MANIFEST.MF

info java:

  1. java -jar
    Execute a program encapsulated in a JAR file. The first argument
    is the name of a JAR file instead of a startup class name. In
    order for this option to work, the manifest of the JAR file must
    contain a line of the form Main-Class: classname. Here, classname
    identifies the class having the pub-
    lic static void main(String[] args) method that serves as your
    application's starting point. See the Jar tool reference page and
    the Jar trail of the Java Tutorial @ for information about
    working with Jar files and Jar-file manifests.

java -version:

on my UbuntuStudio Linux desktop, everything works with this version:
peter@ubustu:/media/disk/home/peter/.JSynthLib$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu10)
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)
but on the same computer with Debian installed;
peter@avlinux:~/src/JSynthLib$ java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
here I get errors, the preferences window in JSynthLib won't open, and DeviceListWriter doesn't run :s
so I removed sun-java with synaptic and now I get:
peter@avlinux:~/src/JSynthLib$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5) (6b16-4)
OpenJDK Server VM (build 14.0-b15, mixed mode)