my dog learned polymorphism*
The moose likes Mac OS and the fly likes java programs starting and opening up in Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "java programs starting and opening up in Windows" Watch "java programs starting and opening up in Windows" New topic
Author

java programs starting and opening up in Windows

Christopher Laurenzano
Ranch Hand

Joined: Jul 25, 2009
Posts: 85
Not sure if this is the right place for this, but here goes:

I upgraded to Parallels desktop 9 a day or so ago -- no problem. I am currently learning java, and when I went back to open a program in os X, it started Parallels, and opened up the program in note pad.

This has never happened before; i tried to write a little program in notepad the other day (I think it was after the upgrade), but it wouldn't run when I was at the command line in windows XP; got some error message; I just stopped because I do my work in OS X and only use windows for work.

Now if I want to open my java programs in text edit I have to specify to do that in the terminal application. But this his never happened before. Can anyone tell me what's going on and how to stop this? Has anyone ever had this problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

It sounds like something set up a file association behind your back.

Right click on the file in question, and choose Get Info. See what the "Open with" section has to say.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Christopher Laurenzano
Ranch Hand

Joined: Jul 25, 2009
Posts: 85
Thanks, that did it, but what's strange is that there were other java programs that I'd written that I never opened just now -- and they were set to open with notepad as well. In fact I did a spotlight search on all programs that end with .java and they're all set to open with notepad.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

In that same location you can change the setting for all files of the same type.

Note sure what changed it out from under your feet.
Christopher Laurenzano
Ranch Hand

Joined: Jul 25, 2009
Posts: 85
Thanks, Bear. I was taken by surprise by this one. and I feel like a bit of a dunce for not getting the solution.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Glad to help!
 
jQuery in Action, 2nd edition
 
subject: java programs starting and opening up in Windows
 
Similar Threads
Confused between MBPr 15" (Late 2012) OR MBPr 15" (Late 2013)
Why Microsoft sucks?
Stange UnsupportedEncoding Exception
Switch to Mac from Win - Should I ???
Which way to run Windoze?