Bingo !
Type: Posts; User: Amoranemix
In System Environment Variables I had created the variable MAVEN_OPTS with value
-Xms256m – Xmx512m
Now, what could the Command Prompt mean with “Unrecognized option: -” ?
No, extracting in a folder does not cause a program to appear on the Window's application list. I don’t know what an install does either, except add a program to Window’s application list. Apparently...
OK, thanks. I shall have a look.
Does the failure to launch a JVM likely due to a problem with Maven rather than with Java ?
I downloaded the file openjdk-18.0.2.1_windows-x64_bin.zip from...
Dear community,
Sorry, but I again don’t know what the appropriate forum for my problem is.
I was following a Maven fundamentals course on Pluralsight, but I got stuck there (it didn’t work)....
I am in C:\Users\Knarf>
I removed %JAVA_HOME%\bin from the PATH variable.
Yet the command java --version still works.
I also removed %MAVEN_HOME%\bin from the PATH variable.
The command mvn...
The Command prompt was executing when commands starting with java worked.
Is there on this forum a good place to ask about Maven and if so, where ?
What program provided that path ?
Yes, but I still don’t understand why Java worked without the path having been indicated in the PATH variable.
Further, I keep following along with the instructions of the Pluralsight course...
OK. Thanks for your help.
I again set MAVEN_HOME to C:\Dev\apache-maven-3.8.6
I ask google how to add a value to the PATH for Windows.
There is no PATH variable.
There is a Path variable (see OP; I have removed the last...
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
...
Thanks for your response.
Now Maven is in
C:\Dev\apache-maven-3.8.6
It does not contain an .exe file, so I don’t know how to run it.
The System variable MAVEN_HOME is
C:\Program...
I have still the commend prompt window open, so I can copy the instruction I gave :
C:\Users\Knarf\Documents\School\Informatica\Software...
Sorry, I don’t know what the appropriate forum for this question is.
I am following a course Maven Fundamentals on Pluralsight.
I installed Spring Tools Suite 4 and Maven.
Maven I installed on...
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...