I've looked at various sites, several questions (including in stackoverflow itself) I searched a lot and could not get the Sublime Text 2 error yet:
; Save with Encoding -> UTF-8. My JDK is right in the variable[Decode error - output not utf-8]
PATH
, I have a variable called JAVA_HOME
with value (C: \ Program Files \ Java \ jre8 \ bin).
My JavaC.sublime-build is currently as it normally is:
{
"cmd": ["javac", "$file"],
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
I changed the JavaC.sublime-build:
{
"cmd": ["javac", "$file_name"], <- De "$file" para "$file_name"
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
Now it is compiling without any error but when I put it:
{
"cmd": ["javac", "$file_name"],
"cmd": ["java", "$file_base_name"], <- Adicionei Está Linha
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"selector": "source.java"
}
He gave the error again [Decode error - output not utf-8]
Translating, for now I can only generate .class, but my purpose is to generate .class and run it as well.