0

hi i was following a this https://stackoverflow.com/a/11042773/2665500? but i cant make it work???

when i try and compile it, i says that

public static class SHELLEXECUTEINFO extends Structure

needs to be abstract... but if i make it abstract then wont init?

SHELLEXECUTEINFO execInfo = new SHELLEXECUTEINFO(); 

what do i need to change to get this to elevate a process??

thanks

Community
  • 1
  • 1
  • To make a Java subclass non-abstract, you need to implement the abstract methods in the abstract base class. – technomage Aug 09 '13 at 15:11
  • ok will give it a go thanks..... by changing public abstract class Structure... without the abstract – user2665500 Aug 10 '13 at 15:52
  • ok that didnt work either... im not used to changing other code just adding it in....... is there a specific line i need to change? – user2665500 Aug 10 '13 at 16:28
  • You need to implement the "missing" abstract method [`getFieldOrder()`](https://github.com/twall/jna/blob/master/www/StructuresAndUnions.md).Your class *should not* be abstract. – technomage Aug 11 '13 at 05:47
  • yeah i tryed that also but i have never used or done this before and not sure what is actually needed.... protected abstract List getFieldOrder(); that is what is in the Structure class how do i implement it? i dont know what to put in it??? @Override protected List getFieldOrder() {} – user2665500 Aug 11 '13 at 09:53
  • Review the [`getFieldOrder()` implementation in the original example](http://stackoverflow.com/questions/11041509/elevating-a-processbuilder-process-via-uac/11042773#11042773). – technomage Aug 11 '13 at 11:14
  • OMG!! yes thanks so much how did i miss that... thanks... – user2665500 Aug 11 '13 at 14:07

0 Answers0