Pages: 1
  Print  
Author Topic: Issues running ENIGMA in school  (Read 31975 times)
Offline (Male) HitCoder
Posted on: February 27, 2015, 06:17:45 am

Member
Location: Oxford, England
Joined: Aug 2014
Posts: 157

View Profile WWW Email
I decided I'd try running Enigma whilst I was at school, not sure if the error is due to administrative privileges, but here's the log

Code: [Select]
Operating System: Windows 7
Version: 6.1
Architecture: amd64

Java Vendor: Oracle Corporation
Version: 1.7.0_65

Available processors (cores): 2
Free memory (bytes): 39582808
Maximum memory (bytes): 939524096
Total memory available to JVM (bytes): 63438848

File system root: C:\
Total space (bytes): 79499882496
Free space (bytes): 29201772544
Usable space (bytes): 29201772544

File system root: D:\
Total space (bytes): 0
Free space (bytes): 0
Usable space (bytes): 0

File system root: E:\
Total space (bytes): 0
Free space (bytes): 0
Usable space (bytes): 0

File system root: F:\
Total space (bytes): 0
Free space (bytes): 0
Usable space (bytes): 0

File system root: G:\
Total space (bytes): 0
Free space (bytes): 0
Usable space (bytes): 0

File system root: H:\
Total space (bytes): 7755034624
Free space (bytes): 6958698496
Usable space (bytes): 6958698496

File system root: L:\
Total space (bytes): 733905678336
Free space (bytes): 46595768320
Usable space (bytes): 46595768320

File system root: N:\
Total space (bytes): 34356961280
Free space (bytes): 28098347008
Usable space (bytes): 28098347008

File system root: S:\
Total space (bytes): 1073741824
Free space (bytes): 322502451200
Usable space (bytes): 141459456

File system root: T:\
Total space (bytes): 1073741824
Free space (bytes): 322502451200
Usable space (bytes): 141459456

File system root: Z:\
Total space (bytes): 1073741824
Free space (bytes): 322502451200
Usable space (bytes): 141459456

Stack trace:
org.lateralgm.file.GmFormatException: java.io.IOException: Cannot run program "mingw32-make.exe" (in directory "H:\ENIGMA\enigma-dev"): CreateProcess error=2, The system cannot find the file specified
at org.enigma.EnigmaRunner.make(EnigmaRunner.java:312)
at org.enigma.EnigmaRunner$3.run(EnigmaRunner.java:173)

I was going to use Enigma for an ICT project :/
Logged
Computer Scientist, Programmer in C#, C/C++, Java, Python, GML, EDL, and more. Hobbyist musician.
DISCORD: HitCoder#4530
Offline (Unknown gender) TheExDeus
Reply #1 Posted on: February 27, 2015, 07:35:28 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
How did you install ENIGMA? How did you run it?

Because it clearly cannot find mingw32-make. It's packaged in MinGW that comes with ENIGMA Portable Zip. When you run trough ENIGMA.exe the compilers binaries (mingw/bin) is added to PATH, so ENIGMA/LGM can find it. You can try adding it to PATH manually. If you didn't install ENIGMA trough Portable Zip then you need to install mingw (or compiler in general).
Logged
Offline (Male) HitCoder
Reply #2 Posted on: February 27, 2015, 07:44:34 am

Member
Location: Oxford, England
Joined: Aug 2014
Posts: 157

View Profile WWW Email
I used the jar file. It was in the portable zip, and I can't use the EXE as it is bat-based and batch files are disabled. Is it possible to use a vbscript to run Enigma.exe?
Logged
Computer Scientist, Programmer in C#, C/C++, Java, Python, GML, EDL, and more. Hobbyist musician.
DISCORD: HitCoder#4530
Offline (Unknown gender) TheExDeus
Reply #3 Posted on: February 27, 2015, 01:25:29 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
If you run via .jar then the PATH is not set. ENIGMA.exe itself is not a batch file, but I guess you mean the fact that it launches a program makes it unusable? It doesn't use batch file either.

First you must try launching via cmd. Open cmd, cd to the folder you have enigma (my case "C:\ENIGMA_InstallZip\enigma-dev"). Then type: "java -jar lateralgm.jar". If I just use the .jar (double click) then it fails to even find the .dll.

If it still cannot find the compiler, you must modify the PATH. Try doing it trough "My Computer / Properties / Advanced / Environment Variables". But if you don't have Admin rights, then you can modify it temporarilly in cmd via "set PATH=C:\ENIGMA_InstallZip\mingw32\bin;C:\ENIGMA_InstallZip\git\bin;%PATH%". Then launch the .jar via console like I showed above. The "set PATH" shouldn't require admin rights, as it will only work for that console and any programs you open trough that console. If you close it or log out, the path should return to normal.

You can also try powerShell and launch trough that (it fixes some compile errors for me sometimes).
Logged
Offline (Male) HitCoder
Reply #4 Posted on: February 27, 2015, 01:52:43 pm

Member
Location: Oxford, England
Joined: Aug 2014
Posts: 157

View Profile WWW Email
1) CMD is blocked in my school.
2) PowerShell isn't even available there.
3) Everything is locked down on the computers, I can't right click on anything unless it's on a web browser, word processor, or any other 3rd party application.

It looks like I'll have to stick with Appshed. Blegh.
Logged
Computer Scientist, Programmer in C#, C/C++, Java, Python, GML, EDL, and more. Hobbyist musician.
DISCORD: HitCoder#4530
Offline (Unknown gender) TheExDeus
Reply #5 Posted on: February 27, 2015, 02:18:28 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Then I sadly don't see a way of you running ENIGMA on that computer - or any program for that matter.
Logged
Offline (Unknown gender) Darkstar2
Reply #6 Posted on: February 27, 2015, 10:46:02 pm
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
Why don't you ask an admin permission and install ENIGMA, perhaps they can assist getting you the program installed then they can apply the fort knox security key and lock everything up :D
Logged
Offline (Unknown gender) TheExDeus
Reply #7 Posted on: February 28, 2015, 06:54:44 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Yeah, they clearly don't want users to install or run anything. If those PC's are meant for computer programming, then they should allow users to install new tools. The only thing you actually need is to add two paths to PATH: "set PATH=C:\ENIGMA_InstallZip\mingw32\bin;C:\ENIGMA_InstallZip\git\bin;%PATH%" (your paths might differ). If you show to them that both of these paths contain only GIT version control software and GCC compiler, then I don't think they will object too much.
Logged
Offline (Unknown gender) Darkstar2
Reply #8 Posted on: February 28, 2015, 01:37:35 pm
Member
Joined: Jan 2014
Posts: 1238

View Profile Email
Yeah, they clearly don't want users to install or run anything.

Yeah and there is a reason for that and well justified too, however a student should be able to get permission for approved programs.

Quote
If those PC's are meant for computer programming, then they should allow users to install new tools.

Exactly, they can allow him to install a free source, ENIGMA and then he can sign the release form :P  I mean some schools have GMS installed FFS  :D

Logged
Pages: 1
  Print