From f5ee51fb58fc9796a41b9c23be05ba1f5a3d4450 Mon Sep 17 00:00:00 2001 From: Pyja Erskell Date: Tue, 29 Jun 2021 15:27:50 +0900 Subject: [PATCH] Jep 3.7.1 simple test on Windows --- .../Jep/3.7.1/190101-1432-jep-corretto-8.bat | 18 ++++++++++++++++++ .../Salak/Jep/3.7.1/190101-1445-hello.py | 16 ++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1432-jep-corretto-8.bat create mode 100755 Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1445-hello.py diff --git a/Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1432-jep-corretto-8.bat b/Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1432-jep-corretto-8.bat new file mode 100755 index 0000000..6adcccb --- /dev/null +++ b/Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1432-jep-corretto-8.bat @@ -0,0 +1,18 @@ +@ECHO OFF +SETLOCAL + +SET __SAC_KAPA_HM=C:\ProgramData\Bichon Frise\Kapa +SET __SAC_JAVA_HM=%__SAC_KAPA_HM%\19.11.01\Vindue\x64\Amazon\Corretto\8.232.09.1 +SET __SAC_PYTHON_HM=%__SAC_KAPA_HM%\19.01.22\Vindue\x64\Anaconda\5.1.0 +SET __SAC_JEP_PN=%__SAC_PYTHON_HM%\Lib\site-packages\jep +SET __SAC_JEP_JAR_FN=%__SAC_JEP_PN%\jep-3.7.1.jar + +SET PYTHONHOME=%__SAC_PYTHON_HM% +SET PATH=%PYTHONHOME%;%SystemRoot%\System32 + +SET __SAC_ARGS=%* +IF "%__SAC_ARGS%"=="" ( + SET __SAC_ARGS="%__SAC_JEP_PN%\console.py" +) + +"%__SAC_JAVA_HM%\bin\java.exe" -classpath "%__SAC_JEP_JAR_FN%" -Djava.library.path="%__SAC_JEP_PN%" jep.Run %__SAC_ARGS% diff --git a/Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1445-hello.py b/Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1445-hello.py new file mode 100755 index 0000000..bf4579f --- /dev/null +++ b/Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1445-hello.py @@ -0,0 +1,16 @@ +import jep +import platform +from java.lang import System + +def gf_jcls (x_it) : return jep .findClass (x_it) + +CjArrayList = gf_jcls ('java.util.ArrayList') + +def gf_2ja ( * x_args ) : # to (j)ava (a)rray + fu_al = CjArrayList () + for bu2_it in x_args : fu_al .add (bu2_it) + return fu_al .toArray () + +print ( 'Java version (자바 버전) => ' + System .getProperty ("java.version") ) +System.out .printf ( 'Python version (파이썬 버전) => %s\n', gf_2ja ( platform .python_version () ) ) +System.out .println ( "Hello Python (안녕 파이썬) !!!" )