That does not looks like a native Linux program. Try using wine. Please type file um. However, likely the generated binaries are for one reason or other Windows binaries. Also, if the program is public, you can post the link to the sources. Or just post the makefile here. Show 1 more comment. Active Oldest Votes. Improve this answer. This is the most common reason I've seen for this problem, using file will identify this quite quickly.
So there is no solution to this? You can not run Software for other Instruction set as native Programs. Add a comment. For Googlers: bit or bit? Check with file yourbinary Permission to execute? Ravan 8, 17 17 gold badges 55 55 silver badges 79 79 bronze badges. Onurhan Onurhan 71 1 1 silver badge 5 5 bronze badges. Mark Amery Mark Amery 1 1 gold badge 1 1 silver badge 12 12 bronze badges.
Michael Davidson Michael Davidson 1 1 bronze badge. Pocketsand Pocketsand 8 8 bronze badges. Sign up or log in Sign up using Google. It contains so many variants of the questioned filename commonrt, commonKT, commanKT, commonRT , that it's not even clear what was asked.
Also interesting: Does the last comment of Sijith mean that it is answered? And why did user receive bountys? Show 1 more comment.
Active Oldest Votes. To execute a binary, use:. If you get an error: bash:. Improve this answer. Frazer Frazer 4 4 silver badges 2 2 bronze badges. How to run the binary which is generated using the tool chain? Add a comment. To execute a binary or. Zuko Zuko 2, 26 26 silver badges 29 29 bronze badges. The volume it's on is mounted noexec. Ignacio Vazquez-Abrams Ignacio Vazquez-Abrams k gold badges silver badges bronze badges.
Jobin 5, 5 5 gold badges 33 33 silver badges 51 51 bronze badges. Jagannath Jagannath 3, 23 23 silver badges 28 28 bronze badges. Can you please give some info what the error was about?
This is an answer to craq : I just compiled the file from C source and set it to be executable with chmod. Community Bot 1 1 1 silver badge. June7 Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Perhaps they use a different Java compiler that generates executable code, but then this is not the standard compiler the rest of the world uses. It is hard for us to answer when your school is apparently doing it different; either that or you have misunderstood something. The only way to know is to ask at School. What Tom and I have said is correct; which was why gave you the link. BrianTompsett Thanks for trying to help.
We already compile how "the world" does it. My question was about creating an executable jar file using a makefile. My question has been answered. Add a comment. Active Oldest Votes. You need to use Java to run it for you: java -jar HellorWorld I also suggests to change the above code to: jar cvfm HelloWorld. Improve this answer. Tom Tom Thanks Tom, are there any changes I can make so as to run it as a binary file.
Have you checked that their HelloWorld is? It might be a simple shell script that just calls the real Java program.
Their HelloWorld is the same I provided above. I'll check on that.
0コメント