java

Java (Indonesian: Jawa; Javanese: ꦗꦮ) is an island of Indonesia. With a population of 143 million, Java is the world's most populous island, and one of the most densely populated places in the world. [read more at http://en.wikipedia.org/wiki/Java]

  • Voila c'est fait, depuis le 27 Janvier, je suis titulaire d'un permis de travail B (qui remplace le permis de travailleur frontalier G). A ce titre, je peut résider en suisse. Ces pages vont résumer mon parcours du conbattant et les démarches administratives....

    Queleques liens, pour se mettre en jambe...

    • http://zurichfr.free.fr/informer.html
    • http://www.zurichaccueil.ch/content/zuri_zuri.php
    • http://www.zoll.admin.ch/f/private/rv/reisen_einkaufen.php

     

    3 ans plus tard...

    Je vis toujours à Zürich, et tout se passe très bien. Pour un européen, les démarches sont simplifiés et pour peu que vous ayez un emploi dans une grande société, les démarches administratives sont réduite et pour ainsi dire transparente. Un européen, peut résider en Suisse 3 mois sans rien demander à personne. Il semble que les conditions soient différentes pour les résidents hors EU. Dans tous les cas, il faut contacter votre ambassade dans la ville ou le canton qui vous intéresse.

     



  • fromhttp://www.arsscoot.com/ Problem No 1 Shipping
    Shipping to France would be:
    Freight: US$ 135/cbm x 3.5 cbm =US$ 472.50
    Document fee US$ 10/shipment =US$ 10.00
    Trucking to Jakarta Port & Custom =US$ 95.00
    Wooden crating box =US$ 100.00
    Total shipping cost US$ 677.50. ( not doot to door service).

    Figures still missing:
    - other costs (bringing the vespa from the nearest port to your door's home),
    - french import duty, I assume at least 25% :-(
    - any import policy.

    The person I've discussed with has been shipping some scooter to USA, Canada, Mexico, Germany, Portugal and Norway.
    At the end it's only money problem....

    Problem No 2 insurance and papers
    In order to drive or even insured these beautiful vehicles, we need some legal papers.
    I've contact the FFVE (La Fédération Française des Véhicules d'Epoque):
    "Your vehicle must be older than 25 years in order to be elligible for a "carte grise de collection" We need also the vehicle indonesian papers (translate by an authorized person = 100$ or more), and the formular 846Agiven by the border authority. Add to this a free formular and
    your reglement 45 euro"


    more soon...
  • Munin is a networked resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

    In Norse mythology Hugin and Munin are the ravens of the god king Odin. They flew all over Midgard for him, seeing and remembering, and later telling him. "Munin" means "memory".

    Install Munin&160;by issuing as root

    apt-get install munin munin-node munin-plugins-extra

    Activate as many plugins as required, there is more than 230 plugins!

    acpi                      jmx_                     qmailscan-simple
    amavis                    load                     quota_usage_
    apache_accesses           loggrep                  samba
    apache_processes          lpar_cpu                 selinux_avcstat
    apache_volume             lpstat                   sendmail_mailqueue
    apc_envunit_              mailman                  sendmail_mailstats
    apc_nis                   mailscanner              sendmail_mailtraffic
    apt                       mbmon_                   sensors_
    apt_all                   memcached_               slapd_
    asterisk_channels         memory                   slapd_bdb_cache_
    asterisk_channelstypes    mhttping                 slony_lag_
    asterisk_codecs           multigraph_tester        smart_
    asterisk_meetme           multiping                snmp__cpuload
    asterisk_meetmeusers      multips                  snmp__df
    asterisk_sipchannels      multips_memory           snmp__fc_if_
    asterisk_sippeers         munin_stats              snmp__fc_if_err_
    asterisk_voicemail        munin_update             snmp__if_
    bind9                     mysql_                   snmp__if_err_
    bind9_rndc                mysql_bytes              snmp__if_multi
    bonding_err_              mysql_innodb             snmp__load
    buddyinfo                 mysql_isam_space_        snmp__memory
    cmc_tc_sensor_            mysql_queries            snmp__netapp_diskusage_
    colour_tester             mysql_slowqueries        snmp__netapp_inodeusage_
    courier_                  mysql_threads            snmp__netstat
    courier_mta_mailqueue     named                    snmp__print_pages
    courier_mta_mailstats     netopia                  snmp__print_supplies
    courier_mta_mailvolume    netstat                  snmp__processes
    cps_                      nfs4_client              snmp__rdp_users
    cpu                       nfs_client               snmp__sensors_fsc_bx_fan
    cpuspeed                  nfsd                     snmp__sensors_fsc_bx_temp
    cupsys_pages              nfsd4                    snmp__sensors_fsc_fan
    df                        nginx_request            snmp__sensors_fsc_temp
    df_abs                    nginx_status             snmp__sensors_mbm_fan
    df_inode                  nomadix_users_           snmp__sensors_mbm_temp
    dhcpd3                    ntp_                     snmp__sensors_mbm_volt
    digitemp_                 ntp_kernel_err           snmp__swap
    diskstat_                 ntp_kernel_pll_freq      snmp__uptime
    diskstats                 ntp_kernel_pll_off       snmp__users
    ejabberd_                 ntp_offset               snmp__winload
    entropy                   ntp_states               snmp__winmem
    env                       nut_misc                 snort_alerts
    exim_mailqueue            nutups_                  snort_bytes_pkt
    exim_mailqueue_alt        nut_volts                snort_drop_rate
    exim_mailstats            nvidia_                  snort_pattern_match
    extinfo_tester            open_files               snort_pkts
    fail2ban                  open_inodes              snort_traffic
    files_                    openvpn                  spamstats
    foldingathome             perdition                squeezebox_
    foldingathome_rank        ping_                    squid_cache
    foldingathome_wu          plugin.sh                squid_icp
    forks                     plugins.history          squid_objectsize
    freeradius_acct           pm3users_                squid_requests
    freeradius_auth           pop_stats                squid_traffic
    freeradius_proxy_acct     port_                    surfboard
    freeradius_proxy_auth     postfix_mailqueue        swap
    fw_conntrack              postfix_mailstats        sybase_space
    fw_forwarded_local        postfix_mailvolume       tcp
    fw_packets                postgres_bgwriter        threads
    haproxy_                  postgres_cache_          tomcat_
    hddtemp                   postgres_checkpoints     tomcat_access
    hddtemp2                  postgres_connections_    tomcat_jvm
    hddtempd                  postgres_connections_db  tomcat_threads
    hddtemp_smartctl          postgres_locks_          tomcat_volume
    http_loadtime             postgres_querylength_    uptime
    id                        postgres_scans_          users
    if_                       postgres_size_           varnish_
    if_err_                   postgres_transactions_   vlan_
    ifx_concurrent_sessions_  postgres_tuples_         vlan_inetuse_
    interrupts                postgres_users           vlan_linkuse_
    iostat                    postgres_xlog            vmstat
    iostat_ios                processes                vserver_cpu_
    ip_                       proc_pri                 vserver_loadavg
    ipac-ng                   proxy_plugin             vserver_resources
    ipmi_                     ps_                      warning_tester
    ipmi_sensor_              psu_                     yum
    ircu                      qmailqstat               zimbra_
    irqstats                  qmailscan

    Here are some I did add to the list of already activated one. Some were added for obvious reason like mysql, nginx and fail2ban to monitor SSH brute force attempt…

    cd /etc/munin/plugins/

    ln -s /usr/share/munin/plugins/nginx_status nginx_status

    ln -s /usr/share/munin/plugins/nginx_request nginx_request

    ln -s /usr/share/munin/plugins/mysql_ mysql

    ln -s /usr/share/munin/plugins/mysql_queries mysql_queries

    ln -s /usr/share/munin/plugins/fail2ban fail2ban

    Fail2Ban require root access to the socket of fail2ban, so edit munin-node

    vi /etc/munin/plugin-conf.d/munin-node

    And append at the end

    [fail2ban*]
    user root

    Restart Munin-node and force the munin-cron process to run the initial html reports or wait 5 minutes…

    /etc/init.d/munin-node restart
    sudo -u munin munin-cron

    Add to the crontab of the user Munin the command to run Munin every 5 minutes:

    sudo -u munin crontab –e
    */5 * * * * /usr/bin/munin-cron

    Protect the server host where Munin&160;will output its reports

    htpasswd -c /etc/nginx/.htpasswd username

    Now add a new site to nginx

    vi /etc/nginx/sites-enabled/waltercedric
    And put at least the following inside

    server {
    listen&160;&160;&160;&160;&160;&160; 80;
    server_name&160; munin.acme.com;
    root /var/cache/munin/www;
    location / {
    &160;&160;&160; expires off;
    &160;&160;&160; auth_basic "Munin";
    &160;&160;&160; auth_basic_user_file /etc/nginx/.htpasswd;
    }
    }

    And reload nginx configuration with service nginx reload

    You can now point any browser to http://munin.acme.com

  • joomla_cms

    In order to better develop for Joomla by having your own subversion local repositories.

    My second objective is to version different version of Joomla!/my components so I can
    run a continuous build strategy with XINC...but more on that later when I will have enough regression tests :-)

    Download the Subversion distribution for you operating system at: http://subversion.tigris.org/getting.html

    Subversion Binary Packages
    AIX
    aix
    Debian
    debian
    Debian Project
    apt-get install subversion
    HP-UX
    hp
    Fedora
    fedora
    Fedora Project
    yum install subversion
    Mac OS X
    mac
    Fink package (Requires Fink)
    MacPorts (Requires MacPorts)
    openCollabNet(Universal)
    FreeBSD
    freebsd
    FreeBSD Project
    cd /usr/ports/devel/subversion;
    make install
    Red Hat
    redhat
    CollabNet (Certified binaries)
    SummerSoft (Red Hat 8,9 +)
    NetBSD
    netbsd
    pkgsrc
    cd /usr/pkgsrc/devel/subversion;
    make install clean
    Solaris
    solaris
    CollabNet (Certified binaries, SPARC)
    Sunfreeware (SPARC & i386)
    OpenBSD
    openbsd
    OpenBSD Project
    cd /usr/ports/devel/subversion;
    make install
    Windows
    windows
    CollabNet (Certified binaries)
    Tigris.org: Apache 2.0 or Apache 2.2
    VisualSVN (VisualSVN Server)
    Ubuntu
    ubuntu
    Ubuntu Packages
    apt-get install subversion

     

     

     

     


    The first thing you'll need is a new repository. A repository is where all of your individual projects will be stored.

    Create a new directory using the file explorer or with

    # mkdir e:\xsubrversion

    Initialize it by issuing this command:

    # svnadmin create e:\xsubrversion

    Inside your new repository (e:\xsubrversion ) there is a directory called /conf. There you'll find a file
    svnserve.conf. Open this file in a text editor.

    Just uncomment the following lines by removing the #:

    [general]
    anon-access = read
    auth-access = write
    password-db = passwd

    In the same directory, you'll find another text file called passwd, if it do not exist, just create it and put all
    users authorize to access subversion in a [users] section. It is a pure key value pair file in the format
    NAME = PASSWORD

    [users]
    cedric.walter = xxxxxxx
    monkey.coder = yyyyyy

    Restart the service "Subversion Server"

    In Eclipse PDT/PHP Eclipse, you can now connect to Subversion with Subversive client (Subclipse is not part of
    Eclipse consortium)

    URL:svn://localhost
    User: cedric.walter
    Password: xxxxxxxxxxxx

    suversion.subclipse  and be able to commit and browse you code trunk.subversion.local

  • xenServer

    Citrix XenServer is a complete, managed server virtualization platform built on the powerful Xen hypervisor. Xen technology is widely acknowledged as the fastest and most secure virtualization software in the industry.

    In case you don’t have any optical drive attached to the server, this small how to will help you to install Xen Server as domain 0 (dom0) using USB flash drive.

    1. Download XEN server iso from http://www.citrix.com/English/ss/downloads/index.asp
    2. Format your USB drive using FAT32,
    3. Use an older version of UNetbootin to create a bootable disk. Download, start and follow the instruction in user interface,
    4. Just plug the USB flash drive and boot on it to complete the installation of Xen Server.

    UNetbootin allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. It runs on Windows, Linux, and Mac OS X. You can either let UNetbootin download one of the many distributions supported out-of-the-box for you, or supply your own Linux .iso file if you've already downloaded one or your preferred distribution isn't on the list (such as Ubuntu, Fedora, openSUSE, FreeBSD, PartedMagic)

    I used the version 393 and it worked, the latest version (549),  seems to have a bug and refuse to boot with an error message

    mboot.c32: not a COM32R image

  • chromium.os.logo

    Chromium OS is an open-source project that aims to build an operating system that provides a fast, simple, and more secure computing experience for people who spend most of their time on the web. In this small post I provide you the URL to a binary build, and a small how to install it on a USB stick.

     


     

    After 2 seconds boot time, and the login screen, you should see the following:

    chromiumos

    Download

    http://chromeos.hexxeh.net/index.php

    Instructions

    Linux Instructions

    Extract ChromeOS-Cherry.img and run the following command in the same directory as the file, where X is the device name of your USB drive.
    # sudo dd if=ChromeOS-Cherry.img of=/dev/X bs=4M
    Once the command finishes, you can then boot from the USB drive

    Windows Instructions

    Download Image Writer for Windows (http://bit.ly/7gRu0n) and extract the program. Launch the program, and select the image (ChromeOS-Cherry.img) and your USB drive letter from the drop down box. Click "Write". The install image will then be copied to the drive. Once it's done, close the program and you can then boot from the USB drive.

    Mac

    Firstly, unmount the drive you want to install Chromium OS to. Place the downloaded file onto your desktop. Open System Profiler, click USB on the list at the side and then select the entry that represents your USB disk. Now look for the BSD Name column (http://bit.ly/5mG4WK), ie disk1

    open up Terminal and type the following commands.
    # cd Desktop
    # tar -zxvf ChromeOS-Cherry.tar.gz
    Replace X with the name of the disk you found earlier, ie disk1.
    # sudo dd if=ChromeOS-Cherry.img of=/dev/X bs=4m
    This command will ask you to enter your password (the same one you enter when installing software for example), type it in and press enter.

  • From 0 to Splunk in 5 minutes using Docker and Compose

    Splunk is an American multinational corporation headquartered in San Francisco, California, which produces software for searching, monitoring, and analyzing machine-generated big data, via a web-style interface.

    Docker is an open source software platform to create, deploy and manage virtualized application containers on a common operating system (OS), with an ecosystem of allied tools. 

    Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application's services. Then, with a single command, you create and start all the services from your configuration.

  • sony_playstation_ps3

    Sony PS3 love linux...

    These instructions show you how to install LINUX on a Playstation 3 with the latest firmware.

    Downloading a Linux flavor

    Download one of these Linux versions:


    Ubuntu
    • Kubuntu - Ubuntu with KDE (recommended I can't stand GNOME desktop)
    • Ubuntu - The standard version using Gnome Desktop.
    • Xubuntu - Using the lightweight XFCE desktop environment
    • Edubuntu - Designed for use in school classrooms
    Yellow Dog
    Debian
    Fedora
    Fedora Core 5 PPC DVD - 3.4GB
    OpenSUSE
    not working, work in progress [http://en.opensuse.org/PS3]
    Gentoo linux
    how to [http://whitesanjuro.googlepages.com/]

    Burn the iso-file onto a CD/DVD depending on the size of the distribution

    Preparing the PS3

    In this step we will format the PlayStation 3 and create two partitions, one for the XMB (the PS3 operating system) and one for Linux. Before formatting the PS3, you MUST backup your games saved data.

    • In the XMB go to Settings > System Settings > Format Utility > Format Hard Disk. Choose Yes.
    • Choose Custom partition setting and Allot 10GB to the Other OS. Perform a Quick Format.
    • Reboot the PS3 by pressing X on your controller.

    Preparing to run the LiveCD

    • Insert the Linux CD/DVD you burned into your Playstation 3.
    • Go to Settings > System Settings > Install Other OS.
    • The system will detect a file called otheros.bld on your disk. Hit X to start the installer.
    • Go to Settings > System Settings > Default System. Set it to Other OS. Restart your PS3 by clicking X.
    • At the kboot: prompt, hit Enter. Linux will boot, slowly, from the CD.

    Once the system is up and running from the disc, you may choose to install Linux permanently.

    • Double click the install icon on the desktop.
    • Select Manual partitioning, and choose the 10.7GB drive.

    Back to normal operations under XMB

    To boot back to the XMB environment, type boot-game-os at the kboot: prompt.

  • &160; &160;phpunit-logo selenium-logo xampp.logo

    A small how to install PHPUnit via PEAR in an XAMPP running on a windows box. A prerequisite for a continuous build strategy.

    PHPUnit is a member of the xUnit family of testing frameworks and provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyze their results.

    Installing XAMPP

    • Download XAMPP from http://www.apachefriends.org/en/xampp.html
    • Unpack the zip, don't run any installer, just use the \xampp\xampp-control.exe to control the component (so the whole XAMPP directory can be moved to another drive without having absolute paths in all configurations files)

    Installing PEAR

    • Execute&160; \xampp\php\go-pear.bat and follow the onscreen instructions. The installation will modify the include_path in your php.ini file.
    • Execute \xampp\php\PEAR_ENV.reg to add PEAR to the windows registry

    Installing PHPUnit

    • Open a command prompt
    • Execute&160; pear channel-discover pear.phpunit.de
    • Execute&160; pear install phpunit/PHPUnit
    • Now you should find PHPUnit installed in \xampp\php\PEAR\PHPUnit\

    Installing Selenium

    • Execute&160; pear install Testing_Selenium

    Some useful pear commands to keep your PHP up to date

    • \xampp\php\pear list-upgrades
    • \xampp\php\pear upgrade-all

    All pear Commands

    build&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Build an Extension From C Source
    bundle&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Unpacks a Pecl Package
    channel-add&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Add a Channel
    channel-alias&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Specify an alias to a channel name
    channel-delete&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Remove a Channel From the List
    channel-discover&160;&160;&160;&160;&160;&160;&160;&160; Initialize a Channel from its server
    channel-info&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Retrieve Information on a Channel
    channel-update&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Update an Existing Channel
    clear-cache&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Clear Web Services Cache
    config-create&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Create a Default configuration file
    config-get&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Show One Setting
    config-help&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Show Information About Setting
    config-set&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Change Setting
    config-show&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Show All Settings
    convert&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Convert a package.xml 1.0 to package.xml 2.0 format
    cvsdiff&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Run a "cvs diff" for all files in a package
    cvstag&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Set CVS Release Tag
    download&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Download Package
    download-all&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Downloads each available package from the default channel
    info&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Display information about a package
    install&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Install Package
    list&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List Installed Packages In The Default Channel
    list-all&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List All Packages
    list-categories&160;&160;&160;&160;&160;&160;&160;&160;&160; List All Categories
    list-category&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List All Packages of a Category
    list-channels&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List Available Channels
    list-files&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List Files In Installed Package
    list-packages&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List All Packages of a Channel
    list-upgrades&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List Available Upgrades
    login&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Connects and authenticates to remote server
    logout&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Logs out from the remote server
    makerpm&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Builds an RPM spec file from a PEAR package
    package&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Build Package
    package-dependencies&160;&160;&160;&160; Show package dependencies
    package-validate&160;&160;&160;&160;&160;&160;&160;&160; Validate Package Consistency
    pickle&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Build PECL Package
    remote-info&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Information About Remote Packages
    remote-list&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; List Remote Packages
    run-scripts&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Run Post-Install Scripts bundled with a package
    run-tests&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Run Regression Tests
    search&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Search remote package database
    shell-test&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Shell Script Test
    sign&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Sign a package distribution file
    uninstall&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Un-install Package
    update-channels&160;&160;&160;&160;&160;&160;&160;&160;&160; Update the Channel List
    upgrade&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Upgrade Package
    upgrade-all&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160;&160; Upgrade All Packages
    Usage: pear [options] command [command-options] <parameters>
    Type "pear help options" to list all options.
    Type "pear help shortcuts" to list all command shortcuts.
    Type "pear help <command>" to get the help for the specified command.


    Pear References

    PEAR: Getting the manager
    PEAR: Checking if PEAR works

  • Among the 1246 plugins (!) available for Eclipse, I found this one that I really like to use since it has immediately boost my productivity in Eclipse.

    InstaSearch is an Eclipse plug-in for doing fast text search in the workspace. The search is performed instantly as-you-type and resulting files are displayed in an Eclipse view. It is a lightweight plug-in based on Apache Lucene search engine. Each file then can be previewed using few most matching and relevant lines. A double-click on the match leads to the matching line in the file.

    It's really instant and it searches through all the files in the workspace, by default it index the following file extensions (but you can add your own)

    aj,ant,bat,bookmap,c,cfg,cmd,confluence,cpp,css,dbk,dita,ditamap,ditaval,dtd,ecore,ecore2ecore,
    ecore2xml,emof,ent,exsd,fo,genmodel,h,hpp,htm,html,htpl,inc,ini,java,js,jsf,json,jsp,jspf,jspx,jsv,jtpl,log,
    macrodef,mathml,mediawiki,meta,mf,mml,mod,ncx,nvdl,opf,php,php3,php4,php5,phps,phtml,pl,pom,prefs,
    product,properties,py,rnc,rng,sch,sh,shtm,shtml,sql,sqlj,svg,tag,tagf,tagx,tagxf,target,textile,tld,tracwiki,tsd,twiki,
    txt,vxml,wml,wsdd,wsdl,wsil,wsimsg,wssc,wssr,xhtml,xmi,xml,xpl,xproc,xq,xql,xqm,xquery,xqy,xsd,xsl,xslt,xtm,xu

    eclipse_instasearch

    As it use Apache Lucene internally you can build some nice queries:

    • Searching for icefacescould result in 35 hits (items contain the word icefaces)
    • Searching for web.xmlresults in 3 hits (items contain the word web.xml or file named web.xml)
    • Searching for icefacesweb.xml(without quotes) results in 148 hits (items contain the words icefacesor web.xmlor both)
    • Searching for icefaces and web.xmlresults in 3 hits (results contain both words icefacesand web.xml)
    eclipse_instasearch_01
    • To exclude search terms just add a “-” in front of it:&160; icefaces –application
    • To perform a single character wildcard search use the "?" symbol.
    • To perform a multiple character wildcard search use the "*" symbol (looks for 0 or more characters).
    • Finding words that are within a specific distance away. To do a proximity search use the tilde, "~", symbol at the end of a Phrase. For example to search for "Specifies" and "milliseconds" within 5 words of each other in a document use the search: "Specifies" "milliseconds" ~5

    eclipse_instasearch_02

    Main Features

    • Instantly shows search results
    • Shows suggestions using auto-completion
    • Shows a preview using relevant lines
    • Matches partial words
    • Opens and highlights matches in files
    • Searches jar source attachments

    You can install it from Eclipse Marketplace (Menu Help – then Select Eclipse Marketplace and search for InstaSearch)

    You can find a lot more plugin at Eclipse Marketplace

  • Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language.



    Source code

    /**
     * Declares an abstract Interpret operation that is common to all nodes in the
     * abstract syntax tree.
     * 
     * @role __InterpreterExpression
     */
    public abstract class AbstractExpression {
            public abstract void interpret(Context context);}
    
    /**
     * Builds an abstract syntax tree representing a particular sentence in the
     * language that the grammar defines. Invokes the Interpret operation.
     */
    public class Client {
            public AbstractExpression getExpression() {
                    // put your code to create expression here
                    return null;        }
    
            public void sampleOperation() {
                    Context context = new Context();                
    getExpression().interpret(context);
    } } /** * Contains information that is global to interpreter. * * @role __InterpreterContext */ public class Context { } /** * One such class is required for every rule in the grammar. */ public class NonterminalExpression extends AbstractExpression { public void interpret(Context context) { // put your code here } } /** * Implements an Interpret operation associated with terminal symbols in the * grammar. */ public class TerminalExpression extends AbstractExpression { public void interpret(Context context) { // put your code here } }
  • You do not create your objects but describe (using cofiguration file) how they should be created and wired together in code. A container (for ex: in case of Spring framework, the IOC container) is then responsible for hooking it all up.

    In a typical IOC scenario, the container creates all the objects, wires them together by setting the necessary properties, and determines when methods will be invoked. The three implementation pattern types for IOC are:

    Type 1 Services need to implement a dedicated interface through which they are provided with an object from which they can look up dependencies (for example, additional needed services).

    Type 2Dependencies are assigned through JavaBeans properties (for example, setter methods).

    Type 3 Dependencies are provided as constructor parameters and are not exposed as JavaBeans properties.


  • jailbreak  Apple iOS 4.1 is live for Iphone 4, 3GS, IPod Touch 2G and 3G, time to jailbreak :-)

    Jailbreak

    1. Download and install the latest version of iTunes 10
    2. Use CYDIA AptBackUp  to also save your "non approved apps", When you next back up your iPhone up with iTunes this application create a list that is backed up as well. So next time you have to restore or upgrade you restore from ITunes install AptBackUp and CYDIA will install all the apps/mods on the list.
    3. Start iTunes and sync your iPhone to save all your data
    4. Download Sn0wbreeze http://bit.ly/bKcoHy and the original iOS 4.1 firmware files for your version of iPhone/iPod
    5. Only the 1.8beta support iOS 4.1 download here http://bit.ly/ahVzJL
    6. Start Sn0wbreeze and select “Simple Mode”, browse for your .ipsw file, “Do you want to activate your iPhone?” NO,it create the custom .ipsw
    7. Restore your iPhone wit that custom firmware (latest iOS with old baseband :-)), click SHIFT then on restore, locate file and wait...wait
    8. When you have latest firmware, just restore your data using the backup done previously at point 2
    9. Run CYDIA to install AptBackUp again
    10. Run AptBackUp and click restore to get all your non approved applications back!

    iOS 4.1 Software Update

    This update contains improvements, including the following:

    • Game Center
      • Send and receive friend request
      • Invite friends to multi-player games over the Internet
      • Play multi-player games by auto-matching with other players
      • View Leader boards and Achievements
      • Discover new games from friends
    • High dynamic range (HDR) photos on iPhone 4
    • Support for TV show rentals on iTunes
    • Ability to upload HD videos to YouTube and Mobile Me over Wi-Fi on iPhone 4
    • Additional support for AVRCP-supported accessories,  including next & previous track control
    • Face Time calling directly from Favorites
    • Bug fixes, including:
      • iPhone 4 proximity sensor performance
      • iPhone 3G performance
      • Nike+iPod fixes
      • Bluetooth improvements
    • Products compatible with this software update:
      • iPhone 4
      • iPhone 3GS
      • iPhone 3G
      • iPod touch 2nd generation, or later

    Game Center requires iPhone 4, iPhone 3GS, iPod touch 2nd generation or later.

  •  iText is a library that allows you to generate PDF files on the fly. The iText classes are very useful for people who need to generate read-only, platform independent documents containing text, lists, tables and images. The library is especially useful in combination with Java(TM) technology-based Servlets: The look and feel of HTML is browser dependent; with iText and PDF you can control exactly how your servlet's output will look.
    iText requires JDK 1.2. It's available for free under a multiple license: MPL and LGPL. It also have a complete list of features (but outdated), and let you perform operation on already created pdf (concat, split, add pages, add an overlay and so on...) 

  • Open-sourceITP - Powerful web application tester

    ITP is a deceptively simple, yet powerful web testing harness. It is a stand-alone Java application that can test your website from a user's perspective. It is amazingly simple and lightweight, yet can be used for powerful test-scripting by using building blocks to create large test runs.
    ITP is the fastest test harness software to learn. A test script is simply made up out of a few lines of XML. There is no programming involved! You will be testing your application in seconds.

    • A covariant, or read-only list of Numbers as List<+Number>.
    • A contravariant, or write-only list of Numbers as List<-Number>.
    • A bivariant, read-write list of Numbers as List<*>.
    • An invariant list of Numbers as List<=Number>.
  • Sun officially released Java 6 for download after over two years of development and collaboration with 10 companies.

    What's New in Java SE 6 Beta 2? here are the top 10 things you need to know about the Java 6 release

    The official Homepage of Java 6 being here.
  • Â

    Java Coding guidelines

    I won&39;t give you here all explanations on how to improve your code, only some references to external ressources, a lot of people have done a good job (hard work, respect!). Feel the need to improve your code, and you will follow more or less the same road

    Kent Beck often makes a statement about himself, "I&39;m not a great programmer; I&39;m just a good programmer with great habits."

    "keep it small to keep it beautiful" me speaking about refactoring ;-)

    "Tests don&39;t prove the absence of bugs"

    "Good judgment comes from experience. Unfortunately, the experience usually comes from bad judgment"

    Occam&39;s razor (14th century philosopher monk): No complexity beyond what is necessary.


    Things you may do to improve your code

    • Respect the Java guidelines, a lot of white papers can be found on internet.
    • Never return a collection (Vector or Hashtable or) in java, prefer to return a class which hide the real collection, better return an interface, this will allow to refactor the code if performances issues are found. Difficulty is of course to define a good contract between your code and client which will use it (good interface). Never use a Vector and let the client cast or extract Object type, let the compiler protect yourself against runtime error!!!!
    • If you need to have diffferent implementation of a class, but do not want to have one of them in memory (for example because of costly licences), you need a dynamical factory (Abstract polymorphical factory) Here is a templates of this ZIP file
    • Use idea of design from open source project! a lot of great and skilled people are working for the fundation Apache for example.
    • Use Object development (of course) but do not rely on interface shipped with 3rd party objects you are buying/integrating, always create a wrapper around them or better define your own interface, use a strategy pattern....
    • A good code is a small code! responsabilities must be properly localized (do not be lazy, create more objects!)and not spread around or worse localized in one object (spaghetti code). Naming convention is very important! you can distinguish an orange from an apple? right so do not forget that the easiest refactoring methods are: rename methods, rename variables, rename objects, rename packages, move code to...
    • Use a logging framework or better use nothing else than log4j or any implementation based on it. It is a great advantage to know how many bugs or errors has occured in production and when. Moreover changing debug level without rebooting server, or changing output destination are neat features FAQ.
    • Feel the need to avoid comments! they are not really synchronized (some people prefer to say NEVER synchronized) with the source code. If you still need comments, ask yourself if you can not use these comments to rename or reorganize the code they belongs. You may only explain: designs patterns used, bugs corrected (prefer to write a Junit testcase), algorithms or hacks (hacks are temporary solutions that do not create any major problems).
    • Do a daily integration, this is quite simple with eclipse and if you use ANT, read more at http://www.martinfowler.com/articles/continuousIntegration.html
    • Use XML! yes it is memory consuming, slow to read (not always) but it has a so much advantages that they can not be listed here (or not now),
    • Prefer lossely coupled system or process, for example try to create a meta descriptions data storage if you have a lot of layers in your system or use webservices

    Optimizations:

    Of course some habits of coding are really bad, but nearly all compilers are catching them, and can do some agressive optimizations... you will never thinks of, moreover some JVM can optimized the bytecode on the fly (HOTSPOT) or do second pass during compile time. Do you really think that you will speed up your program when you take care of writing rules or try to use a non readable algorithm which contains a lot of tricks? if you do so, you will not see the evil loop where your system will hang for seconds....Keep always in minds:

    • Do not try to start any optimizations too early, code must be readable and high level.
    • Use a profiler, if you are not satisfied with performances! and locate precisely the place where you loose time or eat memory. Memory leaks can be found with profilers too (yes memroy leaks are existing in java :-) ). This can be done by a core taskforce team, generally in one/two week(s).
    • Remember that when you will ship your code to customers, new cpu or machines will be available, chance is that a better cpu will cost less than hours of optimizations.
    • Techniques to improves performances are well documented, and quite easy. I use generally: pooling, load balancing, caching, precomputing values (you remember people using sinus table accurate at 10-3 for demo on amiga or HP48?), some patterns are helpful too, lazy evaluations, lazy initialization, delayed constructions! and so on...It is like a new world!
    • If you use a storage system, like a database, you can use an external ressource to improve IO, turn on the SQL query analyzer in SQL or Oracle to see what is going on. Any DBA (Database Administrator) can determine really fast where problems are: no index, bad design, foreign keys not well choosen, too much or bad join of tables, tables are too big, temporary table not empty after use, not enough virtual memory tuning, no cache tuning, bad JDBC-ODBC driver....
    • JVM parameters tuning: after using the profiler, you can determine the optimal size of heap and stack, turn hotspot on or cut it off because sometimes it has some bad effects.
    • User determine if a system is slow, or after loading the applications you can decide to improve your code if needed (memory used, cpu used, io used...). Remember end users are humans (not always ;-) for me), you can disturb them or make the wait look shorter if you use a hourglass or vertical slider, system must be responsive to user interactions! display something but do not hangs during seconds. A small javascript code can give you 40% more "hanging" time with great users acceptance

    Things you may read to improve your code

    • Read news about java technologies: www.javaworld.com, project hosted at www.soundforge.net and so on. You must keep yourself inform about the latest state of the art.
    • Register at http://developer.java.sun.com/developer/ a lot of great forums, and a knowledge database can be freely browsed.
    • Refactoring:a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior. (from Martin Fawler&39;s book: Refactoring)
      www.refactoring.com and techniques associated.
      My own definition would be: never be satisfied with your code! when it works and has been tested, write JUnit testcases and take 10 min to refactore your code each day. The book above has a good introduction about why it is important and how you can explain it to your manager. read one refactoring technique per day, it will also help you to improve your code.
    • AntiPattern: "An AntiPattern is a literary form that describes a commonly occurring solution to a problem that generates decidedly negative consequences.
    • AntiPatterns are a method for efficiently mapping a general situation to a specific class of solutions.
    • AntiPatterns provide real-world experience in recognizing recurring problems in the software industry and provide a detailed remedy for the most common predicaments.
    • AntiPatterns provide a common vocabulary for identifying problems and discussing solutions.
    • AntiPatterns support the holistic resolution of conflicts, utilizing organizational resources at several levels, where possible.
    • AntiPatterns provide stress release in the form of shared misery for the most common pitfalls in the software industry" from
    • Reference book isAntiPatternsRefactoring Software, Architectures, and Projects in Crisis
      William J. Brown - Raphael C. Malveau - Hays W. McCormick III - Thomas J. Mowbray - John Wiley & Sons, Inc.

    • www.extremeprogramming.com follow this rules to respect deadlines and work in an ambitious project.
    • www.objectsbydesign.com use patterns in your projects! and use comments saying which one you are using and why.It help a lot to understand the code.
    • www.bruceeckel.com and his famous free book "Thinking in Java" is a must for all developer (entry level but sometimes it is good not to forget basics of languages or OO)
    • Checked exceptions are not supported in Java but can be implemented, read here: http://www.mindview.net/Etc/Discussions/CheckedExceptions
    • Read cocomo in order to know what can make sense, statistics released by an university in USA that show influence of parameters during a project: what does a guru bring to a project?...what are the cost of a reatime application? how do I determine how long it will take?
  • James Gosling, fellow at Sun and father of Java, has called the relevance of the pact between Sun and Microsoft into doubt
    It speak also about NDA, reverse engineering in Samba, openoffice
    "In the United States a really vile law got passed a few years ago called the DMCA. It is legal for stuff except stuff doing Digital Rights Management (DRM). So what has been happening is folks like Microsoft, have been putting DRM into everything. DRM has been put into places you wouldn't think would make a whole lot of sense, like the document format being wrapped in DRM stuff…" more here [ZdnetUK]
  • Java Will be release under a GPL licence!

    From Joshua Marinacci Blog

    "The big announcement today: Java will be open sourced under the GPL. I think it makes a lot of sense because it protects Sun's interest in preventing forks and also the community's interest in knowing that Java will forever be available in the public sphere. The GPL has always provided an option to fork just in case someone takes the code in a bad direction. Historically having this option available ensures that it never needs to actually be used, letting the community grow and thrive.

    So what does this actually mean? What is the benefit to open source Java? How will things change? Here's what I think will change and what won't. I say this as my own opinion, not an official statement from Sun. I also say this as someone new to Sun, coming to Sun two years ago from an open source background. I'm sure that engineers with more experience than I will have different opinions. So with that, let's hear it:

    How will open source change Java

    • Real bugs will be fixed faster and non-bugs will be closed faster than ever.
    • Java won't fork. Few developers will have incentive to fork Java. It's a lot of work for little gain. Branches for new features or new platform support: yes. A true fork: no. Not even MS has much to gain from this anymore.
    • The JCP will grow and change. As before, big decisions about the future of Java will go through the Java Community Process. However, with more interested developers the ranks of the JCP will grow and change in some very good ways.
    • Java will have first class support on Linux, Free-BSD, and other 100% open operating systems. This is huge. Hugely, huge. I'm hoping we'll finally get a KDE look and feel as well.
    • NetBeans will open the entire JDK sources all at once. It's true, we're working on it for NetBeans 6. With the new editor infrastructure this will be possible. You might not actually want to do this, but it should be possible if you've got enough memory.
    • We will see lots of small crazy experimental versions of Java that add different things. Imagine a JDK with Find Bugs, MySQL, SwingX, JDIC, JInput, JOGL, Java3D, Tritonus MP3, jSDL, KDE-Java, Gnome-Java and a bunch of other cool libraries pre-integrated. We might even see an entire downloadable VMWare virtual harddrive with Ubuntu + Super JDK + NetBeans preinstalled for the ultimate prefab development environment.
    • More adoption of Looking Glass. Now that Java can be freely run on Linux desktops out of the box, there is incentive to ship Looking Glass bundled in with the OS. There's a lot of good 3D cards out there. Let's use'em!
    • More 3D Java Games for all platforms. I expect that people will start shipping an optimized copy of Java embedded in their applications. The end user will never need to know that Java is involved. JOGL + Java3D is now available for Win, Mac, and any copy of Linux with the right X configuration (which is more common than ever).
    • Burnable Java. Imagine a tool that burns a photo slideshow application preloaded with your photos, plus a copy of Java, straight to a CD. Hand the CD to your Mom, she pops it into her computer, and the photo slideshow starts right up. You'll never need to worry about the version of Java because it's shipped with your app. You don't need to worry about the OS because you code against Java, not against native APIs. (hmm. perhaps 'burnable java' isn't the right name for this. :)
    • Java will grow to fill every available computing niche and finally achieve the goal of total world domination.

    Okay, so maybe that last one is a stretch, but it's true that this will help to bringMore Java to More Places."

    The licence that Sun have now decided for Java are explained in a document called the "GPL license". Those terms included the most important one, which is that no-one may redistribute a version or derivative of this Sun Java code without making the source code of that version or derivative also come under the GPL.  (Yes Steve Ballmer GPL act like a virus ;-)).



  • JavaRSS.com is a portfolio of websites rich in Java News, Java Articles and Java Blogs. Java developers, Java Architects and Java Managers can read daily news, articles and blogs through the convenience of your favorite browser.
  • http://JavaRSS.com is a portfolio of websites rich in Java News, Java Articles, Java Blogs, Java Groups and Java Forums. Java developers, Java Architects and Java Managers can read daily news, articles and blogs through the convenience of your favorite browser. Java websites can join by submitting their Java feed link. Java users can be reached by Java sites instead of them searching for sites and links. Whether you blog Java, publish news, java articles, moderate group or any Sun java information...
  • IBM Alphaworks have release a library for supporting the IETF SSH-2 protocol aka SSH (WikiPedia)

    IBM Secure Shell Library for Java is a lightweight implementation of the IETF SSH-2 protocol. The library currently implements only the basic SSH features such as password log-in and command execution. Advanced features such as tunning and X-forwarding are currently not supported.




  • TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a TimeZone using getDefault which creates a TimeZone based on the time zone where the program is running. For example, for a program running in Japan, getDefault creates a TimeZone object based on Japanese Standard Time.

    You can also get a TimeZone using getTimeZone along with a time zone ID. For instance, the time zone ID for the U.S. Pacific Time zone is "America/Los_Angeles". So, you can get a U.S. Pacific Time TimeZone object with

    TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");

    You can force the Java Virtual Machine to use a specific TimeZone by adding a –D to its start parameter

    -Duser.timezone="America/Los_Angeles"

    In this example any server located outside the U.S. Pacific Time zone can still create timestamp like it would be in the U.S. Pacific Time zone.

    All the available TimeZone from java.util.TimeZone  are listed below for your convenience:

    ACT
    AET
    Africa/Abidjan
    Africa/Accra
    Africa/Addis_Ababa
    Africa/Algiers
    Africa/Asmera
    Africa/Bamako
    Africa/Bangui
    Africa/Banjul
    Africa/Bissau
    Africa/Blantyre
    Africa/Brazzaville
    Africa/Bujumbura
    Africa/Cairo
    Africa/Casablanca
    Africa/Ceuta
    Africa/Conakry
    Africa/Dakar
    Africa/Dar_es_Salaam
    Africa/Djibouti
    Africa/Douala
    Africa/El_Aaiun
    Africa/Freetown
    Africa/Gaborone
    Africa/Harare
    Africa/Johannesburg
    Africa/Kampala
    Africa/Khartoum
    Africa/Kigali
    Africa/Kinshasa
    Africa/Lagos
    Africa/Libreville
    Africa/Lome
    Africa/Luanda
    Africa/Lubumbashi
    Africa/Lusaka
    Africa/Malabo
    Africa/Maputo
    Africa/Maseru
    Africa/Mbabane
    Africa/Mogadishu
    Africa/Monrovia
    Africa/Nairobi
    Africa/Ndjamena
    Africa/Niamey
    Africa/Nouakchott
    Africa/Ouagadougou
    Africa/Porto-Novo
    Africa/Sao_Tome
    Africa/Timbuktu
    Africa/Tripoli
    Africa/Tunis
    Africa/Windhoek
    AGT
    America/Adak
    America/Anchorage
    America/Anguilla
    America/Antigua
    America/Araguaina
    America/Aruba
    America/Asuncion
    America/Atka
    America/Barbados
    America/Belem
    America/Belize
    America/Boa_Vista
    America/Bogota
    America/Boise
    America/Buenos_Aires
    America/Cambridge_Bay
    America/Cancun
    America/Caracas
    America/Catamarca
    America/Cayenne
    America/Cayman
    America/Chicago
    America/Chihuahua
    America/Cordoba
    America/Costa_Rica
    America/Cuiaba
    America/Curacao
    America/Danmarkshavn
    America/Dawson
    America/Dawson_Creek
    America/Denver
    America/Detroit
    America/Dominica
    America/Edmonton
    America/Eirunepe
    America/El_Salvador
    America/Ensenada
    America/Fort_Wayne
    America/Fortaleza
    America/Glace_Bay
    America/Godthab
    America/Goose_Bay
    America/Grand_Turk
    America/Grenada
    America/Guadeloupe

    America/Guatemala
    America/Guayaquil
    America/Guyana
    America/Halifax
    America/Havana
    America/Hermosillo
    America/Indiana/Indianapolis
    America/Indiana/Knox
    America/Indiana/Marengo
    America/Indiana/Vevay
    America/Indianapolis
    America/Inuvik
    America/Iqaluit
    America/Jamaica
    America/Jujuy
    America/Juneau
    America/Kentucky/Louisville
    America/Kentucky/Monticello
    America/Knox_IN
    America/La_Paz
    America/Lima
    America/Los_Angeles
    America/Louisville
    America/Maceio
    America/Managua
    America/Manaus
    America/Martinique
    America/Mazatlan
    America/Mendoza
    America/Menominee
    America/Merida
    America/Mexico_City
    America/Miquelon
    America/Monterrey
    America/Montevideo
    America/Montreal
    America/Montserrat
    America/Nassau
    America/New_York
    America/Nipigon
    America/Nome
    America/Noronha
    America/North_Dakota/Center
    America/Panama
    America/Pangnirtung
    America/Paramaribo
    America/Phoenix
    America/Port-au-Prince
    America/Port_of_Spain
    America/Porto_Acre
    America/Porto_Velho
    America/Puerto_Rico
    America/Rainy_River
    America/Rankin_Inlet
    America/Recife
    America/Regina
    America/Rio_Branco
    America/Rosario
    America/Santiago
    America/Santo_Domingo
    America/Sao_Paulo
    America/Scoresbysund
    America/Shiprock
    America/St_Johns
    America/St_Kitts
    America/St_Lucia
    America/St_Thomas
    America/St_Vincent
    America/Swift_Current
    America/Tegucigalpa
    America/Thule
    America/Thunder_Bay
    America/Tijuana
    America/Tortola
    America/Vancouver
    America/Virgin
    America/Whitehorse
    America/Winnipeg
    America/Yakutat
    America/Yellowknife
    Antarctica/Casey
    Antarctica/Davis
    Antarctica/DumontDUrville
    Antarctica/Mawson
    Antarctica/McMurdo
    Antarctica/Palmer
    Antarctica/Rothera
    Antarctica/South_Pole
    Antarctica/Syowa
    Antarctica/Vostok
    Arctic/Longyearbyen
    ART
    Asia/Aden
    Asia/Almaty
    Asia/Amman
    Asia/Anadyr
    Asia/Aqtau
    Asia/Aqtobe
    Asia/Ashgabat

    Asia/Ashkhabad
    Asia/Baghdad
    Asia/Bahrain
    Asia/Baku
    Asia/Bangkok
    Asia/Beirut
    Asia/Bishkek
    Asia/Brunei
    Asia/Calcutta
    Asia/Choibalsan
    Asia/Chongqing
    Asia/Chungking
    Asia/Colombo
    Asia/Dacca
    Asia/Damascus
    Asia/Dhaka
    Asia/Dili
    Asia/Dubai
    Asia/Dushanbe
    Asia/Gaza
    Asia/Harbin
    Asia/Hong_Kong
    Asia/Hovd
    Asia/Irkutsk
    Asia/Istanbul
    Asia/Jakarta
    Asia/Jayapura
    Asia/Jerusalem
    Asia/Kabul
    Asia/Kamchatka
    Asia/Karachi
    Asia/Kashgar
    Asia/Katmandu
    Asia/Krasnoyarsk
    Asia/Kuala_Lumpur
    Asia/Kuching
    Asia/Kuwait
    Asia/Macao
    Asia/Macau
    Asia/Magadan
    Asia/Makassar
    Asia/Manila
    Asia/Muscat
    Asia/Nicosia
    Asia/Novosibirsk
    Asia/Omsk
    Asia/Oral
    Asia/Phnom_Penh
    Asia/Pontianak
    Asia/Pyongyang
    Asia/Qatar
    Asia/Qyzylorda
    Asia/Rangoon
    Asia/Riyadh
    Asia/Riyadh87
    Asia/Riyadh88
    Asia/Riyadh89
    Asia/Saigon
    Asia/Sakhalin
    Asia/Samarkand
    Asia/Seoul
    Asia/Shanghai
    Asia/Singapore
    Asia/Taipei
    Asia/Tashkent
    Asia/Tbilisi
    Asia/Tehran
    Asia/Tel_Aviv
    Asia/Thimbu
    Asia/Thimphu
    Asia/Tokyo
    Asia/Ujung_Pandang
    Asia/Ulaanbaatar
    Asia/Ulan_Bator
    Asia/Urumqi
    Asia/Vientiane
    Asia/Vladivostok
    Asia/Yakutsk
    Asia/Yekaterinburg
    Asia/Yerevan
    AST
    Atlantic/Azores
    Atlantic/Bermuda
    Atlantic/Canary
    Atlantic/Cape_Verde
    Atlantic/Faeroe
    Atlantic/Jan_Mayen
    Atlantic/Madeira
    Atlantic/Reykjavik
    Atlantic/South_Georgia
    Atlantic/St_Helena
    Atlantic/Stanley
    Australia/ACT
    Australia/Adelaide
    Australia/Brisbane
    Australia/Broken_Hill
    Australia/Canberra
    Australia/Darwin
    Australia/Hobart
    Australia/LHI

    Australia/Lindeman
    Australia/Lord_Howe
    Australia/Melbourne
    Australia/North
    Australia/NSW
    Australia/Perth
    Australia/Queensland
    Australia/South
    Australia/Sydney
    Australia/Tasmania
    Australia/Victoria
    Australia/West
    Australia/Yancowinna
    BET
    Brazil/Acre
    Brazil/DeNoronha
    Brazil/East
    Brazil/West
    BST
    Canada/Atlantic
    Canada/Central
    Canada/East-Saskatchewan
    Canada/Eastern
    Canada/Mountain
    Canada/Newfoundland
    Canada/Pacific
    Canada/Saskatchewan
    Canada/Yukon
    CAT
    CET
    Chile/Continental
    Chile/EasterIsland
    CNT
    CST
    CST6CDT
    CTT
    Cuba
    EAT
    ECT
    EET
    Egypt
    Eire
    EST
    EST5EDT
    Etc/GMT
    Etc/GMT+0
    Etc/GMT+1
    Etc/GMT+10
    Etc/GMT+11
    Etc/GMT+12
    Etc/GMT+2
    Etc/GMT+3
    Etc/GMT+4
    Etc/GMT+5
    Etc/GMT+6
    Etc/GMT+7
    Etc/GMT+8
    Etc/GMT+9
    Etc/GMT-0
    Etc/GMT-1
    Etc/GMT-10
    Etc/GMT-11
    Etc/GMT-12
    Etc/GMT-13
    Etc/GMT-14
    Etc/GMT-2
    Etc/GMT-3
    Etc/GMT-4
    Etc/GMT-5
    Etc/GMT-6
    Etc/GMT-7
    Etc/GMT-8
    Etc/GMT-9
    Etc/GMT0
    Etc/Greenwich
    Etc/UCT
    Etc/Universal
    Etc/UTC
    Etc/Zulu
    Europe/Amsterdam
    Europe/Andorra
    Europe/Athens
    Europe/Belfast
    Europe/Belgrade
    Europe/Berlin
    Europe/Bratislava
    Europe/Brussels
    Europe/Bucharest
    Europe/Budapest
    Europe/Chisinau
    Europe/Copenhagen
    Europe/Dublin
    Europe/Gibraltar
    Europe/Helsinki
    Europe/Istanbul
    Europe/Kaliningrad
    Europe/Kiev
    Europe/Lisbon
    Europe/Ljubljana

    Europe/London
    Europe/Luxembourg
    Europe/Madrid
    Europe/Malta
    Europe/Minsk
    Europe/Monaco
    Europe/Moscow
    Europe/Nicosia
    Europe/Oslo
    Europe/Paris
    Europe/Prague
    Europe/Riga
    Europe/Rome
    Europe/Samara
    Europe/San_Marino
    Europe/Sarajevo
    Europe/Simferopol
    Europe/Skopje
    Europe/Sofia
    Europe/Stockholm
    Europe/Tallinn
    Europe/Tirane
    Europe/Tiraspol
    Europe/Uzhgorod
    Europe/Vaduz
    Europe/Vatican
    Europe/Vienna
    Europe/Vilnius
    Europe/Warsaw
    Europe/Zagreb
    Europe/Zaporozhye
    Europe/Zurich
    GB
    GB-Eire
    GMT
    GMT0
    Greenwich
    Hongkong
    HST
    Iceland
    IET
    Indian/Antananarivo
    Indian/Chagos
    Indian/Christmas
    Indian/Cocos
    Indian/Comoro
    Indian/Kerguelen
    Indian/Mahe
    Indian/Maldives
    Indian/Mauritius
    Indian/Mayotte
    Indian/Reunion
    Iran
    Israel
    IST
    Jamaica
    Japan
    JST
    Kwajalein
    Libya
    MET
    Mexico/BajaNorte
    Mexico/BajaSur
    Mexico/General
    Mideast/Riyadh87
    Mideast/Riyadh88
    Mideast/Riyadh89
    MIT
    MST
    MST7MDT
    Navajo
    NET
    NST
    NZ
    NZ-CHAT

    Pacific/Apia Pacific/Auckland Pacific/Chatham Pacific/Easter Pacific/Efate Pacific/Enderbury Pacific/Fakaofo Pacific/Fiji Pacific/Funafuti Pacific/Galapagos Pacific/Gambier Pacific/Guadalcanal Pacific/Guam Pacific/Honolulu Pacific/Johnston Pacific/Kiritimati Pacific/Kosrae Pacific/Kwajalein Pacific/Majuro Pacific/Marquesas Pacific/Midway Pacific/Nauru Pacific/Niue Pacific/Norfolk Pacific/Noumea Pacific/Pago_Pago Pacific/Palau Pacific/Pitcairn Pacific/Ponape Pacific/Port_Moresby Pacific/Rarotonga Pacific/Saipan Pacific/Samoa Pacific/Tahiti Pacific/Tarawa Pacific/Tongatapu Pacific/Truk Pacific/Wake Pacific/Wallis Pacific/Yap PLT PNT Poland Portugal PRC PRT PST PST8PDT ROK Singapore SST SystemV/AST4 SystemV/AST4ADT SystemV/CST6 SystemV/CST6CDT SystemV/EST5 SystemV/EST5EDT SystemV/HST10 SystemV/MST7 SystemV/MST7MDT SystemV/PST8 SystemV/PST8PDT SystemV/YST9 SystemV/YST9YDT Turkey UCT Universal US/Alaska US/Aleutian US/Arizona US/Central US/East-Indiana US/Eastern US/Hawaii US/Indiana-Starke US/Michigan US/Mountain US/Pacific US/Pacific-New US/Samoa UTC VST W-SU WET Zulu

    see also References

  • Â java.lang.ClassNotFound and ClassNotDefFoundError are different but what if my classes are in classpath?

    Â Remember:

    • ClassNotDefFoundError is thrown if a class definition of the hierarchy is not located by the classloader
    • ClassNotFound if the file or class can not be found in classpath. Remember only some servletrunner can open jar files, so having jar files in a directory without having them explicitely in classpath do not help much. You must have the name of jar file in CPath.