Tag: java

  • Spring Integration Http Outbound Gateway and variable url

    I’ve recently had to deal with spring integration and in particular the http outbound gateway component. One possible use case for it would be to have to send the message out to an arbitrary url. In order to accomplish this, we can insert the…

  • jdk tools.jar under Snow leopard

    Se usando maven-antrun-plugin sotto MacOsX Snow Leopard ottenete [ERROR] BUILD ERROR [INFO] ———————————————————————— [INFO] Failed to resolve artifact. Missing: ———- 1) sun.jdk:tools:jar:1.6.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=sun.jdk -DartifactId=tools -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the […]

  • Google App Engine introduce Java

    E’ un dato di fatto che spesso, la piattaforma di sviluppo che scegliamo è collegata con i servizi di hosting che esistono. Le preferenze personali semplicemente passano in secondo piano. LAMP è un successo mondiale sopratutto perche esistono migliaia siti di hosting pronti e a basso costo. .Net è un “fallimento” lato server perche i […]

  • Maven: usare la cartella “lib” di un project

    Se uno per praticità vuole tenere le library all’interno del project o cmq. usare java-library che nel maven-repository non ci sono e non vuole sporcare il repository può mettere nel pom del progetto in alto : [java] project Project Maven Repository default file:///./lib [/java] In questo modo maven cercherà nella lib le java-library necessarie. [Fonte]

  • Obtain Multiaddress IP with java

    If you have many address, you can obtain all : [java] InetAddress[] e = InetAddress.getAllByName(InetAddress.getLocalHost().getCanonicalHostName()); [/java]

  • JBuilder 2008 and Windows Vista problems

    So let’s say you try to install JBuilder 2008 under Windows Vista (32bit). Did all went smoothly? A friend of mine got a nice JVM terminated Exit code=-1 error. It would seem that if you modify the JBuilder.ini -Xmx parameter (initially over 800M) to 7…

  • Eclipse RCP on MacOSx 10.5

    Se vi avventurate nello sviluppare plugin RCP con eclipse sotto MacOsX 10.5 Leopard sappiate che avrete degli errori tipo java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon in swt.library.path, java.library.path or the jar file l’unica soluzione che avete è quella mostrata in figura, ossia andare in Run Dialog e nelle opzioni della VM aggiungere -Djava.library.path=/Application/eclipse/plugin