SigmaLab

Tag: java

Maven: usare la cartella “lib” di un project

by Yoghi on Dec.03, 2008, under Howto

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 :

<repositories>
    <repository>
        <id>project</id>
        <name>Project Maven Repository</name>
        <layout>default</layout>
        <url>file:///./lib</url>
    </repository>
</repositories>

In questo modo maven cercherà nella lib le java-library necessarie. [Fonte]

Leave a Comment :, more...

Obtain Multiaddress IP with java

by Yoghi on Oct.16, 2008, under Notes

If you have many address, you can obtain all :

InetAddress[] e = InetAddress.getAllByName(InetAddress.getLocalHost().getCanonicalHostName());
Leave a Comment : more...

Eclipse RCP on MacOSx 10.5

by Yoghi on Apr.02, 2008, under Software

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

Shoot Eclipse Dialog

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...