有没有办法看看什么命令由eclipse执行? [英] Is there a way to see what commands are executed by eclipse?

查看:133
本文介绍了有没有办法看看什么命令由eclipse执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题,但是我在使用 java -jar myapp.jar 从命令行运行Java应用程序时遇到问题。

This may be a dumb question, but I'm having problems running a Java Application from the command line using java -jar myapp.jar.

当我使用菜单选择作为Java应用程序运行时,同样的应用程序在eclipse中完美运行

The same application runs perfectly inside eclipse when I use the menu to select "run as Java Application"

我可以用eclipse

Can I somehow make eclipse show me in the console exactly what it's executing so I can replicate it via command line?

推荐答案

当你从Eclipse启动应用程序时,转到调试透视图并在调试视图中找到该应用程序。右键点击调试树中的类名(在此以蓝色突出显示)

When you launch the app from Eclipse, go to the Debug Perspective and find the app in the Debug view. Right-click on the class name in the Debug tree (highlighted here in blue)

选择属性,您可以看到用于启动应用程序的命令行。

select Properties, and there you can see the command line that was used to launch the app.

这篇关于有没有办法看看什么命令由eclipse执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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