Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Command prompt won't recognize 'java' as a valid command


  • Please log in to reply

#1
Daniel Shoaf

Daniel Shoaf

    New Member

  • Member
  • Pip
  • 4 posts

I am trying to run a server for a game (Attack of the B-Team) for a few friends for them to connect to while they are away vacationing for the summer. However, I've hit a roadblock. Whenever I launch the launcher, command prompt properly launches and then tell me that 'java' is not an internal or external command, object, or batch file. What should I do/ how should I go about fixing this? Command prompt message and basic system properties included. I am open to allow someone remote access through TeamViewer or something if that would be the advisable way to go.

Attached Thumbnails

  • cmd_java.png
  • properties.png

  • 0

Advertisements


#2
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts

Java needs to be in the PATH environment variable. See here: http://www.minecraft.../#entry21572944


  • 1

#3
Daniel Shoaf

Daniel Shoaf

    New Member

  • Topic Starter
  • Member
  • Pip
  • 4 posts

Java needs to be in the PATH environment variable. See here: http://www.minecraft.../#entry21572944

One problem down, another pops up... But thanks so much! Now it says this:

Attached Thumbnails

  • cmd_java2.png

  • 0

#4
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts

Download and install the 64bit version of Java perhaps?  That's one of the fixes given here: http://stackoverflow...ject-heap-error


  • 0

#5
Daniel Shoaf

Daniel Shoaf

    New Member

  • Topic Starter
  • Member
  • Pip
  • 4 posts

I tried that. No good. Would you be open to remotely accessing my computer to take control of it and fix the problem? I feel like you would have much more success than I would.


  • 0

#6
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts

I'd rather not do any remoting, sorry. I don't even use Java. Haven't had it installed on my computer for 6 moths or more. I'm not a gamer so have no need for it (yet).

 

Read through this one. http://stackoverflow...nough-space-for

 

Does any of that apply? Is there a .ini file for the game that you can modify to make sure it's running the 64 bit Java and not the 32 bit?


  • 0

#7
Daniel Shoaf

Daniel Shoaf

    New Member

  • Topic Starter
  • Member
  • Pip
  • 4 posts

You've done it. Consider this problem resolved. Thank you so much.


  • 0

#8
Ztruker

Ztruker

    Member 5k

  • Technician
  • 7,091 posts

Great! Thanks for letting me know. What exactly did you do to fix it?


  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP