Galera, li alguns tópicos falando sobre isso, mas sempre que o cara resolve o problema, ele só diz que conseguiu e agradece! Não diz o que fez dentre as vááááárias opiniões que postaram…
Minha dúvida é a seguinte, quando eu tento rodar o .jar que o netbeans construiu pra mim, dá a seguinte mensagem: “Could not find the main class. Program will exit”.
Eu li algumas coisas sobre a construção do projeto no netbeans, mas percebi que o log de contrução diz o seguinte:
init:
deps-clean:
Deleting directory C:\Documents and Settings\Pedro Paulo\SPM\build
Deleting directory C:\Documents and Settings\Pedro Paulo\SPM\dist
clean:
init:
deps-jar:
Created dir: C:\Documents and Settings\Pedro Paulo\SPM\build\classes
Compiling 18 source files to C:\Documents and Settings\Pedro Paulo\SPM\build\classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying 7 files to C:\Documents and Settings\Pedro Paulo\SPM\build\classes
compile:
Created dir: C:\Documents and Settings\Pedro Paulo\SPM\dist
C:\Documents and Settings\Pedro Paulo\SPM is a directory or can’t be read. Not copying the libraries.
Building jar: C:\Documents and Settings\Pedro Paulo\SPM\dist\SPM.jar
Not copying the libraries.
To run this application from the command line without Ant, try:
java -jar "C:\Documents and Settings\Pedro Paulo\SPM\dist\SPM.jar"
jar:
CONSTRUÍDO COM SUCESSO (tempo total: 2 segundos)
Ele diz ali que é um diretório ou não pode ser lido… alguma idéia ai do que eu posso fazer pessoal?
É algum problema de CLASSPATH?
Pq ja tentei incluir e fiquei na msm…
Espero ajuda aew e desde já, muito obrigado!