[ 
https://issues.apache.org/jira/browse/NETBEANS-2236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16789258#comment-16789258
 ] 

Daes Mond commented on NETBEANS-2236:
-------------------------------------

It usually happens when using jar files compiled with different versions of jdk

e.g. included file.jar compiled in 1.7 then jdk 9 is use to compile myapp.jar 
which imported class from file.jar

> Exception NoSuchMethodError
> ---------------------------
>
>                 Key: NETBEANS-2236
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2236
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 9.0
>         Environment: Java, Linux
>            Reporter: Stoiber Peter
>            Assignee: Stoiber Peter
>            Priority: Major
>
> Hello,
>  
> I have written a netbeans maven project and everything works fine. But after 
> building the project, I am receiving following exception:
>  
> Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 
> java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
>  at 
> humer.kamera.PhraseUvcDescriptor.phraseUvcData(PhraseUvcDescriptor.java:116)
>  at humer.kamera.CameraSearch.listDevice(CameraSearch.java:143)
>  at humer.kamera.CameraSearch.autoSearchTheCamera(CameraSearch.java:85)
>  at humer.kamera.Kam.AutoSearchTheCamerasActionPerformed(Kam.java:385)
>  at humer.kamera.Kam.access$100(Kam.java:45)
>  at humer.kamera.Kam$2.actionPerformed(Kam.java:281)
>  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
>  at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
>  at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>  
> I have already posted this issue on following site:
> [https://www.codeproject.com/Questions/1279366/Nosuchmethoderror-in-jar-program]
>  
> and the project I have written can be found under following link:
> [https://github.com/Peter-St/Linux_Jna_Kamera]
>  
> Any help would be appreciated.
>  
> Thanks,
>  
> Peter
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to