Solved

More Trouble in Java Paradise

Posted on 1997-07-08
3
164 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

821 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