• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Unable to run program in jdk1.2

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm unable to run programs written in notepad on my machine on mine or any other machine. But my friends's programs also written in notepad on their machines run on mine. Does this mean my notepad has got corrupt?
-paddy
 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What operating system are you running? I know that with my Windoz98 machine, if I use note pad, and save the file as:
myfile.java
it is still written as
myfile.java.txt
An easy way to check if you have this problem is to look at your file under windows explorer. If the "icon" looks like a "text" or "txt" icon next to the file, this is your problem.
 
Ranch Hand
Posts: 458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use save-as and save your file inside double quotes, "myfile.java" when using notepad and you won't have a problem with .txt extensions
 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With my version of Notepad (Windows 98), I usually select "Save As" the first time I save. A drop down window for Save as Type offers the option of 1) Text Documents or 2) All files(*.*). If you select All Files you only need to put in your file name myFile.java without quotes.
When I open Notepad, the default file type comes up as Text Documents. If I change it to All Files on the open, I only need to put in the file name and do a Save.

[This message has been edited by Betty Reynolds (edited April 12, 2000).]
 
You don't like waffles? Well, do you like this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic