Problemas para compilar e gerar Jar com netbeans

2 respostas
K

Preciso de um help, estou com este problema para compilar meu programa, no inicio do projeto nao tinha este problema, depois de algumas mudanças no codigo começou a dar pau, nao sei onde exatamente, por isso nao da para voltar de onde comecei as alteraçoes, se alguem puder ajudar será mt mt mt bom.

Created dir: D:\Projeto\Sgi\build
Updating property file: D:\Projeto\Sgi\build\built-jar.properties
Created dir: D:\Projeto\Sgi\build\classes
Created dir: D:\Projeto\Sgi\build\empty
Created dir: D:\Projeto\Sgi\build\generated-sources\ap-source-output
Compiling 256 source files to D:\Projeto\Sgi\build\classes
D:\Projeto\Sgi\src\lib\SgiOptionPane.java:13: warning: AudioPlayer is internal proprietary API and may be removed in a future release
import sun.audio.AudioPlayer;
D:\Projeto\Sgi\src\SgiPrincipal.java:770: warning: [unchecked] unchecked call to forEach(Consumer<? super T>) as a member of the raw type Stream
        aMni.stream().forEach((smn) -> {
  where T is a type-variable:
    T extends Object declared in interface Stream
D:\Projeto\Sgi\src\lib\SgiDesktop.java:64: warning: [unchecked] unchecked conversion
                    aDump = (List)o;
  required: List<Object>
  found:    List
D:\Projeto\Sgi\src\lib\SgiDesktop.java:85: warning: [unchecked] unchecked conversion
        aDump = new ArrayList();
  required: List<Object>
  found:    ArrayList
D:\Projeto\Sgi\src\lib\SgiDesktop.java:89: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
        aListaFrame.add(aDump);
  where E is a type-variable:
    E extends Object declared in interface List
D:\Projeto\Sgi\src\lib\SgiDesktop.java:138: warning: [unchecked] unchecked conversion
            aDump = (List) o;
  required: List<Object>
  found:    List

2 Respostas

Paulo_Silveira

Oi Kenew

Todas as mensagens são de warnings. O jar no final não está sendo gerado? Tudo indica que está.

K

Bom dia Paulo,

Sim tudo de warnings, eu acabei dando uma geral nas propriedades do netbeans e vi que nao esta selecionado a parte de gerar o jar após a compilação, eu marquei e agora ta gerando e qto as mensagens eu tbm acabei resolvendo algumas eu nao estava definindo o tipo de variavel comecei a definir os tipos e boa parte já resolvi tbm rsrsrs

Vlw pela atenção.

Criado 31 de dezembro de 2015
Ultima resposta 6 de jan. de 2016
Respostas 2
Participantes 2