日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

如何将Java源代码转换为HTML页面

發布時間:2023/12/10 HTML 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何将Java源代码转换为HTML页面 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Java2HTML是將Java源代碼轉換為彩色和可瀏覽HTML頁面的工具,其步驟非常簡單。

轉換步驟

1)下載Java2HTML – http://www.java2html.com/download.html

2)解壓縮,例如“ D:\ Java2HTML”

3)編輯“ j2h.bat”文件并修改CLASSPATH變量。 確保它指向正確的j2h.jar庫。

@echo off REM Change this Script, to suit your needsREM The next few line combines the command line args into one set _j2h_parameter= :GetParameter if "%1" == "" goto end set _j2h_parameter=%_j2h_parameter% "%1" shift goto GetParameter :endREM runs Java2HTML set MBACKUP=%CLASSPATH% set CLASSPATH=D:\Java2HTML\j2h.jar;%CLASSPATH% java j2h %_j2h_parameter% set CLASSPATH=%MBACKUP%

4)將“ j2h”設置為Windows環境變量。 (如果需要全局訪問該命令)

5)發出以下命令

C:\>j2h -js D:\Java2HTML\source -d D:\Java2HTML\output

D:\ Java2HTML \ source是要轉換的Java源代碼
D:\ Java2HTML \ output是生成的HTML輸出文件夾

結果

–這是將所有TestNG源代碼轉換為HTML頁面的示例。

C:\>j2h -js D:\Java2HTML\source -d D:\Java2HTML\output Java2HTML Version 1.5 Copyright (c) 1999-2007, Enterprise Solution Consultants Limited, All Rights Reserved. New Versions available from http://www.java2html.com (type j2h with no arguments to get help) Created D:\Java2HTML\output\stylesheet.css Created D:\Java2HTML\output\front.html Created: D:\Java2HTML\output\org\testng\internal\Invoker.java.html Created: D:\Java2HTML\output\org\testng\ClassMethodMap.java.html Created: D:\Java2HTML\output\org\testng\v6\TestPlan.java.html Created: D:\Java2HTML\output\org\testng\annotations\Test.java.html Created: D:\Java2HTML\output\org\testng\internal\annotations\JDK14TagFactory.java.html Created: D:\Java2HTML\output\org\testng\annotations\AfterMethod.java.html Created: D:\Java2HTML\output\org\testng\internal\TestMethodWorker.java.html Created: D:\Java2HTML\output\org\testng\JUnitConverter.java.html Created: D:\Java2HTML\output\org\testng\internal\BaseClassFinder.java.html Created: D:\Java2HTML\output\org\testng\internal\AnnotationTestConverter.java.html Created: D:\Java2HTML\output\org\testng\junit\JUnitDirectoryConverter.java.html Created: D:\Java2HTML\output\org\testng\JUnitConverterTask.java.html Created: D:\Java2HTML\output\org\testng\remote\strprotocol\GenericMessage.java.html Created: D:\Java2HTML\output\org\testng\xml\ClassSuite.java.html Created: D:\Java2HTML\output\org\testng\internal\thread\ThreadTimeoutException.java.html Created: D:\Java2HTML\output\org\testng\internal\BaseTestMethod.java.html Created: D:\Java2HTML\output\org\testng\annotations\TestInstance.java.html 標記: HTML Java 源代碼

翻譯自: https://mkyong.com/java/how-to-convert-java-source-code-to-html-page/

總結

以上是生活随笔為你收集整理的如何将Java源代码转换为HTML页面的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。