Scout-app: Getting "ArgumentError: Error #3214"

Created on 28 Oct 2014  ·  41Comments  ·  Source: scout-app/scout-app

Whenever I try to start watching files for updates (i.e.g pressing the "play" button), I get this error from Adobe Air. I tried updating Air to see if that would fix the problem, but it did not. Also of note, when clicking the play button, it disappears after the error message pops up.

I'm running on Windows 7. I've included a screenshot of the error.

Thanks in advance for any help/advise.

scoutissue_

Most helpful comment

@andrewbiddinger @arctwelve @beliya @digiTeam @dim00 @dongorous @EraYaN @getnathans @ghost @gildniy @gmt-it @Gothburz @Grahamhoare @hardstonepaul @iamabeagle @KennethHooper @kziper1414 @larr @Liriant @mayan62 @Made-of-Clay @nashCode @nfonte @Nordicdesign @rokkitpress @sarbjit399 @sg1010 @spa @WayneMcKenzie @xlsmile

Wow, that's a lot of people. And I've got good news for all of you! :smile:

Scout-App is no longer reliant on Adobe Air or Java! Try out the latest version and let us know what you think.

If you have any feedback, create a new issue. Closing this one.

All 41 comments

Do you have java installed?

Zach

On Tue, Oct 28, 2014 at 1:57 PM, Adam [email protected] wrote:

Whenever I try to start watching files for updates (i.e.g pressing the
"play" button), I get this error from Adobe Air. I tried updating Air to
see if that would fix the problem, but it did not. Also of note, when
clicking the play button, it disappears after the error message pops up.

I'm running on Windows 7. I've included a screenshot of the error.

Thanks in advance for any help/advise.

[image: scoutissue_]
https://cloud.githubusercontent.com/assets/8458698/4813787/9d650880-5ecb-11e4-8258-424e547c0405.JPG


Reply to this email directly or view it on GitHub
https://github.com/mhs/scout-app/issues/187.

Zach Dennis

Software Craftsman, Founder | _Mutually Human_

616 475-4225 ext. 702

Apologies for the delay - busy week. Yes, Java is installed. Still getting error. Anything I should look for specifically in the Java config settings?

Did anyone ever answer this question? I am getting the same error.

The bottom line is that Scout is looking for the java runtime in the wrong place, and Air duly reports the 3214 error. You can see my solution at the link below; it _should_ insulate you against changes in java's location when the next update comes out, unless Oracle decides to change the way they do things again.

https://github.com/mhs/scout-app/issues/173

Hope that helps.

I know this is a late reply. i think the issue is SCOUT has a file called "process_interaction.js" and it uses set of hard corded paths to get java in users machine. So you will have to change that to point your java in that file.

This is what worked for me in Win8.1
from getnathans above: SCOUT has a file called "process_interaction.js" ....

function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_25\bin\java.exe");
if(!path.exists){

Please sir developer, add this to the settings or use the JAVA_HOME environment variable.

This doesn't really solve the issue, but I figured I would share. I just ended up learning the command line. It isn't terribly difficult, though the Scout tool was quite handy. Hope the bug gets fixed regardless.

Thanks everyone for contribution. The sg100's solution (providing the right path to newly updated Java in "C:\Program Files (x86)\Java...") definitely helped in my case.

Cheers!

Yes Yes thank you getnathans

C:\Program Files (x86)\Scout\javascripts\app has "process_interaction.js" file and search this function

function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre1.8.0_31\bin\java.exe");
if(!path.exists)

and find your java folder in C:\Program Files\Java\jre1.8.0_31\bin\java.exe

make shoure jre folder \bin
copy file path and past it in to js file, after add extra "\" to like under file path
C:\Program Files\Java\jre1.8.0_31\bin\java.exe

remember add extra "\"

( this text box view only one \ that's y all are get trouble )

cheer

Found the same issue on Win8.1 as I updated Adobe Air (Scout was running perfectly until then).
Tried updating Java but that didn't help.

The solution suggested by sg1010 helped, but in my case I had to change the URL to
C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe

So check your Java path and update it accordingly.

Thanks beliya that has fixed the issue for me

Can confirm that Nordicdesigns works with Win 8:

function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre7\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre6\bin\java.exe");
}
}
return path;
} else {
return air.File.applicationDirectory.resolvePath("/usr/bin/java");
}
}

Thanks, works for me win 7:

function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre1.8.0_31\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_31\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre6\bin\java.exe");
}
}
return path;
} else {
return air.File.applicationDirectory.resolvePath("/usr/bin/java");
}
}

Is anyone having problems with the stop button not showing up?

Yes, WayneMcKenzie. I am having problems with the stop button not showing up too. (As well as the "Error #3214") I am in Windows 8, though.

I've resorted to using mixture. Works just as well if not better.

http://mixture.io/

Ok, I'll check it out! Thanks, Wayne! My problems were fixed in Windows by updating my Java to v7.

I opened "processing_interaction.js" in my text editor and changed the path, but when I try to save the changes it doesn't work. It seems like I need administrator permission. Help!

@vipergirl77 Yes, you need to run your editor as an Admin. If you are on Windows right click your app, and choose "Run as administrator". On Widows 8 you can also press Windows Key, start typing your app name (eg Notepad++, Notepad etc), and when the app appears in search results, right click the app and then "run as administrator". Hope, that helps.

@xlsmile Ah okay, it works now. Thank you!

This really helped me a lot!
Thanks to you all!

Thank you soooo much solved it finally! I had to change the path for the Java in the scoutj avafile

Hi, I have managed to update the path to below:

function javaDir() {
  if(air.Capabilities.os.match(/Windows/)) {
    path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre7\bin\java.exe");
  if(!path.exists){
    path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_60\bin\java.exe");
  if(!path.exists){
    path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre6\bin\java.exe");
  }
}
  return path;
    } else {
  return air.File.applicationDirectory.resolvePath("/usr/bin/java");
    }
}

Still with no luck, does anyone have any ideas?

Im on windows 10 with Java Version 8 Update 60.

Thanks
Craig

Pls check your java path

On Thu, Aug 20, 2015 at 6:16 PM, Craig Waton [email protected]
wrote:

Hi, I have managed to update the path to below:

function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre7\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_60\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre6\bin\java.exe");
}
}
return path;
} else {
return air.File.applicationDirectory.resolvePath("/usr/bin/java");
}
}

Still with no luck, does anyone have any ideas?

Im on windows 10 with Version 8 Update 60.

Thanks
Craig


Reply to this email directly or view it on GitHub
https://github.com/mhs/scout-app/issues/187#issuecomment-132996040.

You should use slash ( / ) instead of backslash. Works without problems on WIN 10.

function javaDir() {
    if(air.Capabilities.os.match(/Windows/)) {
      path = air.File.applicationDirectory.resolvePath("C:/Program Files/Java/jre7/bin/java.exe");
      if(!path.exists){
        path = air.File.applicationDirectory.resolvePath("C:/Program Files (x86)/Java/jre7/bin/java.exe");
        if(!path.exists){
          path = air.File.applicationDirectory.resolvePath("C:/Program Files (x86)/Java/jre1.8.0_60/bin/java.exe");
        }
      }
      return path;
    } else {
      return air.File.applicationDirectory.resolvePath("/usr/bin/java");
    }
  }

Yes, Get nathans and beliya, this worked for me too! Dont forget its a double \ for each folder in the path! You should just replicate the exisitng path structure you see but change the folder names as required, phew!

Had to edit the third path to the proper java version folder, otherwise @gmt-it 's solution was the only one that worked for me in Win10. Thanks!

Thanks... worked for me :)

  • I just changed the paths in C:\Program Files (x86)\Scout\javascripts\app\process_interaction.js from
    function javaDir() {
    if(air.Capabilities.os.match(/Windows/)) {
    path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre7\bin\java.exe");
    if(!path.exists){
    path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_66\bin\java.exe");
    if(!path.exists){
    path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre6\bin\java.exe");
    }
    }
    return path;
    } else {
    return air.File.applicationDirectory.resolvePath("/usr/bin/java");
    }
    }

to

