unanimous Posted November 24, 2017 Posted November 24, 2017 Hello, I have written a simple code using selenium and autoit in eclipse IDE to download a file from our internal file transfer . access to file transfer leads to a pop window to enter username and password. I have used autoit to enter username and password. Now when i run this program from eclipse,it executes succesfully.i.e username and password is set correctly now i generated a runnable jar file of this project and run it through cmd, but the execution fails at login window itself.username and password is not enetered when executed through jar file.I get the below error in cmd Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Sou at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main( der.java:58) Caused by: java.lang.ExceptionInInitializerError at com.ftp.launch.main(launch.java:58) ... 5 more Caused by: java.lang.NullPointerException at org.sikuli.script.RunTime.init(RunTime.java:635) at org.sikuli.script.RunTime.get(RunTime.java:291) at org.sikuli.script.RunTime.get(RunTime.java:126) at org.sikuli.script.RunTime.get(RunTime.java:316) at org.sikuli.script.Region.<clinit>(Region.java:31) any help is appreciated ... 6 more
unanimous Posted November 24, 2017 Author Posted November 24, 2017 I made some tests on my side its not only login pop window but the jar file does not run if AUTOIT is used at the beginning of the main class
Moderators Melba23 Posted November 24, 2017 Moderators Posted November 24, 2017 unanimous, I suggest you post the code you are using - see here how to do it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now