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
    3,600

    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
    3,600

    Re: Mvn (Maven) not recognized as command

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

    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
    3,600

    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
    2,478

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

    OK. Thanks for your help.
  11. Replies
    13
    Views
    3,600

    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
    2,478

    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
    3,600

    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
    2,478

    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
    3,600

    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
    2,478

    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
    2,478

    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
    2,478

    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
    2,478

    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
    2,478

    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
    2,478

    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
    2,478

    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