kongdeqiang
2024-11-17 50db7a8a4ce92dc140a82f9ff2c8fed6f0760959
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
if not exist target mkdir target
if not exist target\classes mkdir target\classes
 
 
echo compile classes
javac -nowarn -d target\classes -sourcepath jvm -cp "d:\2023new\c2java\jni4net-0.8.8.0-bin\lib\jni4net.j-0.8.8.0.jar"; "jvm\ledshow\CodeUtil.java" "jvm\ledshow\LedBean.java" "jvm\ledshow\ResultData.java" 
IF %ERRORLEVEL% NEQ 0 goto end
 
 
echo LedShow.j4n.jar 
jar cvf LedShow.j4n.jar  -C target\classes "ledshow\CodeUtil.class"  -C target\classes "ledshow\LedBean.class"  -C target\classes "ledshow\ResultData.class"  > nul 
IF %ERRORLEVEL% NEQ 0 goto end
 
 
echo LedShow.j4n.dll 
csc /nologo /warn:0 /t:library /out:LedShow.j4n.dll /recurse:clr\*.cs  /reference:"D:\2023new\c2java\LedShow\LedShow\bin\x64\Debug\LedShow.dll" /reference:"D:\2023new\c2java\jni4net-0.8.8.0-bin\lib\jni4net.n-0.8.8.0.dll"
IF %ERRORLEVEL% NEQ 0 goto end
 
 
:end