Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

More Trouble in Java Paradise

Posted on 1997-07-08
3
Medium Priority
?
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Author Comment

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

Accepted Solution

by:
vmanocha earned 200 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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:
Suggested Courses

705 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