Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2005

Tip: Looking for answers? Try searching our database.

SRC files - associated in error with Notepad

Thread view: 
m-rharrison@tiscali.co.uk - 13 Nov 2005 00:52 GMT
I have just mistakenly looked into an src.file on my PC using Notepad
without unticking the 'always open' with this program, so now all src.
files open in Notepad.  A Google search tells me they in fact open in
Java, but just that bald statement.

Q1.  Is that so?

Q2   If so, what Java program do I use?  I have a number of J2re1
Folders, the latest being 1.5.0_05

I am apprehesnive now as to the consequences of this - something
important may refuse to work - until it is resolved

All solutions/advice gratefully received
Bjorn Abelli - 13 Nov 2005 02:18 GMT
<m-rharrison@tiscali.co.uk> wrote...

> I have just mistakenly looked into an src.file on my PC
> using Notepad without unticking the 'always open' with
[quoted text clipped - 3 lines]
>
> Q1.  Is that so?

I'm not even sure what you actually mean with "src.file"???

Do you mean a text-file with the extension .java ?

In that case, there's really nothing to worry about, as it can't harm
anything... ;-)

I know some developers that use Notepad as editor for Java source files...
;-)

If you mean something else than .java-files, please enlighten us...

If I interpret your question to mean .src-files, I don't see how you could
have googled yourself to the conclusion that it has something to do with
Java.

> Q2   If so, what Java program do I use?
> I have a number of J2re1
> Folders, the latest being 1.5.0_05

You don't want to associate .java with something from those catalogues. If
you want to develop Java-applications, you rather should have some IDE you
want to associate .java-files to.

> I am apprehesnive now as to the consequences of this - something
> important may refuse to work - until it is resolved
>
> All solutions/advice gratefully received

I'm not sure if this works on *your* machine, but it does on mine:

- Go into to the Explorer

- Right-click on a .java-file (or whatever the
 extension actually is)

- Choose [Open With...] and [Choose program...]

- In the dialog, check 'always open' and open with the
 program you *want* to open this filetype with...

// Bjorn A
m-rharrison@tiscali.co.uk - 13 Nov 2005 09:11 GMT
Bjorn,

Many thanks.

The file I opened in Notepad has an.src extension.  Now all such files
on my PC open in Notepad.  For example, Mozilla Firefox/search plugins,
and C:\System volume information\ restore {..... , and significantly,
Program files\Java\jre 1.5.02\lib

A Google search produced :
http://www.faqfarm.com/Q/What_program_is_used_to_open_src_computer_files,
which states an .src file opens in 'Java'.

So here the finger points to Java.

I know nothing about Java.

I ask myself whether the restore files (above) will now no longer work,
with, for all I know, possible fatal consequencies.

On the other hand, as is often the case I have found with mistakes on
PC's, mine may be no big deal.

I would be grateful if you would advise me on the above.
Roedy Green - 13 Nov 2005 10:13 GMT
On 13 Nov 2005 01:11:29 -0800, "m-rharrison@tiscali.co.uk"
<m-rharrison@tiscali.co.uk> wrote, quoted or indirectly quoted someone
who said :

>A Google search produced :
>http://www.faqfarm.com/Q/What_program_is_used_to_open_src_computer_files,
>which states an .src file opens in 'Java'.
>
>So here the finger points to Java.

that is erroneous.  Java source files are called *.java files. Someone
could set up *.src file associations to go to javac.exe, but that
would be incorrect.

see http://mindprod.com/jgloss/associations.html
to learn to see where they are being sent and how you could send them
for example to notepad.exe.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Oliver Wong - 14 Nov 2005 22:28 GMT
> On 13 Nov 2005 01:11:29 -0800, "m-rharrison@tiscali.co.uk"
> <m-rharrison@tiscali.co.uk> wrote, quoted or indirectly quoted someone
[quoted text clipped - 9 lines]
> could set up *.src file associations to go to javac.exe, but that
> would be incorrect.

   To nitpick, I think it might be "non-standard", but not nescessarily
"incorrect". If I were a particularly eccentric Java programmer, I might
choose to name all my java source files with the .src extension, and I think
I would still be able to compile them into .class files and run them without
any significant problems. At worst, I might have to download an open source
Java compiler and modify it to ignore the extensions, if it does not already
do so.

   - Oliver
Bjorn Abelli - 13 Nov 2005 11:43 GMT
<m-rharrison@tiscali.co.uk> wrote...

> The file I opened in Notepad has an.src extension.  Now all such files
> on my PC open in Notepad.  For example, Mozilla Firefox/search plugins,
[quoted text clipped - 6 lines]
>
> So here the finger points to Java.

Well, *that* poster doesn't have a clue...

As I said in my previous post, .src does not have anything "in particular"
to do with Java.

The specific files you're talking about are *read* by different
applications, but from "within" the programs.

As such, they're not bothered by any associations in Windows...

> I ask myself whether the restore files (above) will now no longer work,
> with, for all I know, possible fatal consequencies.

I don't think you need to worry.

From the previous description of how you managed to "create" the association
to Notepad, I believe there wasn't one until you did that.

In that case, I suggest you just leave it like it is.

Just don't edit anything in them... ;-)

// Bjorn A

P.S. I went to the page you had found, and provided a better answer... ;-)
m-rharrison@tiscali.co.uk - 13 Nov 2005 12:52 GMT
Ok.

This is the important bit that answers my concerns:

"The specific files you're talking about are *read* by different
applications, but from "within" the programs."

I had no idea this is the case

Thanks.

As such, they're not bothered by any associations in Windows...

Thanks
Roedy Green - 13 Nov 2005 02:38 GMT
On 12 Nov 2005 16:52:43 -0800, "m-rharrison@tiscali.co.uk"
<m-rharrison@tiscali.co.uk> wrote, quoted or indirectly quoted someone
who said :

>I have just mistakenly looked into an src.file on my PC using Notepad
>without unticking the 'always open' with this program, so now all src.
>files open in Notepad.  A Google search tells me they in fact open in
>Java, but just that bald statement.
see http://mindprod.com/jgloss/associations.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

"." - 14 Nov 2005 15:38 GMT
> I have just mistakenly looked into an src.file on my PC using Notepad
> without unticking the 'always open' with this program, so now all src.
> files open in Notepad.  A Google search tells me they in fact open in
> Java, but just that bald statement.
>
> Q1.  Is that so?

Not really. I would expect a Java source file (a file ending with .java)
to open in my favourite editor. If I install and use IntelliJ/IDEA then
I'd expect the Java source files to open in IntelliJ/IDEA. If I have not
installed any editors specifically designed for editing Java source files
then I would expect nothing to be associated with Java source files.

> Q2   If so, what Java program do I use?  I have a number of J2re1
> Folders, the latest being 1.5.0_05

Since the answer to Q1 is no, this question is moot.

> I am apprehesnive now as to the consequences of this - something
> important may refuse to work - until it is resolved

Until you install a Java editor or IDE (Eclipse, NetBeans, BlueJ, etc.)
you will be using notepad to editor Java source files. No harm. Just not
the best editor for editing Java source files.

> All solutions/advice gratefully received

Don't worry about it until you want to edit Java source files. At that
time download a good IDE (Eclipse, NetBeans, BlueJ, etc.). When you
install it, it should change the file association from Notepad to whatever
you choose to install.

Signature

Send e-mail to: darrell dot grainger at utoronto dot ca



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.