Java

#!/bin/bash

# no JRE package available, use JDK package
wget -q --no-check-certificate https://raw.githubusercontent.com/panticz/installit/master/install.java-jdk.sh -O - | bash -
>

Configure default java version

# lista available versiions
ll /usr/lib/jvm/default-java/
update-java-alternatives -l
update-alternatives --config java

javaws

https://www.java.com/en/download/linux_manual.jsp
tar xf Downloads/jre-8u421-linux-x64.tar.gz -C /tmp/
 
/tmp/jre1.8.0_421/bin/ControlPanel
 
/tmp/jre1.8.0_421/bin/javaws Downloads/jviewer.jnlp

Using the Java Persistence API in Desktop Applications
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/persistenceapi/

Building a Java Desktop Database Application
http://www.netbeans.org/kb/60/java/gui-db.html

NetBeans
http://www.netbeans.org/community/releases/
http://www.netbeans.org/community/releases/roadmap.html
http://www.netbeans.org/download/flash/netbeans_6_gui_builder/netbeans_6_gui_builder.html

Database Gui
http://www.netbeans.org/kb/docs/java/gui-db-custom.html - Creating a Custom Java Desktop Database Application
http://www.netbeans.org/kb/docs/web/jsf-jpa-crud-code2.html - http://www.netbeans.org/kb/docs/web/jsf-jpa-crud-code2.html

Configure Glashfish (old)
copy c:\temp\ojdbc14.jar c:\Programme\glassfish-v2-b53\lib

Code Examples
http://exampledepot.com/

Stored procedures
http://www.ibm.com/developerworks/data/library/techarticle/dm-1209storedprocedures/
http://archive.oreilly.com/pub/a/onjava/2003/08/13/stored_procedures.html?page=2

Send Email from Java
http://www.rgagnon.com/javadetails/java-0538.html

Librarys
http://code.google.com/p/gchartjava/ - gchartjava is a free Java charts & graphs library
http://code.google.com/p/google-api-translate-java/ - simple, unofficial, Java client API for using Google Translate

PDF create with iText
http://itextpdf.com/download.php
http://sourceforge.net/projects/itext/files/latest/download - Download

Java packages in Ubuntu
sun-java6-bin - Java binaries
sun-java6-demo - demos and examples
sun-java6-doc - documentation
sun-java6-fonts - Lucida TrueType fonts from the JRE
sun-java6-jdk - metapackage for the JDK
sun-java6-jre - metapackage for the JRE
sun-java6-plugin - plug-in for Mozilla-based browsers
sun-java6-source - source files for the JDK

install original sun java 6 (/usr/lib/java-6-sun)
apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

RMI
http://www.comp.hkbu.edu.hk/~jng/comp3320/rmi.html

increase heap size (memory)
java -Xms128m -Xmx256m

# java -X
    -Xmixed           mixed mode execution (default)
    -Xint             interpreted mode execution only
    -Xbootclasspath:<directories and zip/jar files separated by :>
                      set search path for bootstrap classes and resources
    -Xbootclasspath/a:<directories and zip/jar files separated by :>
                      append to end of bootstrap class path
    -Xbootclasspath/p:<directories and zip/jar files separated by :>
                      prepend in front of bootstrap class path
    -Xdiag            show additional diagnostic messages
    -Xnoclassgc       disable class garbage collection
    -Xincgc           enable incremental garbage collection
    -Xloggc:<file>    log GC status to a file with time stamps
    -Xbatch           disable background compilation
    -Xms<size>        set initial Java heap size
    -Xmx<size>        set maximum Java heap size
    -Xss<size>        set java thread stack size
    -Xprof            output cpu profiling data
    -Xfuture          enable strictest checks, anticipating future default
    -Xrs              reduce use of OS signals by Java/VM (see documentation)
    -Xcheck:jni       perform additional checks for JNI functions
    -Xshare:off       do not attempt to use shared class data
    -Xshare:auto      use shared class data if possible (default)
    -Xshare:on        require using shared class data, otherwise fail.
    -XshowSettings    show all settings and continue
    -XshowSettings:all
                      show all settings and continue
    -XshowSettings:vm show all vm related settings and continue
    -XshowSettings:properties
                      show all property settings and continue
    -XshowSettings:locale
                      show all locale related settings and continue
 
The -X options are non-standard and subject to change without notice.
<code>
 
# set language
java -Duser.country=DE -Duser.language=de ...
 
<strong>Links</strong>
http://barcode4j.sourceforge.net/ - free barcodes generator library for Java
http://java.sun.com/j2se/javadoc/writingdoccomments/ - How to Write Doc Comments for the Javadoc Tool
http://openbook.galileocomputing.de/javainsel8/ - Java ist auch eine Insel (Galileo Computing)
http://wiki.ubuntuusers.de/Java
http://blogs.sun.com/watt/resource/jvm-options-list.html - JVM Options
http://mindprod.com/jgloss/font.html - Java Glossary