Java - help to write scripts after moving to mac os x from windows

hey, ive recently converted to using a mac. I study java as part of my uni course, and need to write java scripts. Is there a java script editor pre-installed on mac os x? Ive downloaded jEdit aswell to write scripts, so thats not essential, but my major problem is how do i compile the scripts? In windows theres dos, whats the equilavent on mac? If someone could give me a quick run through of how i would compile a script and run it that would be awesome. As on windows i found the directory, used javac <script>.java to compile, then java <script> to run. Is this the same on mac. Also a few hints on how to use the mac command window (if there is one) would be awesome, e.g. how to call a directory, dir on windowns etc, then how to change directory, e.g. cd c:\ on windows. Any help on this would be much appreciated, thanks, andy.
macbook pro   Mac OS X (10.4.8)  

Hello drew__r,
Welcome to the Apple Discussions, and congratulations on making a choice which I hope you will never regret. (I have to use both platforms; but for personal choice it's a no-brainer!)
I'm not a programmer. But most of the things that in Windows are done via DOS are done in the Mac via Terminal, which uses Unix, and is far more idiot proof than the Windows equivalent. I should know: even I've used it!
You might get a reply in this forum, for I know that several serious Unix experts are regular contributors in this particular forum. However, if you don't get a reply in a day or two, you might consider posting in the Mac OSX Technologies Forums. (Multiple postings of a question should normally be avoided, and can get the user into trouble with the moderators. So say "Sorry for reposting here, but . . . ") Those technology forums also give you access to Applescript experts; and that is a brilliant and quite powerful "plain language" way of writing scripts for OSX. I don't know if it would work for your request.
Best of luck,
Martin
If you found that this contribution helped to answer your question, please consider the "Helpful" and "Solved" buttons in this message. Why reward points?
Powerbook 15-inch G4 1GHz   Mac OS X (10.4.8)   Several veterans that go on and on. 40gig, 3rd generation iPod

Similar Messages

  • Java.lang.IllegalStateException: Write attempted after request finished

    Hi
    Can anybody explin to me about java.lang.IllegalStateException: Write attempted after request finished.
    I am struggling with this problem. Please help me..
    Thanks in advance.

    try to open the inputStream when you want to read the incoming stream !
    see this for more details...

  • Help with C03 error after moving!

    I need some advice and help in what to do with my BT Vision. 
    I moved home about 1 week and a half ago and moved all my BT services to the new address. The new phone number is working fine and the broadband is now also working well, with no problems. However my BT Vision box doesn't work at all. When turned on it shows a C03 Error and says I need to wait for the activation date? Not sure what this means as I thought that as soon as broadband was working Vision would work.
    At the weekend I called the helpline and the operator told me (after periods of long waits and apologies) that vision had been transfered to new line and he had to "escalate" the query as he was unable to resolve. Someone was supposed to call me in 24hr but no one did. I rebooted the hub and the box countless time already and same message appears.
    I've been with BT for some years now and always have good service when things are set so keen to resolve this so I can keep on enjoying it. My partner is talking about getting Sky but I'm not so sure.
    I have a old grey BT Vision Box and the black Hub, if that info helps!! Thank you for any help and advice you can give. Not sure what I can do more.

    Hello,
    Your account hasnt been activated and QoS wont have been applied to your line.
    Only thing you can do is send the mods and email:- http://bt.custhelp.com/app/contact_email/c/4951
    Make sure you include your account number, name, address and details of the problem. They'll get it sorted in around 1 week and credit you for lost service.

  • Need help with a script for moving bulk users to another OU and removing/assigning groups

    I've never used PowerShell before and have been asked to track down a script that can move bulk users from one OU to another, and remove and assign new group membership. I've been googling it for about 30 minutes and haven't really gotten anywhere. If
    somebody can point me in the right direction or give some tips I'd greatly appreciate it. I'm sure this kind of task has been done by several people in similar environments I just haven't been able to find those people/examples. 

    Here's what I've got so far...
    Moving to new OU
    CSV constructed like below...
    DN  
                                                                                                                                                    TargetOU
    “CN=John R, OU=BB,OU=ES,OU=Students,OU=OSD,DC=usd233,=DC=local”
                          "OU=PRT,OU=MS,OU=Students,OU=OSD,DC=usd233,DC=local"
    Import-Module activedirectory
    $UserList = Import-Csv "c:\yourCSVhere.csv"
    foreach ($User in $UserList) {
    $User.DN
    $User.TargetOU
    Move-ADObject -Identity $User.DN -TargetPath $User.TargetOU
    Would this work? I also need to remove the user from two groups and add them to two different groups as well. Would I need to use the addUsertoGroups and removeUserfromGroups commands?

  • Help! Library corruption after moving masters

    Hi Guys. I hoped never to find myself in this situation.I'll try to be succint
    I made a book using images from several projects. I put the book inside a new, empty project, and started working on it. 100 pages. days of work.
    Today I wanted to be able to selfcontain the book in its project to export it. So I simply grabbed all the images from the browser section of the book (lamenting for an easy way to differentiate "used" images from "unused" images, but that's another story)
    Aperture duly moved all masters in the project containing the book.
    unfortunately, this is where the trouble starts! I'm now getting lots of images with the wrong data displayed: mixed up thumbnails, mixed up "previews" in the book layout. One Image uses pixels from image B in the book layout and from image C in the thumbnails... major corruption?
    Of course the first thing I did was to rebuild the library, hoping for the best. It didn't cure anything.
    I'd use Steve Weller's suggestion to delete the minis etc. but I prefer to have some feedback before i get going!
    (you can be direct in your suggestions: i've got a 96,5% ACT certification for Aperture. not boasting just thinking the bases are well covered)
    setup= MBpro as in signature. ApLib and referenced masters all in the same external HFS+ extended (journaled) drive (laCie LittleBigDisk 200).
    cheers
    max-pol

    If you export a project and that project references masters that are in other projects, then Aperture makes copies of the masters in the exported project for you automatically. This is a nice feature, but can mean that when you import the project again you have duplicate images.
    You can alays duplicate your messed up projects and then delete the AP.minis in one copy. If the result is even worse than what you have now, then you still have a pristine original project.

  • Can't convert case after moving a GW SAN volume from NetWare

    I have am just about done migrating my GroupWise 8.0.3 systems from NetWare to OES Linux and have saved my largest PO for last. This is the only PO using a SAN volume. My plan is to just move the volume from the NetWare box the my new Linux (OES) server.
    To test this process:
    - I created a new SAN volume on my NetWare box and made a copy of the post office.
    - I moved the volume to my new Linux server.
    - I ran nssmu on the Linux box and did a F4 Refresh eDirectory for the pool and volume.
    All good so far. The pool and volume are accessible. When I run a dbcopy -l /<path to postoffice> to convert to lower case I get the following:
    [272] Failed to rename file /media/nss/RESTORE/ZOOPO.BAK/offiles/fd12/50FFFDB7.00G to /media/nss/RESTORE/ZOOPO.BAK/offiles/fd12/50fffdb7.00g Error=8201
    If I try to manually rename one of the upper case files it also fails:
    zoo-msg3:/media/nss/RESTORE/ZOOPO.BAK # mv WPHOST.DB wphost.db
    mv: `WPHOST.DB and `wphost.db are the same file
    So is it the case that you dont need to do a case conversion if the post office and/or domain are on NSS volumes?

    MrSted <[email protected]> wrote:
    > All good so far. The pool and volume are accessible. When I run a
    > dbcopy -l /<path to postoffice> to convert to lower case I get the
    > following:
    >
    In addition to what Massimo says about not really needing to rename the
    files if you are on long namespace, the -l is a dangerous switch and
    should rarely be used by a human.
    http://www.caledonia.net/important-d...ercase-switch/
    You actually ran it with the proper syntax. So you would not experience
    data loss. But -l should be used with caution. And NEVER while the POA is
    loaded. But it really should be run after the files are already the proper
    case on the disk. Its real job is to make the guardian DB all lowercase and
    only secondarily to attempt to rename files. I myself never use it to
    attempt a file rename.
    Personally I DO like to have the files all lowercase, even on NSS. You
    never know when you need to pick up your data and stick it on a native
    Linux volume. Search for chcase and there are a few windows utilities that
    can do this for you. Just map a drive to the NSS volume. If you DO change
    the case with a utility, then you can run the dbcopy -l but make sure the
    POA is unloaded.
    Danita - http://www.caledonia.net/register

  • Unidirectional Presence after moving xmpp federation to Expressway from IM&P

    Had an issue today where we changed federation from the IM&P to use the Expressway-E server for a customer.
    Afterwards I was able to see the customers presence, but they were unable to see mine.. opposite of what you would think
    It seems when someone adds you as a contact and they are prompted to allow the presence subscription, it captures your URI as well as your ip address at the time they subscribe.
    If this ip address changes, ie: moving federation, the remote user will not be re-prompted to allow presence, it will just fail until you delete and re-add them as a contact, then they get the prompt.
    The workaround in this case is to have the user export and reimport all of his contacts, which reprompts all the of his contacts on their end to allow presence subscription to the new ip.
    Does anyone have any insight into the federation part? the allow presence subscription is not a device setting as it carries over from ipad to laptop, etc, so it must be something stored on the server itself, although I can't seem to find where.

    Hi Stefanos,
    Did you solve the problem?
    I have same issue with you.
    the status of IM and Presence server is XMPP router: inactive.
    Any idea to solve this problem?
    regards,
    Ovindo

  • Help setting up internet on a I-Mac I purchase from an auction

    I purchase a Imac from an auction.It was used in a school envoirment, logon gives me student,teacher and tech. I can log in under teacher but I can not get permission to access the TC/ICP ? to install and setup my DSL 2wire connection.??? If I purchase the OSX will it reformat like a MS-XP product will do

    1dent,
    Welcome to the Apple Discussions.
    Your iMac is most likely a G3 so this forum has plenty of sympathetic ears. However, you will find additional help here.
    Short answer, yes, you can reformat the drive and pave over everything.
    You will need an install disk. You can buy universal CDs or model specific CDs. The iMac CDs will be cheaper if you only have iMacs. Otherwise, a universal install CD will cover all models.
    May I suggest partitioning the drive to give a little room to backup system files unless you only have a 4 gig drive and need all the room you can spare on your primary drive. Plus, with fragmented files, reformatting will give you a clean start.
    As for getting on the internet, iMacs were advertised and sold as internet ready. The first iMac I touched was delivered to a client while I was visiting his home. We were truely connected to the web in under 15 minutes. Your install CD will give you a clean install back to that state. BTW, check with the school, they may have a spare CD in some closet or drawer.
    Ji˜m

  • Can't open Numbers file after moving it back to Mac from Dropbox

    Please help!  Can't open Numbers file after moving it back to iMac from Dropbox.   Says I need the newer version of Numbers each time I tried to open the file.  I am 100% sure that I had the newest version.   Spoke to the AppleCare guy and after doing the checks he is also sure that I had the latest version of Numbers and AppleCare can't help.  He suggested that maybe i should run it on a file repair program...any suggestion?... please help...

    I've read reports of people having trouble when storing Numbers 3 documents on Dropbox.  I think it's related to the fact that they're not really "files."  They're "packages" that look like files. I had thought that Dropbox had cleared this up with their latest update. You should be on Dropbox version 2.4 or later.
    If you have Time Machine you may have some luck going back in time and restoring the document from a previous version.
    Storing Numbers documents on iCloud works much better, at least for me, and (unlike Dropbox) iCloud facilitates automatic syncing to other Macs and iOS devices signed into the same Apple ID.
    Perhaps you could consider keeping Numbers documents in iCloud instead. iCloud is deeply integrated into the app, and now works well.
    SG

  • Error : Write attempted after request finished

    hi frnds,
    I am using netbeans-6.5, with WTK-2.5.1 on Fedora-10
    my code is something like
    - open the connection // Connector.open(strURL, Connector.READ_WRITE);
    - read the response // in = conn.openDataInputStream(); in.read(); in.close();
    - {color:#800000}write some data // out=conn.openDataOutptStream(); out.write(data); out.close(){color} {color:#ff0000}<--Error occurs here looks like "java.lang.IllegalStateException: Write attempted after request finished" {color}
    -read the response // in = conn.openDataInputStream(); in.read(); in.close();
    and by searching the web I got following
    {color:#008080}+You have to open a new connection for every new HTTP request. Since HTTP is strongly request-response based, you cant write anything to the output stream after you have opened the input stream (wrote request, read response and finish).+
    You cant reuse the existing connection in HTTP. Of course a socket connection can do this ;-)
    -Kay
    {color}
    {color:#008080}+The HttpConnection object is a "use and throw" object. It works for one sending of the HTTP request, and then receiving the response. That is why once you've opened the input stream you can't write to the output stream. It's already been flushed and closed. But the phone will keep your GPRS connection open. So you can send more requests without the need to to reopen the GPRS link.+
    -Shmoove{color}
    {color:#000000}is it really so ?{color}
    do i have any alternative ?

    Hi,
    {color:#000000}is it really so ?{color}Yep !
    do i have any alternative ?Open a DatagramConnection by passing something else than an http request in "Connector.open"

  • Could not connect to internet after installing PO 8.1.6 on Windows 2000

    Hi folks !!
    I wish some one could help with this !
    After installing PO 8.1.6 on Windows 2000 professional , my computer become unable to connect to the internet. I have a DSL connection. I know that my connection is Ok because I have linux on my computer too and connection to the internet works just fine.

    Bugger.
    Thank you very much for the info!
    Oracle 1.0.4 installed ok and does work - one or two crashes here or there but it does the job.
    Rob

  • After updating my mac from snow leopard to mountain lion, i can not connect to the internet anymore

    After updating my mac book pro from snow leopard to mountain lion, i can not connect to the internet anymore ;(
    Anyone know what is wrong with it??
    Is something wrong with mountain lion or the wifi itself????
    HELP PLEASE!!
    I need to use the internet desperately but i cant...
    Thank you so much xxx

    Hi galleryskins,
    The article below may be able to help you with this issue.
    Click on the link below to see more details and screenshots. 
    I've quoted some helpful highlights for you:
    OS X Mountain Lion: Zoom content on the screen
    Zoom with a mouse or trackpad
    To zoom in and out, hold down the modifier key you specified while you perform the scroll gesture.
    For example, if you have a trackpad and used the default settings, zoom in by holding down the Control (^) key while you drag two fingers up on the trackpad. Zoom out by holding down the Control key while you drag two fingers down on the trackpad.
    If you chose Picture-in-picture zooming, a window appears near the mouse cursor with the magnified image. If you chose Fullscreen zooming, the entire screen displays the magnified image.
    I hope this information helps ....
    Have a great day!
    - Judy

  • Problem with Java Script after upgrade from BW 3.5 to BI7

    Dear Colleagues,
    We're facing the issue with Java Script after upgrade of BW 3.5 to BI7.
    Just after update we checked the basic functionality and it occured that some of web templates that use Java Script don't work. They generate seelction screen, but after selection the screen becomes blank without any error messages.
    We're currently stucked since web templates weren't converted to BI7 version so they should work exactly as before the upgrade.
    We compared the Java code with other environment that was not upgraded - it's perfectly the same.
    The only explanation that comes to my mind is that some Java Script settings on the server level were changed during the upgrade but I have no idea where I can check that.
    Thanks in advance for any suggestions,
    Andrzej Bobula

    Hi Deepu,
    Thanks, it was great to read your reply and then few minutes later talk to you live on SDN Day!
    Unfortunately, http cache clean-up did not help. But there is another funny thing I found - for exactly the same 3.5 webtemplate html code returned from WebAS 3.5 was different then from 7.0.
    Unfortunately, this editor does not allow to paste complete code, even in CODE brackets, but here are main differences:
    <b>3.5</b>
       if (navigator.appName == "Microsoft Internet Explorer")
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=GET_TEMPLATE"
    name="Content">
    and
    <b>7.0</b>
       if (navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=8&REQUEST_NO=0&CMD=GET_TEMPLATE"
    name="Content" 0nLoad="javascript:loadTitle()">
    (I intentionaly put 0 i/o o in 0nLoad, otherwise Forum's editor does not accept the text.
    How about SAP's claim that technical upgrade from 3.x to 7.0 changes nothing?
    Regards,
    Vitaliy

  • Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library.

    Can anyone help me write a script that would click "get info" and then "enter" on each movie in my itunes library? I am asking because my itunes 11 repeatedly loses the artwork to my movies in my itunes library. I can restore the artwork (and make my apple tv see the movie exists as well) by going into the movie library and clicking on each movie by hand, slecting get info, and then selecting enter. Now doing this 10 times in 20 days was fun and all BUT I would really like to automate the process so everytime itunes screws it up I can fix it easier.
    I saw this example of an itunes script that restores artwork for music
    tell application "iTunes" set theSelection to selection repeat with i from 1 to count of theSelection tell (item i of theSelection) set artworkCount to count of artwork repeat artworkCount times set theArtwork to data of artwork 1 delete artwork 1 set data of artwork artworkCount to theArtwork end repeat end tell end repeat end tell
    but I need to tweak this to fit my needs for simply clicking the "get info" button and "enter" in the movie library rather than all the stuff this guy has listed. Any ideas or help on writing this? Thanks.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • After moving my iTunes and iPhoto libraries to an external hard drive and deleting the originals i found i still had no space on my mac.help

    i moved my itunes and iphoto libraries to an external hard drive to free up space on my mac.
    after i had moved them and checked they could be found i trashed the originals and checked again that the could be found on the external hdd.
    all seemed to be ok.
    when i checked the disc utility it did not show i has made any more free space than i had before.
    any help please as i am loving tje mac but i am still quite new to it.

    Did you empty Trash?

Maybe you are looking for

  • Blackmagic Intensity Pro is on the fritz

    So, I just put together a nice new rig: new Mac Pro (see specs), 20" Cinema Display, FCP Studio 2, etc, and a Blackmagic Intensity Pro. I got the Blackmagic card so I can monitor HD footage on a 32" LG 1080p Flat-Panel LCD HDTV (32 LG70) . I've insta

  • Need Code For...

    Hello i am new to java...I need help code for something i am doing. Lets say. i have a start date(ex:1/01/03) and end date(ex:1/30/03),I need to go to the server and get all the information(logs or .txt) between those two date, and save it temp so I

  • Sync from 2 Different Computers

    I want to be able to sync the iPhone Music from one machine (mac) and video from another (PC). Reason is my work PC at this time is much faster and I convert videos to iPhone format (using Handbrake) on the PC versus the Mac and is about 15 times fas

  • Does the AS2 adpater is included by default in the SOA suite 11g or BAM

    Hi, I wanted to know that does the AS2 adpater comes by default with the SOA Suite 11g package or with BAM or we do need to have a seperate licensing for the adapter. Thanks in Advance, Jignesh

  • Transaction code for viewing invoice document and Claims document

    Hi Experts, Can u please tell me the transaction codes for viewing invoice document and claims document in ECC. I am in CRM and i do not know about the ECC transaction codes. request you 2 help. Thanks and Regards Shilpi