Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Java Basics Getting Started with Java Introduction to Your Tools

Said Gaforov
Said Gaforov
809 Points

Need help with workspace alternative to practice coding

Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m

I get this problem every time I type and I also get other error messages. Providing your students with alternative options for executing codes instead of your workspace would be greatly appreciated, especially when you cannot provide a good working environment for them to practice alongside the videos. There are a lot of popular IDEs out there where they compile and execute java and other codes such as IntelliJ IDEA and Visual Studio Code (both Free), but I need a little direction how to use your video codes with them. If this doesn't get solved I will be forced to cancel my membership, cannot learn like this.

4 Answers

Hi Said,

Those two lines aren't errors - just ignore them; they just relate to the setup of the compiler options. Don't worry about them.

If you're expecting output from your code, let us know what you're expecting, post your code and we can try to help.

Steve.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,631 Points

As Steve Hunter (and Jennifer Nordell in the other post) pointed out, this is not an error and cannot be removed. This is also stated by Craig in the Teacher's Notes for the video.

As both also stated, if you are receiving other errors, you will need to post your code in order for others to be able to assist you. Without seeing your code or the errors you are receiving, it's pretty much impossible for any of us to help.

In regards to local development. Yes, IntelliJ is a very popular and favorite IDE for Java Development, and much later in the Java Track, Craig does teach you local development using the IDE instead of Treehouse's Workspace.

I feel that it is not shown right off because this is an Introductory level course and introducing the complex nature of IDEs to new coders would be a bit much for most to start off with. You can't learn the code if you're struggling to learn how to use the IDE. This is why the Local Development course is much further along.

If you would like, you can take the Local Development Environments course. This is, however, an Intermediate Level course, is a bit over 2 hours long, and is designed to be taken later in the Java Track for maximum efficacy. But, if you feel you'd be more comfortable with local development this early, you can jump ahead and then always come back to this course.

I hope this helps to clear things up. :) :dizzy:

Said Gaforov
Said Gaforov
809 Points

Thank you Steve and Jason. Thanks Jason for the detailed answer. I am doing exactly as shown on the video, here is the error I am getting. It's not printing "Hello, my name is...."

Here is what I put:

import java.io.Console;

public class Introductions {

    public static void main(String[] args) {
        Console console = System.console();
        // Welcome to the Introductions program!  Your code goes below here
      console.printf("Hello, my name is Said");

  }
}

Here is outcome: (My name is... not printed).

treehouse:~/workspace$ ls
Introductions.class Introductions.java
treehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
treehouse:~/workspace$

Said Gaforov
Said Gaforov
809 Points

never mind, it's fixed now. I used Ctl+S on the keyboard and looks like didn't save my work, I had to go to File-->Save then try again, it worked.