実現したいこと
githubからインストールしたghidra.batを開きたい java --versionでは
java 22.0.2 2024-07-16
Java(TM) SE Runtime Environment (build 22.0.2+9-70)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)となる。
発生している問題・分からないこと
ghidra.batをwindowsのコマンドプロンプトで開こうとしたが、以下のようなエラーが表示される。
エラーメッセージ
error
1Microsoft Windows [Version 10.0.22000.2416] 2(c) Microsoft Corporation. All rights reserved. 3 4C:\Users\tazu0>C:\Users\tazu0\OneDrive\デスクトップ\ghidra_11.1.2_PUBLIC_20240709\ghidra_11.1.2_PUBLIC\ghidraRun.bat 5'java -cp "C:\Users\tazu0\OneDrive\デスクトップ\ghidra_11.1.2_PUBLIC_20240709\ghidra_11.1.2_PUBLIC\support\LaunchSupport.jar" LaunchSupport "C:\Users\tazu0\OneDrive\デスクトップ\ghidra_11.1.2_PUBLIC_20240709\ghidra_11.1.2_PUBLIC\support\.." -jdk_home -save' は、内部コマンドまたは外部コマンド、 6操作可能なプログラムまたはバッチ ファイルとして認識されていません。 7****************************************************************** 8JDK 17+ (64-bit) could not be found and must be manually chosen! 9****************************************************************** 10Enter path to JDK home directory (ENTER for dialog): 11 12 13 14
該当のソースコード
ghidraRun.bat
1#!/usr/bin/env bash 2 3#---------------------------------------- 4# Ghidra launch 5#---------------------------------------- 6 7# Maximum heap memory may be changed if default is inadequate. This will generally be up to 1/4 of 8# the physical memory available to the OS. Uncomment MAXMEM setting if non-default value is needed. 9#MAXMEM=2G 10 11# Resolve symbolic link if present and get the directory this script lives in. 12# NOTE: "readlink -f" is best but works on Linux only, "readlink" will only work if your PWD 13# contains the link you are calling (which is the best we can do on macOS), and the "echo" is the 14# fallback, which doesn't attempt to do anything with links. 15SCRIPT_FILE="$(readlink -f "$0" 2>/dev/null || readlink "$0" 2>/dev/null || echo "$0")" 16SCRIPT_DIR="${SCRIPT_FILE%/*}" 17 18# Launch Ghidra 19"${SCRIPT_DIR}"/support/launch.sh bg jdk Ghidra "${MAXMEM}" "" ghidra.GhidraRun "$@" 20
試したこと・調べたこと
- teratailやGoogle等で検索した
- ソースコードを自分なりに変更した
- 知人に聞いた
- その他
上記の詳細・結果
分からなかった。まったく。
補足
特になし

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2024/08/11 00:51
2024/08/11 00:58
2024/08/11 01:13
2024/08/11 01:22
2024/08/11 03:15
2024/08/11 03:59
2024/08/11 05:05
2024/08/11 06:06 編集