Search:

Type: Posts; User: Amoranemix

Search: Search took 0.08 seconds.

  1. Re: Java installed but not listed in Windows 10 Apps

    Bingo !
  2. Re: Java installed but not listed in Windows 10 Apps

    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: -Ē ?
  3. Re: Java installed but not listed in Windows 10 Apps

    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...
  4. Re: Java installed but not listed in Windows 10 Apps

    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...
  5. Java installed but not listed in Windows 10 Apps

    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)....
  6. Replies
    13
    Views
    1,558

    Re: Mvn (Maven) not recognized as command

    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...
  7. Replies
    13
    Views
    1,558

    Re: Mvn (Maven) not recognized as command

    The Command prompt was executing when commands starting with java worked.
  8. Replies
    13
    Views
    1,558

    Re: Mvn (Maven) not recognized as command

    Is there on this forum a good place to ask about Maven and if so, where ?


    What program provided that path ?
  9. Replies
    13
    Views
    1,558

    Re: Mvn (Maven) not recognized as command

    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...
  10. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    OK. Thanks for your help.
  11. Replies
    13
    Views
    1,558

    Re: Mvn (Maven) not recognized as command

    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...
  12. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    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
    ...
  13. Replies
    13
    Views
    1,558

    Re: Mvn (Maven) not recognized as command

    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...
  14. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    I have still the commend prompt window open, so I can copy the instruction I gave :
    C:\Users\Knarf\Documents\School\Informatica\Software...
  15. Replies
    13
    Views
    1,558

    Mvn (Maven) not recognized as command

    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...
  16. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    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 ...
  17. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    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...
  18. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    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...
  19. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    This is the code from the Main class :

    package MyPackage;

    public class Main {

    public static void main(String[] args) {
    HelloWorldCreator hello = new HelloWorldCreator();

    ...
  20. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    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...
  21. Replies
    18
    Views
    1,413

    Re: Cannot find class in .class or .jar file

    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...
  22. Replies
    18
    Views
    1,413

    Cannot find class in .class or .jar file

    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...
Results 1 to 22 of 22