Ciao a tutti!
ho un progetto in Java che su windows va alla grande, mentre su linux (sempre usando Netbeans) mi dice che la classe Start.java non ha il metodo main... e invece ce l'ha!
Ecco il codice:
codice:
package SpatialRelations.org.tool;
public class Start
{
/**
* Metodo per mandare in esecuzione il tool. Contiene i path relativi
* alle librerie e ai file usati.
* @param args Lista di parametri passati da linea di comando ma non utilizzato.
*/
public static void main(String args[])
{
System.setProperty("jrex.gre.path", System.getProperty("user.dir") + "/lib/jrex/jrex_gre");
System.setProperty("jrex.dom.enable", "true");
String srcHandRelations = System.getProperty("user.dir") + "/lib/RELAZIONI_SCRITTE_A_MANO.txt";
String srcGraphicRelations = System.getProperty("user.dir") + "/lib/RELAZIONI_GRAFICHE.txt";
GUI start = new GUI(srcHandRelations, srcGraphicRelations);
start.setupMapUI();
start.setVisible(true);
}
}