teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

誤字修正

2019/08/10 13:24

投稿

Masalu_Kudou
Masalu_Kudou

スコア93

title CHANGED
File without changes
body CHANGED
@@ -67,6 +67,4 @@
67
67
  client-combined-3.141.59.jar
68
68
           client-combined-3.141.59-sources.jar
69
69
 
70
- C:\Selenium\LaunchApplication.java```ここに言語を入力
70
+ C:\Selenium\LaunchApplication.java
71
- コード
72
- ```

2

指摘事項修正

2019/08/10 13:24

投稿

Masalu_Kudou
Masalu_Kudou

スコア93

title CHANGED
File without changes
body CHANGED
@@ -12,43 +12,8 @@
12
12
  コマンドプロンプト
13
13
  (eclipseでの環境も試しましたが、そもそもビルドできる環境まで整えることができませんでした)
14
14
 
15
- 2019/08/10 18:26
16
- =====================================================================
17
- ご指摘いただき、ソースを修正したところ、下記のエラーが残となりました。
18
15
 
19
16
  ◆ Error内容
20
- C:\Selenium>gcc LaunchApplication.java
21
- c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java: file format not recognized; treating as linker script
22
- c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java:1: syntax error
23
- collect2.exe: error: ld returned 1 exit status
24
-
25
- C:\Selenium>gcc LaunchApplication.java
26
- c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java: file format not recognized; treating as linker script
27
- c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java:1: syntax error
28
- collect2.exe: error: ld returned 1 exit status
29
-
30
-
31
- ◆ ソース
32
- ```LaunchApplication.java
33
- package ChromeBrowser ;
34
-
35
- import org.openqa.selenium.WebDriver;
36
- import org.openqa.selenium.chrome.ChromeDriver;
37
-
38
- public class LaunchApplication {
39
- public static void main(String[] args){
40
- System.setProperty("webdriver.chrome.driver", "C:\Selenium\lib\chomedriver.exe");
41
- WebDriver.drive=new ChromeDriver();
42
- driver.get("http://www.learn-automation.com");
43
- System.out.println(driver.getTitle());
44
- }
45
- }
46
- ```
47
- =====================================================================
48
-
49
-
50
-
51
- ◆ Error内容
52
17
  ==========================================================================================
53
18
  C:\Selenium>javac LaunchApplication.java
54
19
  LaunchApplication.java:3: エラー: パッケージorg.openqa.seleniumは存在しません

1

指摘箇所修正

2019/08/10 12:08

投稿

Masalu_Kudou
Masalu_Kudou

スコア93

title CHANGED
File without changes
body CHANGED
@@ -12,7 +12,43 @@
12
12
  コマンドプロンプト
13
13
  (eclipseでの環境も試しましたが、そもそもビルドできる環境まで整えることができませんでした)
14
14
 
15
+ 2019/08/10 18:26
16
+ =====================================================================
17
+ ご指摘いただき、ソースを修正したところ、下記のエラーが残となりました。
18
+
15
19
  ◆ Error内容
20
+ C:\Selenium>gcc LaunchApplication.java
21
+ c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java: file format not recognized; treating as linker script
22
+ c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java:1: syntax error
23
+ collect2.exe: error: ld returned 1 exit status
24
+
25
+ C:\Selenium>gcc LaunchApplication.java
26
+ c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java: file format not recognized; treating as linker script
27
+ c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe:LaunchApplication.java:1: syntax error
28
+ collect2.exe: error: ld returned 1 exit status
29
+
30
+
31
+ ◆ ソース
32
+ ```LaunchApplication.java
33
+ package ChromeBrowser ;
34
+
35
+ import org.openqa.selenium.WebDriver;
36
+ import org.openqa.selenium.chrome.ChromeDriver;
37
+
38
+ public class LaunchApplication {
39
+ public static void main(String[] args){
40
+ System.setProperty("webdriver.chrome.driver", "C:\Selenium\lib\chomedriver.exe");
41
+ WebDriver.drive=new ChromeDriver();
42
+ driver.get("http://www.learn-automation.com");
43
+ System.out.println(driver.getTitle());
44
+ }
45
+ }
46
+ ```
47
+ =====================================================================
48
+
49
+
50
+
51
+ ◆ Error内容
16
52
  ==========================================================================================
17
53
  C:\Selenium>javac LaunchApplication.java
18
54
  LaunchApplication.java:3: エラー: パッケージorg.openqa.seleniumは存在しません
@@ -66,4 +102,6 @@
66
102
  client-combined-3.141.59.jar
67
103
           client-combined-3.141.59-sources.jar
68
104
 
69
- C:\Selenium\LaunchApplication.java
105
+ C:\Selenium\LaunchApplication.java```ここに言語を入力
106
+ コード
107
+ ```