You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

# Math Paper Generation System Startup Script
# Automatically set UTF-8 encoding and start the program
Write-Host "启动数学试卷生成系统..." -ForegroundColor Green
# Set console encoding to UTF-8
Write-Host "设置字符编码为UTF-8..." -ForegroundColor Yellow
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
[Console]::InputEncoding = [System.Text.Encoding]::UTF8
Write-Host "编码设置完成!" -ForegroundColor Green
Write-Host ""
# Display available user accounts
Write-Host "=== 可用用户账号 ===" -ForegroundColor Cyan
Write-Host "小学用户: 张三1, 张三2, 张三3, zhangsan1, zhangsan2, zhangsan3" -ForegroundColor White
Write-Host "初中用户: 李四1, 李四2, 李四3, lisi1, lisi2, lisi3" -ForegroundColor White
Write-Host "高中用户: 王五1, 王五2, 王五3, wangwu1, wangwu2, wangwu3" -ForegroundColor White
Write-Host "测试账号: test123, 测试" -ForegroundColor White
Write-Host "===============================" -ForegroundColor Cyan
Write-Host ""
# Change to project root directory
Set-Location (Join-Path $PSScriptRoot "..\..")
# Start Java program
Write-Host "正在启动程序..." -ForegroundColor Green
java -cp src com.mathpaper.Main