Post

Visualizzazione dei post con l'etichetta Java

Tomcat “java.lang.OutOfMemoryError: PermGen space” error

http://stackoverflow.com/questions/88235/how-to-deal-with-java-lang-outofmemoryerror-permgen-space-error http://frankkieviet.blogspot.ca/2006/10/classloader-leaks-dreaded-permgen-space.html On Ubuntu Precise Pangolin 12.04 you can edit catalina.sh @ /usr/share/tomcat6/bin CATALINA_OPTS="-Xms128m -Xmx256m -XX:MaxPermSize=128m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"

Java IcedTea Probable fatal error:No fonts found.

Per risolvere il problema installare sun-java6-jdk Sto facendo dei tentativi per capire come installare i fonts mancanti senza dover passare a sun-java6-jdk, per il momento ho provato senza successo: sudo apt-get install ttf-liberation sudo apt-get install ttf-dejavu sudo apt-get install ttf-xfree86-nonfree sudo apt-get install xfonts-base sudo apt-get install msttcorefonts Però installando sun-java6-jdk ho visto che use queste dipendenze: avahi-daemon consolekit dbus gsfonts gsfonts-x11 libasound2 libavahi-core6 libck-connector0 libdaemon0 libeggdbus-1-0 libltdl7 libnss-mdns libpam-ck-connector   libpolkit-gobject-1-0 libxi6 libxtst6 odbcinst odbcinst1debian1 sun-java6-bin sun-java6-jre unixodbc Note: In teoria i fonts configurati sono questi /usr/lib/jvm/java-6-openjdk/jre/lib/fontconfig.properties

Ubuntu 10.04 Lucid sun-java6-jdk

Da questa version di Ubuntu i pacchetti sun-java6 sono stati spostati sul repository dei Partner (prima erano in Multiverse) https://wiki.ubuntu.com/LucidLynx/ReleaseNotes Per procedere con l’installazione: sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner” sudo apt-get update sudo apt-get install sun-java6-jdk configurare con update-java-alternatives –l e sudo update-java-alternatives -s java-6-sun Altre fonti: http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/

Install Netbeans 6.7.1 and Java JDK on Ubuntu

http://www.cs.wcupa.edu/rkline/netbeans-ubu.html

Communication in JSF

http://balusc.blogspot.com/2006/06/communication-in-jsf.html

Link Utili Hibernate/JPA

http://www.hibernate.org/hib_docs/reference/en/html/configuration-optional.html

JSTL 1.2 (per Tomcat 6.0)

http://www.mularien.com/blog/2008/02/19/tutorial-how-to-set-up-tomcat-6-to-work-with-jstl-12/ http://java.sun.com/products/jsp/jstl/ The JSTL 1.2 and UEL 1.0 Api and impl can be downloaded here: https://jstl.dev.java.net/ https://uel.dev.java.net/ -- Mirco Attocchi

Java su Nokia n810

Alcuni collegamenti utili: http://weblogs.java.net/blog/jfalkner/archive/2007/12/java_and_the_no.html https://wiki.evolvis.org/jalimo/index.php/Maemo

The Java Redemption: Field access vs Property access in JPA

The Java Redemption: Field access vs Property access in JPA : "JPA allows for two types of access to the data of a persistent class. Field access which means that it maps the instance variables (fields) to columns in the database and Property access which means that is uses the getters to determine the property names that will be mapped to the db. What access type it will be used is decided by where you put the @Id annotation (on the id field or the getId() method)."

Using GWT Widget Library with GWT Support Plugin for NetBeans (GWT4NB)

First add gwt-widgets-x.x.x.jar to Project Library and than add this to Main.gwt.xml: <inherits name='org.gwtwidgets.WidgetLibrary'/> Now you can run/compile without the "The import org.gwtwidgets cannot be resolved" error Resource: http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html http://gwt-widget.sourceforge.net/

Using of context JNDI datasource on Persistence.xml

I will post sample -- Mirco Attocchi

Migrazione Codice Java da Windows a Linux

Dopo alcuni tentativi sono riuscito a risovere (temporaneamente) il problema di compilazione dei sorgenti Java migrati da windows a linux, inserendo l'opzione seguente -J-Dfile.encoding=ISO-8859-1 nel file /etc/netbeans.conf nella sezione netbeans_default_options= Spero di trovare presto una spiegazione/soluzione migliore

Aspetto grafico di NetBeans in Windows

Aggiungere questa opzione alla voce netbeans_default_options nel file netbeans.conf --laf javax.swing.plaf.metal.MetalLookAndFeel