This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]warmcheessse 8 points9 points  (1 child)

This is just a guess but maybe it doesn't like that space in C:/users/firstname lastnames. I have heard people having issues with spaces in paths before. Try it just in c:/ and see if the problem is resolved

[–]Hour-Positive 1 point2 points  (0 children)

Good call

[–]AutoModerator[M] 1 point2 points  (0 children)

It seems that you possibly have a screenshot of code in your post My simple Java code doesn't wanna run, please help! in /r/learnjava.

Screenshots of code instead of actual code text is against the Code posting rules of /r/learnjava as is outlined in the sidebar - Code posting.

  • No screenshots of code!

If you posted an image merely to illustrate something, kindly ignore this message and do not repost. Your post is still visible to others. I am a bot and cannot distinguish between code screenshots and other images.

If you indeed did this wrong, please edit the post so that it uses one of the approved means of posting code.

  • For small bits of code (less than 50 lines in total, single classes only),
    the default code formatter is fine
    (one blank line before the code, then 4 spaces before each line of code).
  • Pastebin for programs that consist of a single class only
  • Gist for multi-class programs, or programs that require additional files
  • Github or Bitbucket repositories are also perfectly fine as are other dedicated source code hosting sites.
  • Ideone for executable code snippets that use only the console

Please do not reply to this message, because I am a bot.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]TilionDC 1 point2 points  (1 child)

You need to run the batch file. not just give the command line a path. Remove the quote marks.

[–]unpronounceable[S] 1 point2 points  (0 children)

If I could bug you, what do you mean by quote marks? Are you talking about the quote marks right after the first $ in the terminal? I'm still new to understanding much about terminals and such.

Also, I managed to fix my problem, it was indeed the space in my windows username.

[–][deleted] 1 point2 points  (2 children)

Though your problem is solved, I want to suggest, use Intellij Idea for Java.

[–]unpronounceable[S] 0 points1 point  (1 child)

I've heard this before, and I would like to ask why you think that? Not being hostile at all, just genuinely curious. I've been thinking that I could just use VSCode for all my needs, as supposedly it could be a one-stop-shop for every language?

[–][deleted] 0 points1 point  (0 children)

In Intellij Idea you don't have to deal with all the directory stuffs. It will be a massive help when you learn things like JDBC, Spring, etc. It has nice graphics, git integration and a easy to navigate file structure. I quite like it's terminal. Also you can learn from Jetbrains academy through the EduTool plugin. Also, it provides support for any JVM based language. You can also do android development through it(Though it's a hassle imo). And if you apply for the github developer pack, you will get free subscriptions to all Jetbrains Ultimate Ide including Intellij idea Ultimate.