• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My compiler doesn't like my key board's { .

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably by the question you know I just started to learn Java. Using the Head First Java book....

So I down loaded some code for chapter six and when I ran javac it returned errors and pointing to the { symbol of the line;

While(isAlive == true) {

Question: does this have to do with the key board differences between an English typed code and my machine which is using German?

Or should I be thinking load another Java Virtual Machine?

p.s.
This is my first post, ever, to a Java forum and any other tips (especially for a Lotus Script app developer needing to learn Java) would also be appreciated.

swissg
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exactly was the error? Assuming you are using ASCII on your keyboard, it will have picked up the { correctly.

A chap called Roedy Green has a list of compiler errors, which are worth looking at, because the standard compiler produces error messages difficult to understand.
It puts a caret ^ at the last position where it thinks the code is correct, so you need to look after your { for the error.

Welcome to the Ranch.

I would suggest you go to this website and download JCreatorLE, which is available as freeware, and is much better as a text editor than a plain editor. It will pair off {} and () for example, which will prevent much confusion with compiler errors. You can even run the classes from build->execute on JCreator. It is part of an IDE, but is easier for a beginner to use than a full-blown IDE (most people use Eclipse or NetBeans).

CR
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> While(isAlive == true) {

if you have copy/pasted this:

while(isAlive == true) {//small w
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic