Is there acway to specify an @-file that is not in (or near) the current directory using an absolue path?
I tried
JRE_HOME=/usr/lib/jvm/jre-17 java @/etc/properties.txt -cp bin Tesr
Error: Could not find or load main class @.etc.properties.txt
5
It should work with an absolute path. Or at least I've had it work with an absolute path on Windows in the past. Does quoting it help ("@/etc/properties.txt")?
2026-01-09 00:56:55 +00:00
Commented6 hours ago
What's an "@-file"?
2026-01-09 03:00:49 +00:00
Commented3 hours ago
@.etc.properties.txt: spot the typo.
2026-01-09 03:01:11 +00:00
Commented3 hours ago
Which OS are you actually using? Which command shell?
It should work with an absolute path. Or at least I've had it work with an absolute path on Windows in the past. Does quoting it help ("@/etc/properties.txt")?
2026-01-09 00:56:55 +00:00
Commented 6 hours ago
What's an "@-file"?
2026-01-09 03:00:49 +00:00
Commented 3 hours ago
@.etc.properties.txt: spot the typo.
2026-01-09 03:01:11 +00:00
Commented 3 hours ago
Which OS are you actually using? Which command shell?
2026-01-09 06:52:29 +00:00
Commented 7 mins ago