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 trial

Java Java Basics Getting Started with Java Strings and Variables

unable to run program

Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
ls
treehouse:~/workspace$ ls
Introductions.class Introductions.java
treehouse:~/workspace$ ls
Introductions.class Introductions.java
treehouse:~/workspace$ java Introductions
Picked up JAVA_TOOL_OPTIONS: -Xmx128m
Picked up _JAVA_OPTIONS: -Xmx128m
Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier '%s'
at java.util.Formatter.format(Formatter.java:2519)
at java.util.Formatter.format(Formatter.java:2455)
at java.io.Console.format(Console.java:170)
at java.io.Console.printf(Console.java:209)
at Introductions.main(Introductions.java:9)

I'm in the introduction phase of java. after working for a while, the above messages are all I get.

Mekye Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Mekye Williams
Web Development Techdegree Student 6,628 Points

You mention concatenating your variable into a print statement can you explain what you exactly mean by that because I'm running into the same problem?

2 Answers

Micah Hack
Micah Hack
12,902 Points

Ayy Fahim, It looks like those are all error messages you are receiving in the console upon trying to run your code. Could you possibly post the code that you are working with in the work space so I might look at it and try to point you in the right direction?

Hi Micah, I've figured out actually since you mentioned it may have to do with my code. I wasn't concatenating my variable to my print statement properly. thanks for the help!