Solved

More Trouble in Java Paradise

Posted on 1997-07-08
3
165 Views
Last Modified: 2010-04-16
OK, after spending the last two weeks struggling to get the JDK to work on the NT side, I'm now fighting the Windows '95 side.

I've pretty much done everything I should do, setting the PATH and the CLASSPATH to point to my Java directory.  Despite this, I keep getting the error message "can't read HelloWorld.java."  I found a thread named "can't compile" here at the Expert's Exchange, and I'm going to try some of those tips, but the thread gets a bit convoluted at the end, so I'd appreciate someone picking it up again.  

I've also noticed when I type DIR to check to see if my file is, indeed, where it should be, that the file name is returned with the 8 character name, but then the full character name is "HelloWorld.java.txt."  Is the appendage of this final ".txt" causing the problem?  I'm assuming this happens b/c of the association of the file with Notepad.  Is there some way to kill this association?

Thanks!

Raydot.
0
Comment
Question by:Raydot
  • 2
3 Comments
 
LVL 3

Author Comment

by:Raydot
ID: 1222792
Edited text of question
0
 
LVL 1

Accepted Solution

by:
vmanocha earned 50 total points
ID: 1222793
"HelloWorld.java.txt."  - this surely won't compile. And, yesthis is the problem with notepad that it appends a .txt afterthe name that you provide. One of the ways that I get around thisproblem is by providing the name in quotes. For eg. if I wereto save a file with name - HelloWorld.java, in the filesave/saveas dialog, i would give the name as "HelloWorld.java" (including the quotes). This ensures that notepad doesn't add the .txt extension.
0
 
LVL 3

Author Comment

by:Raydot
ID: 1222794
You forgot to mention that the file had to be saved as type "All files," but other than that, you were right on the money.  I was up and running in no time.  Also, I'd like to point out for future readers that this only works with Notepad, and not Wordpad.

'Dot.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javap bin 2 41
Maven Project: Hibernate Dependencies Conflict 10 40
jsp insert to database example 2 47
Adding multiple JVM environments to RedHat 6 7 49
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question