2016-10-28 2 views
0

Following versucht hinzuzufügen \ Testworkspace \ protoc.exe wo EXE-Datei mit Wohnsitz ist.wie protoc.exe in Pfad von Windows 7

Method1

 1.PROTO_HOME = "D:\TestWorkSpace\" 
     2.Path = "%PROTO_HOME%\protoc.exe" 

Method2

 1.PROTO_HOME = "D:\TestWorkSpace\" 
     2.Path = "%PROTO_HOME%\protoc" 

aber noch nicht protoc.exe in Klassenpfad hinzuzufügen. Ich verwende ein Projekt, in dem Maven-Projekt importiert werden soll, vor der Entwicklung, und Voraussetzung ist das Hinzufügen von protoc.exe im Klassenpfad.

Bitte geben Sie Ihren wertvollen Vorschlag. Vielen Dank.

Antwort

2

Sie meinen, Sie wollen Protoc zum "PATH" hinzufügen, nicht zum Klassenpfad ?!

Verwendung:

PROTO_HOME = "D:\TestWorkSpace\" 
    2.Path = "%PROTO_HOME%" 

Und Sie in der Lage sind protoc.exe ohne Pfad zu nennen