2017-10-03 4 views
0

Mac 및 Linux에서 알 수없는 지역 행성에 대한 질문, parsecs, 직경 및 온도 단위를 사용하여 숙제 또는 학교 수업/과제 프레젠테이션을하고 있습니다. . 행성 이름과 단위에 FuzzyVariable을 적용했습니다.Jess가 Linux 및 macOS에서 FuzzyVariable 패키지를 찾지 못했거나 찾지 못했습니다.

나는 (import nrc.fuzzy.*)을 추가했습니다.

Jess reported an error in routine new 
    while executing (new nrc.fuzzy.FuzzyVariable "distanciaDeCoruscant" 0.0 30000.0 "parsec") 
    while executing definition for defglobal ?*gVarDistanciaDeCoruscant* 
    while executing (batch "/Users/UNISAL/Documents/AI/StarWars.clp"). 
    Message: Class nrc.fuzzy.FuzzyVariable not found. 
    Program text: (defglobal ?*gVarDistanciaDeCoruscant* = (new nrc.fuzzy.FuzzyVariable "distanciaDeCoruscant" 0.0 30000.0 "parsec")) at line 26 in file /Users/UNISAL/Documents/AI/StarWars.clp. 

Nested exception is: 
nrc.fuzzy.FuzzyVariable 

내가 Mac 및 Linux 제스이 패키지가없는 생각 :
;Distância do Coruscant 
(defglobal ?*gVarDistanciaDeCoruscant* = (new nrc.fuzzy.FuzzyVariable "distanciaDeCoruscant" 0.0 30000.0 "parsecs")) 

;Temperatura dos Planetas 
(defglobal ?*gVarTemperatura* = (new nrc.fuzzy.FuzzyVariable "temperatura" 0 8000 "K")) 

;Planetas Vizinhos 
(defglobal ?*gVarPlanetasVizinhos* = (new nrc.fuzzy.FuzzyVariable "distanciaPlanetasVizinhos" 0.0 400000.0 "d")) 

;Raio em termos de unidades coruscantenses 
(defglobal ?*gVarTamanho* = (new nrc.fuzzy.FuzzyVariable "tamanho" 0 500 "EU")) 

;Quando o planeta foi descoberto 
(defglobal ?*gVarDescobertaTempo* = (new nrc.fuzzy.FuzzyVariable "descoberta" 50000BBY 400ABY)) 

(call nrc.fuzzy.FuzzyValue setMatchThreshold 0.1) 

그리고 터미널

는, 제스 오류를했다. Mac 및 Linux와 호환되는 누락 된 패키지를 추가 할 수 있습니까?

좋은 성적을 얻으려면 선생님에게 내 workclass/assignment 프레젠테이션을 전달해야합니다.

당신은 전체 문서를 확인할 수 있습니다 https://gist.github.com/gusbemacbe/8ad836256edcfb5edbffe206cad6c9e8

+0

CLASSPATH에 'nrc.fuzzy.FuzzyVariable'이 포함되도록 설정되지 않았을 가능성이 큽니다. – laune

답변

0

제스 분포 FuzzyJ를 포함하지 않는 기본을; 별도로 설치하여 classpath에 포함시킨 다음 표준 Jess.Main 대신 FuzzyMain으로 시작해야합니다. 강사가이 모든 것을 말해 줬어야 했어. FuzzyJ가없는 경우 Jess 웹 사이트의 "User Contributions"페이지 (http://www.jessrules.com/contributions/)에서 다운로드 할 수 있습니다.

+0

설치 지침을 읽었지만 혼란 스럽습니다. fuzzyJ12.jar을 추출하고 클래스 중 하나를 복사하라고 요청합니까? 또는 fuzzyJ12.jar의 클래스 경로를 clp 파일에 추가하면됩니까? –

+0

"classpath"는 프로그램을 시작할 때 Java에 제공하는 정보를 말합니다. Jess 스크립트가 읽힐 때까지는 너무 늦었습니다. jar 파일은 추출하지 않습니다. –

+0

선생님이 실패합니다. Jess에게 Fuzzy jar를 추가하려면 Eclipse와 JessIDE 플러그인을 사용해야하지만 JessIDE 기능과 플러그인을 Eclipse의 기능 및 플러그인 폴더에 복사하면 JessIDE가 나타나지 않습니다. 나는'myusername/.p2/pool/plugins'과'Eclipse.app/... Eclipse/plugins'을 넣었습니다. –

관련 문제