Sublime Forum

Sublime Java

#1

Hello, I am a new user to sublime and I code with java but the thing is that this pops up and I am not sure what to do. If someone can point me in the right way that would be great. Thank you all!

‘javac’ is not recognized as an internal or external command,
operable program or batch file.
[Finished in 0.0s with exit code 1]
[shell_cmd: javac “”]
[dir: C:\Program Files\Sublime Text 3]
[path: C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Skype\Phone;]

0 Likes

#2

 
It seems like the Java directory @ your path variables may be incorrect.

Mine is set to:

C:\Program Files\Java\jdk1.7.0_79\bin

 



 
See this link for more info on adding directories to path:

How to set the path and environment variables in Windows

 



 
Also, I have a custom build solution you may be interested in, which is preconfigured to work with Java:

Multi-Command Builds with Input

0 Likes

#3

I believe I am in the path but what do i change?

0 Likes

#4

And another thing when i try to save the my test hello world this pops up.

0 Likes

#5

 
Did you add the C:\Program Files\Java\jdk1.7.0_79\bin that’s shown in the first line?

That’s what I thought you might be missing in my previous post.

Maybe your sublime-build config isn’t set up properly…
 



 
In addition to the PowerShell script I mentioned earlier, you can check out my previous Java setup, which is more of a standard implementation:

@ Gist

0 Likes

#6

Maybe first check the version of your jdk? (is it 1.7.0_79?)

1 Like

#7

I have added C:\Program Files\Java\jdk1.7.0_79\bin to the top and i have the right java jdk installed… i have also uninstalled and reinstalled many times but nothing will work.

0 Likes

#8

Post your sublime-build file.

0 Likes

#9

i just post that right in to its own file?

0 Likes

#10

I mean post your current JavaC.sublime-build file here so we can check it out.

0 Likes

#11

I do not have one.

0 Likes