function javaDir() {
    if(air.Capabilities.os.match(/Windows/)) {
      path = air.File.applicationDirectory.resolvePath("C:/Program Files/Java/jre1.8.0_66/bin/java.exe");
      if(!path.exists){
        path = air.File.applicationDirectory.resolvePath("C:/Program Files (x86)/Java/jre1.8.0_66/bin/java.exe");
        if(!path.exists){
          path = air.File.applicationDirectory.resolvePath("C:/Program Files/Java/jre1.8.0_66/bin/java.exe");
        }
      }
      return path;
    } else {
      return air.File.applicationDirectory.resolvePath("/usr/bin/java");
    }
  }

Running it as administrator and changing the variables fixed this issue for me.

Windows 10 + Java 8

SOLUTION:
Open: 'C:\Program Files (x86)\Scout\javascripts\app\process_interaction.js'

Change the line below according your version of Java AND you need to use DOUBLE-SLASHES - '\':
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_66\bin\java.exe");

Don't try to re-write the existing file, as you will get an error.
Just use 'Save As' for that. Then simply replace the files.

P.S. I don't know why but github shows only one slash here instead of double.

All the best!

Is there a permanent fix for this? Every time there is a Java update, the file needs to be modified.

Is there a way to change "path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_66\bin\java.exe");" to have some sort of wildcard or regex for \jre1.8.0_66\?

Any help would be appreciated.

Thanks!

For future updates to Scout, suggest that Scout checks if Java is found when Scout loads.

If not, allow the user to navigate to the java.exe within the configure screen.

For window 8, all you need to is change the path
"C:\Program Files\Java\jre7\bin\java.exe"

to
C:\Program Files\Java\jre1.8.0_60\bin\java.exe,

then instead of back slash "\" change it to forward slash "/" just like this
C:/Program Files/Java/jre1.8.0_60/bin/java.exe


function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:/Program Files/Java/jre1.8.0_60/bin/java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre7\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre6\bin\java.exe");
}
}
return path;
} else {
return air.File.applicationDirectory.resolvePath("/usr/bin/java");
}
}

Great article fixes my problem on windows 10

THIS WORKS ON ME windows 10, use double '/'
change only on this :::> path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_66\bin\java.exe"); <:: dont change if(air.Capabilities.os.match(/Windows/)) { the double slash here.

thankx
dim00 commented on Dec 17, 2015
Windows 10 + Java 8

SOLUTION:
Open: 'C:\Program Files (x86)\Scout\javascripts\app\process_interaction.js'

Change the line below according your version of Java AND you need to use DOUBLE-SLASHES - '\':
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_66\bin\java.exe");

Don't try to re-write the existing file, as you will get an error.
Just use 'Save As' for that. Then simply replace the files.

P.S. I don't know why but github shows only one slash here instead of double.

All the best!

I think everyone is still missing the original question I posted.

I know you can put in the current Java version and move on. I am looking for a solution that does NOT require me to change the version every time I update Java in Windows.

Thanks!

@KennethHooper It's clear the solution hasn't been yet been implemented in this _free, opensource_ software.

Thanks for me work!. With double \
Win 8.1 Java 8 Update 71

`function javaDir() {
if(air.Capabilities.os.match(/Windows/)) {
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre7\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files (x86)\Java\jre1.8.0_71\bin\java.exe");
if(!path.exists){
path = air.File.applicationDirectory.resolvePath("C:\Program Files\Java\jre1.8.0_71\bin\java.exe");
}
}
return path;
} else {
return air.File.applicationDirectory.resolvePath("/usr/bin/java");
}
}
Take care with the Double '\' because GitHub change '\' for '\'

@andrewbiddinger @arctwelve @beliya @digiTeam @dim00 @dongorous @EraYaN @getnathans @ghost @gildniy @gmt-it @Gothburz @Grahamhoare @hardstonepaul @iamabeagle @KennethHooper @kziper1414 @larr @Liriant @mayan62 @Made-of-Clay @nashCode @nfonte @Nordicdesign @rokkitpress @sarbjit399 @sg1010 @spa @WayneMcKenzie @xlsmile

Wow, that's a lot of people. And I've got good news for all of you! :smile:

Scout-App is no longer reliant on Adobe Air or Java! Try out the latest version and let us know what you think.

If you have any feedback, create a new issue. Closing this one.

@kziper1414 Thanks for your solution. It worked for me but even without the double slashes.

Was this page helpful?
0 / 5 - 0 ratings