PDA

View Full Version : [Java] Errore creazione jar con netbeans


BubbleJavatore
11-11-2009, 10:43
Salve a tutti. Vi scrivo, perchè stamani ho avuto un problema a creare un file jar con Netbeans.... Vi posto l'errore:


init:
deps-clean:
Deleting directory /home/ironbubble/NetBeansProjects/JBCalculator (Beta1)/build
clean:
init:
deps-jar:
Created dir: /home/ironbubble/NetBeansProjects/JBCalculator (Beta1)/build/classes
Created dir: /home/ironbubble/NetBeansProjects/JBCalculator (Beta1)/build/empty
Compiling 1 source file to /home/ironbubble/NetBeansProjects/JBCalculator (Beta1)/build/classes
/home/ironbubble/NetBeansProjects/JBCalculator (Beta1)/nbproject/build-impl.xml:363: The following error occurred while executing this line:
/home/ironbubble/NetBeansProjects/JBCalculator (Beta1)/nbproject/build-impl.xml:168: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/java"
BUILD FAILED (total time: 0 seconds)

Avete qualche idea su come risolvere?
Grazie Mille!

BubbleJavatore
11-11-2009, 19:06
UP!

BubbleJavatore
12-11-2009, 13:26
Nessuna idea?!

PGI-Bis
12-11-2009, 13:35
l'ide dice che il problema non è nella creazione del file jar ma, ancor prima, nella compilazione del sorgente che non avviene in quanto il compilatore javac non risulta accessibile.

Verifica di avere un JDK correttamente installato sul tuo sistema.

BubbleJavatore
13-11-2009, 13:56
l'ide dice che il problema non è nella creazione del file jar ma, ancor prima, nella compilazione del sorgente che non avviene in quanto il compilatore javac non risulta accessibile.

Verifica di avere un JDK correttamente installato sul tuo sistema.

Funziona tutto...eclipse per esempio funziona a meraviglia.... questa bestia invece l'unico errore che mi da e questo....per altro mi compila e mi fa eseguire...
Quindi secondo me il problema non è in quel punto....