gatech-csl / jes

The Jython Environment for Students allows students to write Jython programs that can manipulate pictures, sounds, and videos.
http://mediacomputation.org/
60 stars 38 forks source link

Unable to run JES unless it is in admin mode #120

Open SamC1226 opened 6 years ago

SamC1226 commented 6 years ago

So I have a slight issue. The student here are unable to run JES unless in admin mode. If I try to run the shortcut as Admin, each and every single time the UAC appears for me to input my password. I have also tried the Task Schedule method and that is not working as well.

This is what the computers are running: Win 10 Enterprise 1803

JES Version: I have tried both 4.3 and 5.020

Java- Version 8 Update 40

Thanks in advance for any help.

Sam

mjguzdial commented 6 years ago

I've not seen this, but I do know that JES needs Java 6, not Java 8. Perhaps try the Java-included version?


From: SamC1226 notifications@github.com Sent: Wednesday, October 3, 2018 12:27:41 PM To: gatech-csl/jes Cc: Subscribed Subject: [gatech-csl/jes] Unable to run JES unless it is in admin mode (#120)

So I have a slight issue. The student here are unable to run JES unless in admin mode. If I try to run the shortcut as Admin, each and every single time the UAC appears for me to input my password. I have also tried the Task Schedule method and that is not working as well.

This is what the computers are running: Win 10 Enterprise 1803

JES Version: I have tried both 4.3 and 5.020

Java- Version 8 Update 40

Thanks in advance for any help.

Sam

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/gatech-csl/jes/issues/120, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AELfpgNolRmnCnwxpOHw86iOCfyAhIBTks5uhOV9gaJpZM4XGZjG.

SamC1226 commented 6 years ago

Thanks Mark for the reply,

I did try that as well and still nothing. Maybe I will try to roll back to Java 6. Is that even a thing anymore?

SamC1226 commented 6 years ago

Tried with Java 6 and 7. Still will not run without admin creds.

AndrewTasso commented 6 years ago

@SamC1226 I have a suspicion this might been an issue with your environment and not JES. I'm on a pretty locked down Win 10 Enterprise machine right now, and I'm able to download the java required release, extract it to a sub-folder of my Downloads folder, and run JES.exe without issue.

Where is JES installed in your environment?

SamC1226 commented 6 years ago

It lives in C:\Program Files (x86)\JES+Finch

SamC1226 commented 6 years ago

JUst tried to download it and extract to C:\Downloads:\JES and the program still will not open. This computer has Java 7 on it as a test.

AndrewTasso commented 6 years ago

@SamC1226 It looks like your install location might be the issue. JES is being run from Program Files, which is an intentionally write-protected path. Some quick tinkering shows that when first running JES it creates a handful of .class files under the ./dependencies/jython/Lib/ and ./jes/python/jes/ folders. This is what is triggering your UAC prompt. There could be other write operations that JES is doing while it's being used as well. I don't think JES is intended to be run from write-protected space. @mjguzdial could further elaborate.

A workaround would be to move JES to user space and run it from there. An accepted practice for installing applications in user space would be to put them in a folder under the AppData/Local folder.(RootDrive:\User\LoggedInUser\AppData\Local also mapped to %LOCALAPPDATA% system property)

SamC1226 commented 6 years ago

Let me try that and get back to you. I will download the java required release like you said and show you the patch where I install it

SamC1226 commented 6 years ago

OK so this is strange.. . . . I took a computer off the domain just to test ... Keep in mind, nothing has changed from last year except the version of Win to 1803 from 1709. The program worked as it should from the folder it originates in

So it has to be something in the domain stopping this from running, right? a Group Policy or something?

AndrewTasso commented 6 years ago

@SamC1226 At this point, I would assume that it's definitely something with the environment, and your hunch that GP is enforcing something would seem to be the most likely cause. (Conversely, my hunch was wrong :P) There's a chance that IT has something in place to block the execution of java applications as a security measure or something. Is it possible to run other java based applications on the system with the domain GP enforced?

SamC1226 commented 6 years ago

Well I am the only one here that could switch GP and since last year, nothing has changed. I just tested again on a different computer. This has Java 8 Update 181 ( the most recent ). Again, the JEs program will not open unless it runs as an Admin. I did a clean install into C:\Downloads and ran from there.

SamC1226 commented 6 years ago

is JES compatible with Win 10 Version 1803

SamC1226 commented 5 years ago

So weird thing just happened. I took an old version of JES ( 4.0 to be exact) and installed it to:

C:\Users\myusername\AppData\Local\Programs\JES

And the program loaded fine each time. This is a domain joined computer that would not work before and now it does.

I am going to test it out tomorrow at my school to see if this solution works.