• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make the simplest. hello world  RSS feed

 
da.igor da.babiouk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My com keeps telling me that he can not find the file halloworld.java
I,m a beginner at this and it's realy demotivating to have to experience this with you'r first applet. Especialy when tou have been at it for a week. I have downloaded the jdk. Named the code I have made of hello world with notepad helloworld.java. Saved it. And placed it in my documents. So why does he say that he can not find it ??? So so frustrating. Please help.
 
prateek patil
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by da.igor da.babiouk:
Named the code I have made of hello world with notepad helloworld.java. Saved it. And placed it in my documents. So why does he say that he can not find it ??? So so frustrating. Please help.


Hey you might have saved it as a text document while saving in notepad in the "save as type" field select All Files or remove *.txt from extention

Prateek
 
fred rosenberger
lowercase baba
Bartender
Posts: 12542
48
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you having problems compiling (javac) or running(java) it? Make sure you have the case of the filename EXACTLY match the case inside the file. in other words, if you have in your code:



you must have the file named "HelloWorld.java". It will not work if you have "helloWorld.java" or anything else. also, make sure you are spelling it right - in your post, you called it "halloworld.java".

These little details matter in Java.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try following "Hello World!" for Microsoft Windows from Sun's Java Tutorial. Follow it exactly to the letter, step by step. Note that you must be careful and do it precisely correct; Java is case-sensitive, so "HelloWorld" is not the same as "helloworld" or "halloworld".

A note about your display name "da.igor da.babiouk": We have a policy on display names here on JavaRanch. We want users to use a real-sounding name, not an obviously fake nickname or other strange looking names. Please edit your display name. You can do that by editing your profile.
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, da.igor da.babiouk and Prateek Patil

da.igor da.babiouk , please change your display name as Jesper Young suggested.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!