Matssol Posted December 1, 2016 Share Posted December 1, 2016 Im trying to encode a script, i have put the jar and the script in the same folder. Here is the command im running Java -jar duckencoder.jar -i Code.txt -o Script.txt -l no I get this back "Error with input file! Exception in thread "main" java.lang.NullPointerException at Encoder.main(Encoder.java:125)" What am i doing wrong? Quote Link to comment Share on other sites More sharing options...
Cribbit Posted December 2, 2016 Share Posted December 2, 2016 Hi Matssol, frist check the version of java i had a problem with 1.6 had to install 1.7 see FAQ Quote Link to comment Share on other sites More sharing options...
Cribbit Posted December 2, 2016 Share Posted December 2, 2016 Matssol, Also where is your language file resources kept? Java -jar duckencoder.jar -i DucktInputScript.txt -o inject.bin -l resources/no.properties Quote Link to comment Share on other sites More sharing options...
Matssol Posted December 2, 2016 Author Share Posted December 2, 2016 I have the newest version of java "8 Update 111" . Everything is in the same folder except for the Ducky_Encoder_GUI. Quote Link to comment Share on other sites More sharing options...
Cribbit Posted December 5, 2016 Share Posted December 5, 2016 You could try running from source in the src/ folder you should have something like Encoder.java from the command line type: javac -g Encoder.java this will generate a class file then type: java Encoder and in should print out the help, then use like the jar (just without the -jar): java Encoder -i input.txt -o inject.bin -l no.properties Quote Link to comment Share on other sites More sharing options...
SSHD Posted January 16, 2017 Share Posted January 16, 2017 Was this ever solved? Running WIN 10 with same error tried solutions form above no avail. Quote Link to comment Share on other sites More sharing options...
Matssol Posted October 20, 2017 Author Share Posted October 20, 2017 No i didn't solve it, you can just use the webpage encoder @ https://ducktoolkit.com/encoder/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.