从vb.net读取Java编译时错误 [英] Read java compile time errors from vb.net

查看:88
本文介绍了从vb.net读取Java编译时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了一个程序,可以从vb.net程序编译Java文件.我希望在vb.net的文本框中收到编译时错误.可能吗? (文本板"编辑器包含此功能),请帮帮我.

我的编译方法
,,,,,,,,,,,,,,, 、、、、
1.通过vb.net
创建compile.bat文件 compile.bat的代码...

@ECHO OFF
c:\ jdk1.3 \ bin \ javac.exe C:\ Sample.java
暂停

2.使用shell()命令运行.bat文件
,,,,,,,,,,,,,,, 、、、、

非常感谢帮助者...


L.Gopinath
*已删除邮件*

I have written a program to compile a java file from vb.net program. I wish to receive the compile time errors to a textbox of vb.net. Is it possible? (The Textpad editor contains this facility) please help me.

My method to compile
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
1. Create compile.bat file through vb.net
compile.bat''s code...

@ECHO OFF
c:\jdk1.3\bin\javac.exe C:\Sample.java
pause

2. Use shell() command to run the .bat file
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

My advanced thanks to the helpers...


L.Gopinath
*REMOVED MAIL*

推荐答案

将您的javac命令更改为以下内容:
Change your javac command to something like:
c:\jdk1.3\bin\javac.exe C:\Sample.java > compile.txt


然后,编译的所有输出将进入compile.txt,您的程序可以根据需要读取和处理该文件.


All output from the compilation will then go to compile.txt which your program can read and process as required.


这篇关于从vb.net读取Java编译时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