How can I get Python and Java?

October 15, 2011 – 4:00 pm

Hello. I am just wondering how I can get Python/Java and a compiler on my Windows/Mac computer. (doesnt matter) Please include links/instructions. Thanks!

Related posts:

  1. How do I know if java compiler is installed?
  2. What’s a good python compiler for vista that will compile any python code I write to an executable file?
  3. How to compile python files into exe?
  4. How do I compile my python script to an executable?
  5. How to get Python to work on Windows 7 starter?
  6. What is a good java compiler for a beginner in computer science?
  7. Blender for Mac do I need to download Python?
  8. Can I use Python to program Computer Games?
  9. Python: Getting files, downloading them, and moving them?
  10. Already know Java, should I learn C# or Python next?
  1. 2 Responses to “How can I get Python and Java?”

  2. I just wrote this out for a friend so you might as well have a copy – it’s how you set Python up for Windows. Java is probably very similar, just do the same process, switching Python for Java, i imagine. Or get a text editor like Netbeans while has a "run" button that’ll do it for you.

    If you don’t understand my following tutorial, you can always just download python then go to the directory where it installed and double click python.exe

    First install it from python.org

    System Properties -> Advanced tab -> Environment variables -> System variables block -> Find "Path" variable and edit -> add a semi-colon to the end if there isn’t one -> add the directory that contains python.exe (mines is C:\Program Files\Python27\)
    Now open a terminal – Start -> Run -> cmd then type python in the prompt
    If that doesn’t work, you’ve done something wrong, double check.
    If you want to run python on a specific file instead, type python filename.py in the correct directory (get their using "cd" navigation).

    You’ll probably want to make a batch file: python.bat (say). Just type in there whatever you would in the command prompt. For example, instead of having to run cmd every time then cd to the directory, you can just double click the .bat and it’ll execute a command prompt there. So you could make a python folder in your documents, then write a .bat file in that folder that just directs the prompt to that folder. from then you just have to cd /folder to the next directory (if it’s not in the python folder root).
    For example, I have a batch file in my "python" folder that says this:

    cd C:\Users\Pinch\"My Documents"\#HOME\Programs\Python
    python test1.py
    pause

    (pause stops it from disappearing, press enter to continue, a new lines is equivilent of an "enter")
    That .bat automatically runs a file, printing the output in the prompt, so you could just do that and edit the filename whenever you start on a different file.
    If I then wanted to access something in the coursework directory in python, I’d type cd coursework (i think), cba checking.

    By Chris Brown on Oct 15, 2011

  3. Netbeans for java

    Google "python compiler" and/or "python editor" for python.

    By Joep on Oct 15, 2011

Sorry, comments for this entry are closed at this time.