OK. Thanks for your help.
Type: Posts; User: Amoranemix
OK. Thanks for your help.
OK, so I instructed
C:\Users\Knarf\Documents\School\Informatica\Software Testing\IdeaProjects\HelloWorld2>java -jar HelloWorld2.jar
Response :
Error: Unable to access jarfile HelloWorld2.jar
...
I have still the commend prompt window open, so I can copy the instruction I gave :
C:\Users\Knarf\Documents\School\Informatica\Software...
I’ll give it one more try.
I am in
C:\Users\Knarf\Documents\School\Informatica\Software Testing\IdeaProjects\HelloWorld2\out\production\HelloWorld2\MyPackage
It contains
29/08/2022 11:09 ...
I still don’t know how to create a working standalone jar-file from my simple program using the JDK alone. Apparently that is overly complicated if you are not doing that frequently.
So, I try it...
In Windows Explorer Main.class file is the MyPackage folder.
“The jar command needs to have the path to the class file like with the java command.”
What class path with what java command?
Other...
This is the code from the Main class :
package MyPackage;
public class Main {
public static void main(String[] args) {
HelloWorldCreator hello = new HelloWorldCreator();
...
Apparently my JRE is not installed correctly because when I double-click a jar file Windows asks me what I would like to open it with.
The Pluralsight course also explained how one is supposed to...
Thanks for your help.
The folder in which I tried to run the classes is :
C:\Users\Knarf\IdeaProjects\HelloWorld\src\com\example\helloworld
That is where they are located.
Indeed. Moving 3...
Dear community,
One of the frustrating problems I find with programming is when the compiler or runtime environment can’t find stuff when the location to me is blatantly obvious.
I have...