Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "ArgumentError: Error #3214" #187

Closed
Made-of-Clay opened this issue Oct 28, 2014 · 41 comments
Closed

Getting "ArgumentError: Error #3214" #187

Made-of-Clay opened this issue Oct 28, 2014 · 41 comments

Comments

@Made-of-Clay
Copy link

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_

@zdennis
Copy link
Contributor

zdennis commented Oct 28, 2014

Do you have java installed?

Zach

On Tue, Oct 28, 2014 at 1:57 PM, Adam notifications@github.com 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

@Made-of-Clay
Copy link
Author

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

@nfonte
Copy link

nfonte commented Nov 7, 2014

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

@iamabeagle
Copy link

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.

@getnathans
Copy link

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.

@sg1010
Copy link

sg1010 commented Jan 17, 2015

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){

@EraYaN
Copy link

EraYaN commented Jan 20, 2015

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

@Made-of-Clay
Copy link
Author

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.

@ghost ghost mentioned this issue Feb 5, 2015
@xlsmile
Copy link

xlsmile commented Feb 16, 2015

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!

@beliya
Copy link

beliya commented Feb 24, 2015

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

@Nordicdesign
Copy link

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.

@digiTeam
Copy link

Thanks beliya that has fixed the issue for me

@gothburz
Copy link

gothburz commented Jun 1, 2015

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");
}
}

@nashCode
Copy link

nashCode commented Jun 3, 2015

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");
}
}

@WayneMcKenzie
Copy link

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

@andrewbiddinger
Copy link

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.

@WayneMcKenzie
Copy link

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

http://mixture.io/

@andrewbiddinger
Copy link

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

@ghost
Copy link

ghost commented Jul 15, 2015

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!

@xlsmile
Copy link

xlsmile commented Jul 15, 2015

@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.

@ghost
Copy link

ghost commented Jul 15, 2015

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

@gildniy
Copy link

gildniy commented Aug 6, 2015

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

@mayan62
Copy link

mayan62 commented Aug 16, 2015

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

@atcraigwatson
Copy link

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

@beliya
Copy link

beliya commented Aug 21, 2015

Pls check your java path

On Thu, Aug 20, 2015 at 6:16 PM, Craig Waton notifications@github.com
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.

@gmt-it
Copy link

gmt-it commented Aug 21, 2015

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");
    }
  }

This was referenced Aug 21, 2015
@Grahamhoare
Copy link

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!

@spa
Copy link

spa commented Oct 17, 2015

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!

@sarbjit399
Copy link

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");
    }
  }

@ghost
Copy link

ghost commented Nov 24, 2015

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

@dtnz1
Copy link

dtnz1 commented Dec 18, 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!

@KennethHooper
Copy link

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!

@arctwelve
Copy link

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.

@dongorous
Copy link

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");
}
}

@larr
Copy link

larr commented Jan 25, 2016

Great article fixes my problem on windows 10

@kziper1414
Copy link

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!

@KennethHooper
Copy link

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!

@arctwelve
Copy link

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

@hardstonepaul
Copy link

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 ''

@TheJaredWilcurt
Copy link
Member

@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! 😄

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.

@e11world
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Scout-App 3
  
Old (Closed)
Development

No branches or pull requests