Eclipse:有没有办法让Eclipse输出运行程序的命令? [英] Eclipse: is there a way to get Eclipse to output the commands given to run your program?

查看:153
本文介绍了Eclipse:有没有办法让Eclipse输出运行程序的命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中遇到一些构建问题,因为它在eclipse中运行我的应用程序,但是由于某些原因,当尝试使用

 #> java MyClass 

由于无法找到班级。这没有任何意义,所以我想知道是否有一种方法可以将日食输出输入到jvm中以使其建立/运行。



这可能吗?



谢谢

解决方案

可以得到Eclipse使用的确切命令像这样:


  1. 在Eclipse中运行你的程序

  2. 转到Debug透视图。 li>
  3. 终止程序,或让它结束。右键点击第二行。 (终止,退出值...)并选择属性。在那里你将有完整的命令行。


I'm having some build issues with Eclipse in that it runs my app just fine in eclipse but for some reason when trying to run using

#>java MyClass

it ends up not running due to not being able to find the class. This makes no sense so I was wondering if there was a way to have eclipse output what it's feeding into the jvm to get it to build/run.

Is this possible?

Thanks

解决方案

you can get the exact command used by Eclipse like this:

  1. Run your program inside Eclipse.
  2. Go to the Debug perspective.
  3. Terminate the program, or let it end. right click on the second line. (Terminated, exit value... ) and select properties. in there you will have the full command line used.

这篇关于Eclipse:有没有办法让Eclipse输出运行程序的命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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