Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSaid Gaforov
809 PointsNeed 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
Steve Hunter
57,712 PointsHi 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
Treehouse Moderator 145,860 PointsAs 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. :)
Said Gaforov
809 PointsThank 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
809 Pointsnever 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.