Solved

More Trouble in Java Paradise

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 80
Requested array size exceeds VM limit 3 85
eclipse java  build path 6 45
Error trying to install RTMT Win7 5 41
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)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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 …

864 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now