How to set JDK environment variable on MAC - java-7

I am new on MAC. I've installed dk-7u60 and now I have to set it's variable path as we do on windows.But I could not understand how to do this. Can anyone help me?

Sinche OS X is built under Unix, you can use
~/.bash_profile
Also recommend you after posting make a little research look at this question
Similar issue

Related

Weird Termimal Prompt Mac OSX

I did an update to Mojave and now when I go to the terminal is says:
csarson:~ janet$
it never had the csarson:~ part before. I checked and there is no user with this name. Is it something I should be concerned with? Does anyone know if it a bash profile of some kind?
Thanks in advance,
Janet
I believe that is the name of your computer. The terminal prompt format is:
Computer-Name:{working-directory} {username}$
So in this case csarson is your computer's name. See the image below for how it looks on my MacBook Pro, also running Mojave.

Windows emacs configuration

I use emacs on a Windows computer (I can't chose another OS as it's my work computer).
I want a smooth scrolling but I can't find where to put the configuration file. I've read things like https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but that doesn't work. Does anyone know how to do it?
Thanks.
You said you followed the instructions # https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but it didn't work. Did you try updating the system registry as suggested by https://www.gnu.org/software/emacs/manual/html_node/emacs/MS_002dWindows-Registry.html#MS_002dWindows-Registry? That is what worked for me.
I added GNU/Emacs to HKEY_LOCAL_MACHINE/SOFTWARE and added a string HOME with the directory I wanted emacs to refer to as home (C:\Users\my_user_name).
That same link will also describe the search order emacs uses and the values of Environment Variables you can set.

How to change the mirror of macports

I'm a newbie to OS X, and totally confused about the way macports works.
My question is, how to change the mirror or the sites where macports download the portfiles and distfiles.
The mirror I'm trying to use: http://mirrors.ustc.edu.cn/macports/
Should I change the sources.conf? But this mirror has no rsync protocol(I'm not really clear about what rsync protocol is >_<).
Or should I configure the macports.conf?
I know about the macports offical guide, but I'm not smart enough to figure this out.
Can anybody help me?
Thanks.
As per the documentation:
https://trac.macports.org/wiki/Mirrors
The URL used to get Portfiles is set in ${prefix}/etc/macports/sources.conf
If you are new to OS X and/or MacPorts, please consider reading the introductory guide: http://guide.macports.org/
The URL used to get Portfiles is set in ${prefix}/etc/macports/sources.conf
https://trac.macports.org/wiki/Mirrors

Can I install WhizzyTeX for Emacs on a Mac (is Mac OS X a unix environment)?

I think my question is pretty stupid, but here it goes:
I am using Aquamacs, and I want to install the WhizzyTeX mode. The website for WhizzyTeX says that "it is designed for Unix platforms".
I read that Mac OS X is unix certified, but does that mean I can install WhizzyTeX on my mac? If yes, can I install and use it with Aquamacs or do I have to use the Emacs running from the terminal?
PS: I don't know whether this question should be posted here or on SuperUser, but as Emacs users seem to hang out here more often, this is the place I chose.
EDIT: There are some websites saying I can use WhizzyTeX with Carbon Emacs on mac os x, but some places say I cannot (see for example this pdf document, page 27, which says that "* whizzytex: http://cristal.inria.fr/whizzytex/ mode in latex with ocaml good fo linux, should also work in cygwin, doe not work on osx"). So I am really confused...
If anyone is interested, I managed to make it. It is a bit slow and I think some files have issues, but in any case, it works!
The trick is to do what is explained here except for step 4. What I did instead was put the whizzytex.sty file in the same place as whizzytex.el and whizzytex (see step 5 in the article) and then I opened the file whizzytex (the one without extension), and where it says:
name (or full path) of the dump latex2e package file (without the extension)
PACKAGE=whizzytex.sty
I changed it to the path where I put whizzytex.sty. In my case I have:
PACKAGE=/Users/viviannevilar/.emacs.d/packages/whizzytex.sty
I hope this is useful for someone :)
You can install with the software distribution system Macports:
sudo port install tex-whizzytex
You only have to set up your emacs configuration files afterwards.
Have fun!
According to this site (scrolled about 3/4's the way down) it says that it can be installed on Mac OS. It pretty much just says:
make
sudo make install

shoes url not working in Ubuntu?

i have been using Shoes in windows from couple of months and it was working awesome, but now i am having Ubuntu set up on my machine and i am trying to run shoes in it but it seems like URL is not working .... i.e nothing happens when i click on it.
Have anybody observed this problem.
Any help on this?
thanks
Pradyumna
Looking at the source code, this would seem to to be the relevant bit:
shoes/native/gtk.c
shoes_browser_open(char *url)
{
VALUE browser = rb_str_new2("/etc/alternatives/x-www-browser '");
rb_str_cat2(browser, url);
rb_str_cat2(browser, "' 2>/dev/null &");
shoes_sys(RSTRING_PTR(browser), 1);
}
Not overly familiar with Ubuntu, but perhaps in your installation /etc/alternatives/x-www-browser isn't pointing to the right place? Either that, or Shoes shouldn't be using this path?
Sad to say that Shoes.url indeed seems broken on Linux, at least it was on Linux Mint (main edition, Ubuntu based) as well some time ago.
However I just tried it, now running Linux Mint Debian Edition, with the current shoes head and it worked beautifully. So either it's an Ubuntu specific problem or its fixed on the current Head. You could try to check out the current head

Resources