0

I am using Eclipse Juno, trying to use TestNG and Selenium to do some testing. When I write my java file to run the test, as per instruction, I should be able to right click and then see "run as" with an arrow and some options, including TestNG - but I get no options, and cannot see TestNG. I also get the following error but am not clear if its related:

An internal error occurred during: "Compute launch button tooltip". Bad version number in .class file

Can anyone help?

P.s. someone will probably say "you have the wrong version of the jdk or a mismatched version" which may be true but can you tell me how/where to check / change this?

4

2 に答える 2

0

Java プロジェクトを右クリックし、[ビルド パス] -> [ビルド パスの構成] を選択します。jdk のバージョンと Java コンパイラのバージョンを確認します。コンパイラのバージョンを jdk のバージョンに変更します。プロジェクトをクリーンアップしてビルドします。

于 2013-01-23T03:35:12.837 に答える
0

Java プロジェクトに移動し、右クリックしてBuild Path>Configure Build Path..に移動し、[ライブラリ] タブを選択します。プロジェクトで使用するJavaライブラリを設定できるのはそこです。そして、おそらくプロジェクトをクリーンアップして再構築したいと思うでしょう。

于 2013-01-23T01:55:58.930 に答える