“EclipseのRun Configrationのバグ取り” “How to debug Run Configration Error on Eclipse”

VaioからシステムバックでクローンしたUbuntuをimacで使っていて、移植から、エクリプスのJava実行でエラーが出ていた。いわゆる

main class not found error
(Could not find or load main class)

だった。

 

 

I’m using cloned Ubuntu by SystemBack( Linux OS backup software ) from Sony Vaio(note) to Apple iMac (late 2009, intel corei7-2600 3.40GHz Quad core, Memory 12GB(one of 4GB RAM is broken now, HDD 1TB)

And since cloning, Eclipse generated Running error when executing, that is to say

main class not found error
(Could not find or load main class)

 

 

一時しのぎの方法は、パッケージエクスプローラーから、ファイルを右クリックして、コンテキストメニューから

Run as Java application

を選択。

${WORKSPACE}/.metadata/.plugins/org.eclipse.debug.core/.launches

以下の起動設定ファイルを消去することで解決できた。

Oxygenを使っていて、Photonを試したら動いたので、心動いたが、Oxygen続けようかな。

 

 

Temporarily, choose “Run as Java application” by right clicking file at Package Explorer will solve this problem.

${WORKSPACE}/.metadata/.plugins/org.eclipse.debug.core/.launches

Deleting files below this path will clear “Launch configuration” and solved this problem certainly.

Just using alternative Photon version solved this problem from Oxygen version, and I once thought migrate to Photon, but I will continue Oxygen version.

Occasionally Project > Clean will solve this.

参考サイト
Reference sites

英語
English

三種類のmain class not found errorの解決法
http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html

実行コンフィグファイルの消し方
https://stackoverflow.com/questions/9247089/how-can-i-clean-up-eclipse-run-configurations

日本語はここ
Japanese

http://moki-mokki.blogspot.com/2012/06/eclipserun-configuration.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s