Vim and Eclim (Java): Run Java program in embedded terminal window

Hello all,
I'm trying to create a decent Vim setup for Java programming. I've installed Eclim, and it works alright. However, one annoyance I have is the way that Eclim runs Java programs. When run (via the :Java command in Vim), a Java program runs in a new shell instance pretty independent from Vim, and then when the program terminates (and Enter is pressed), the output is put into a new buffer at the bottom of the Vim window with the output.
The problem with this is that I must press Enter to go back to Vim after the program terminates, and then the output buffer is automatically selected even though I most likely do not care to copy any of the output.
So, this is what I would like to happen:
- I run my Java program somehow (doesn't have to be with :Java)
- A buffer containing the running program in a shell is put on the screen (if not already there)
- The program terminates, and the focus did not change to the output buffer
At the very least, I want the focus to not change to the output buffer after the program is done running.
Any ways to at least somewhat accomplish what I'm trying to  get at?

Trent wrote:
Yeah? I had AP CS when they first introduced the GridWorld case study. I hope you get more out of the class than I did.
I have never used Java except for that and my first CS class at university. I eventually realized that software (as a job) wasn't for me and took a route closer to EE. I still fight to avoid being called a programmer though
I like the idea of programming for a job, not necessarily "software development", something computer science-y sound good to me.
But anyway, to end on an on-topic note, I embedded gvim inside Eclipse as described here.

Similar Messages

  • Wireless mouse and keyboard lag. running no programs.

    hello. im having issues with my brand new Microsoft 2000 mouse and keyboard. iam running a brand new week old hp pavilion desktop computer with windows 8.1. i have tried updating drivers and ive tried unplugging and plugging the receiver back in and nothing
    seems to help. i have performed multiple scans of my computer with my anti virus and there is no infections detected. The computer had this problem right out of the box.    

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is a standard response I’ve written up in advance to help many people (thousands, really.)
    who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support <br/> Read the Subscriptions <a href="http://blogs.msdn.com/msdnsubscriptions">Blog! </a>

  • I am trying to run PLC programming software, Click, thru windows 8.1, has anyone had any luck?

    I am trying to run a PLC software, Click, on a Mac Pro with a windows partition and windows 8.1 software.  The software runs fine, but cannot recognize a USB port.  Does anyone have an answer for this or tried the same thins?

    I am trying to run iTunes on a PC with Windows 8.1, but the setup wizard tells me there is no space on the D:/ drive, which makes sense, since my D:/ drive is a CD-ROM.
    Even though you're getting a slightly different error message, try the following user tip:
    "Invalid drive X:\" install errors

  • Java running java

    can you get a java program to run another java program? if so how do you do it

    yes but how do you do that? pleas give example code ok so what i want to do is have a program that gets the locations of a jars file and runs them
    Message was edited by:
    h.day

  • My MacBook has question marks on all folders and won't run ANY program. Help!

    A week ago I was editing some photographs in Photoshop CS 5 extended. My computer has been running slow for a while so I thought that I would finish these files and then clear it of some photos since I know I've recently uploaded several gbs onto it.
    The next day it was frozen. I had to shut it down and restart. It came on and now every folder has a question mark on it and none of the programs will open. They just bounce up and down and then the menu bar says Application not responding.
    I have no idea what I need to do. I was going to update to Lion but I'm unsure if that's what I should do or if it needs some TLC from the apple store.
    Help?

    A professional will image your drive and attempt a bit by bit file recovery method directly from the drive itself.
    You see when you delete something, it's not quite erased yet, but the space the file took is available to be overwritten, so it's only a matter of time before that occurs and the file is really gone.
    So they will recover what they can, and then restore your machine and it's software and return the recovered files.
    The TimeMachine is certainly going to assist, good thing you got it.
    The trick is to hire someone and quit using the computer until they rescue you, show you in person how to rescue yourself .
    Good Luck

  • I'm looking for an HTA that will ask user to authenticate a user to an AD group and if successful run a program

    is this even possible? I want to use this in WinPE to only allow certain users build machines with MDT. Is this possible with an HTA and VB?

    if((Get-ADGroupMember -Identity "Your_Group" | Select Name) -match "$($currentuser)"){<#execute code here#>}
    #or
    if((Get-ADGroupMember -Identity "Your_Group" | Select Name) -match (Get-Credential).UserName){<#call exe#>}
    Of course $currentuser needs to be populated depending on how and where the script is going to be run from.
    $currentuser = $Env:USERNAME
    #or
    $currentuser = Read-Host "Enter your username"
    #or
    $currentuser = (Get-Credential).username
    PoSh is king

  • My iphone stalls and freezes while running certain programs

    i just bought my iphone four days ago, it keeps locking up when i press the mail button or the weather button. then the whole screen goes to black. it has also done it once on the text messanging screen. is there something wrong with the phone, should i take it back. and also the edge of the chrome trim around the screen is off centered and has a sharp edge on it where you would grab it with in your palm

    First sync your phone to your computer so you data is safe. Then you might try the Restore option on ITunes. If this doesn't fix the problem I think I would take it back to the Apple Store for a replacement if it were mine.
    Hope this helps.

  • Battery failed during upgrade and I cant run any program now.

    Hi there
    After I have started a system upgrade, left my laptop there and the batteries went down. After I plugged it in, nothing works. I know I shoudnt left it there like this.
    So if I type "netcfg myconnection" nothing happens. No error message, no success message, nothing. The shell goes on like after a simple hit on the enter.
    I'm really lost.

    grego wrote:# rc.d restart network
    Error: unkonwn interface in /etc/rc.conf: 'eth0'
    I don't use netcfg but didn't network config move out of rc.conf in an update a little while ago? I think I'm thinking of the 2012-05-13 news?
    netcfg 2.8.2 has been moved to [core]. It has been six months since netcfg had an update, so it accumulated quite some changes. Here is a shortlist.
        Configuration has moved out of rc.conf. Please move your configuration to /etc/conf.d/netcfg.
        Connection types ending in -old, -dbus and -iproute are discontinued. Remove the suffix if you still have it: you didn't need it.
        Systemd is now supported for single profile, multiple profile, automatic wired and automatic wireless connections.
        For your basic wifi needs, you can now use the bundled wifi-menu tool. It is a dialog ...

  • Java problems. I cannot open a program running Java lately. Do not even charge it. I have OS X 10.7.5

    this is the link I try to open:
    http://www.dailyfx.com/charts/forexpowerchart
    It says waiting fro reply from the site and generally the running Java clock was starting.... and after the charts were showed. Now do not even show the little java display. It say below in small: waiting for a reply from the site.... and then nothing.

    Apple recently in an Update to Lion blocked Java from running on its computers due to Apple's stated belief that Java's software code is too high a security threat for running Malware.  You would need to download and reinstall Java, if you think that's a good idea.

  • Help running Java apps in Mac OS 10.1.3

    I'm currently taking an intro course to Java and I've been using the OS 10.1.3 Unix Shell to compile and run my assignments, using the "javac" command to compile my classes and the "java" command to run them. It's been working fine until a few days ago when every class I started to compile from that day on wouldn't run. The previous classes I've compiled run fine, however if I re-compile them and attempt to run them I incur the same problem.
    I get this error :
    Exception in thread "main" java.lang.NoClassDefFoundError:
    followed by the classname.
    The best I can figure is that I've accidently changed some option in the java system, but now I have no idea as to how to change it back. I've asked my CS professor what to do but ofcoarse he's a PC user and when he hears Mac he just replies "I don't know about Macs" eventhough I've tried telling him that OS X is unix based. Anyways, if there are any well informed Mac OS 10.1.3 users out there, please help me so that I can resume my CS assignments on my Mac.
    Thanks,
    Craig

    1. Are you certain that you have all of your java files compiled
    and that their class files are in your classpath? Did you import
    the class TestWeeklyEmployee in your java file that has your
    main method? Do all of your class filenames have the same
    name (minus the .java or .class) as the class in the file?All of the java files needed to run the class are in the same directory, and they all have the correct names, You see I'm able to run my programs perfectly on other machines, infact I have to test them in the computer labs before I turn them in. So I know that my probrem isn't a syntax error.
    2. when you start the terminal, type the following:
    echo $CLASSPATH
    and make sure that the output it gives has the . [dot] that you
    added via the .cshrc file at the end or that only a dot gets
    displayed. If it does not have your dot in the output, then you will
    have to use the -classpath option to the java runtime binary to
    tell it where your classes are located.I tried typing echo $CLASSPATH but I got this error message:
    CLASSPATH: Undefined variable.
    And I had directly copied the code you wrote into my .cshrc file.
    3. When you try to run your java program, are you sure that you > are in the directory where all of the class files are located? use
    the "ls" command to see if your class files are in the current
    directory. (you may want to search the web for a UNIX tutorial or
    a UNIX for beginners type of article so that you can feel more
    comfortable using the Terminal application)Yes all of my classes are in the same directory and yes I'm in the correct directory when compiling and attempting to run my programs.
    4. Assuming that 3 is true: If you run your program using the
    "java -classpath . MyClassWithAMainMethod" do you still get an
    error? If you do, then I am pretty sure that you have neglected to
    import a class that your main method is trying to instantiate or
    that you have not compiled the source of the class in question >
    (or both).All classes are imported correctly and yes I have compiled the class. As I said it works fine when I compile and run on other machines, just not mine.
    Are you trying to install the developer tools from the developer
    cds? If you are and you have since updated your OS to 10.1.x,
    then I would not expect project builder to work. The same thing
    happened to me when I upgraded to 10.1.x. Sounds like you
    may need to install the latest developer tools which can be
    downloaded for free from the Apple Developer Connection site
    (http://www.apple.com/developer). Installing the latest developer
    tools should get things right for you.The developer tools that I'm attemping to run are not from the CD, they're the current downloadable version from apple developer. I've contacted apple developer support with my problem with project builder, but they blew me off.
    So now that we've eliminated these possibilities, any other ideas?
    Thanks,
    Craig

  • Running Java app on UNIX

    Hi all, Any kind of help is much appreciated.
    I am trying to run a Java program on Unix which also imports packages of a 3rd party vendor.
    I run it from the directory where i have my MyProgram.java file stored and also provide the classpath for the .jar/.zip files of the 3rd party vendor (using -classpath option with javac)
    Compiling is clean with no errors.
    But, on running the java command: java MyProgram
    It gives me java.lang.NoClassDefErrorFound for a class which came with the 3rd party vendor.
    The class is present in the .jar file, which I provided in the -classpath option with javac. There are many other classes present in the same .jar file which are being used in the program but it just gives the error for this particular class.
    -I also tried by saving that class in my current directory and compiled it with
    javac <-classpath> MyProgram.java 3rdVendor.java
    command and created its .class file in the current directory but then again using java command from the same directory gives the same error: java.lang.NoClassDefFoundError
    Plzz....help
    Thanx Shaan

    here is the command i used
    javac -classpath .:/home/top/MyName/dir1/jcommom-0.9.7/jcommon-0.9.7.jar:/home/top/MyName/dir1/jfreechart-0.9.21/jfreechart-0.9.21.jar DyanmicChart.java
    COMPILATION IS WITH NO ERRORS
    and then I run java from the same directory where i have DynamicChart.class built
    java DynamicChart
    error in class Main : java.lang.NoClassDefFoundError for org/jfree/data/time/RegularTimePeriod
    RegularTimePeriod is present in jfreechart-0.9.21.jar and its .java file is located in the folder jfreechart-0.9.21/source/org/jfree/data/time/RegularTimePeriod.java
    There are lot of other classes that I use from .jar files mentioned in the classpath but its just this one class. I also saved the RegularTimePeriod.java file in the pwd to built its .class in the current directory and compiled it using the above (javac) command with DynamicChart.java. AGAIN NO COMPILATION ERRORS...but the same error when i run: java DynamicChart
    Shaan

  • Running java - need help ASAP

    I am running windows xp and trying to run java in the command prompt. I run javac and it creates the class file. When I run java, I get the error - Exception in thread "main" java.lang.NoclassDefFoundError: example.
    I have checked the classpath and it is pointing to the bin folder holding the java exe. What else should I try to get it working. I am trying the HelloWorldApp that was provided by the tutorial.

    http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html
    Read the "runtime problems" section.
    > I have checked the classpath and it is pointing to the bin folder holding the java exe.
    The system PATH should point to the bin folder. The CLASSPATH should not.
    ~

  • Will Firefox 11.0 on MacOS 10.5.8 run Java 1.6 applets; is it a 64-bit browser?

    When I point iCab 4.8 to http://www.java.com/en/download/testjava.jsp, it tells me I am running J2SE Runtime 6 Update 26 (i.e., Java 1.6). However, when I point Firefox 11.0 to the same page, the applet there says that I am running J2SE Runtime 5 Update 30 (i.e., Java 1.5). So it seems that Firefox 11.0 on MacOS 10.5.8 is a 32-bit browser and can't run Java 1.6 applets. But then someone told me that when he points Firefox 11.0 running on MacOS 10.5.8 to the same page, it tells him that he is running Java 1.6. Do I need to change a setting somewhere to get Firefox 11.0 to run in 64-bit mode? I'm using an iMac8,1 with Intel Core 2 Duo 2.66 GHz chips, and 6 MB of memory. Java 1.6 is already first in the list in Java Preferences, and its box is checked.

    I don't understand the discussion at that page. Is it referring only to Java 1.6? If so, and you are blocking versions of Java 1.6 prior to update 31, is this block permanent, or will it be lifted in a future version of Firefox? I don't think Apple is releasing any more versions of Java 1.6 for MacOS 10.5.8, so if you block updates prior to 31, Java 1.6 is blocked permanently on MacOS 10.5.8. And why was my acquaintance able to run Java 1.6?

  • Compile and run a program with Terminal

    Hello, I used TextWrangler to create a .c file on my desktop. I want to compile and run the program using Terminal. However, I am new to programming and I am not sure how to achieve this. I have Xcode with Command Line Tools downloaded. I have the file "6_19.c" on my desktop currently. Any help would be appreciated.

    Your Desktop probably isn't in your execution path, so you might want to start by moving "6_19.c" from your Desktop to your Home folder. After that, in Terminal, just do
    gcc -o 6_19 6_19.c
    The general format is
    gcc -o <name you want the compiled program to have> <name of the source>.c
    Do not put any .extension on the end of the name you want the compiled program to have. Also note that after "gcc" there's a space, then a dash and the next character is a lower case letter 'o', not a numerical zero. There's a space between the name of the compiled program and the name of the source.
    To run the program, at your terminal prompt type
    ./6_19
    The general format is dot forward slash <name of the compiled program>
    There's no spaces at all.
    Good luck.

  • Problems with Java, (i.e, compiling, etc) & Terminal Window

    I am having a problem compiling my program in the Terminal Window. I am working on Java for my ICS class and the first project compiled and ran fine through Terminal Window, but when the next assignment came, it throws this error:
    class file has wrong version 50.0, should be 49.0
    Here's the screen image:
    http://tinypic.com/view.php?pic=6ywfbx3&s=1
    I'm not sure what the problem is, is there an expert out there? Also, I think there is something wrong with my Terminal Window as I cannot change directories, run/compile program "in" the shell, for example, when I want to compile a program, I have to press "COMMANDSHIFTN" so I can run it from here(it's the "New Command" window:
    http://tinypic.com/view.php?pic=879bqrd&s=1
    Whereas I have seen every other Mac user in my class compile their program easily by pressing Enter "in" the shell, just like command prompt.
    If I am not making myself clear please let me know, I'm trying to explain as specifically as I can.
    One more note:
    When I type in the shell and press Enter, it just goes down a line like a Word document.
    Here is an example, it follows in order:
    1) http://tinypic.com/view.php?pic=6z955oh&s=1
    2) http://tinypic.com/view.php?pic=8aw1dox&s=1
    3) http://tinypic.com/view.php?pic=7xln5fp&s=1
    4) http://tinypic.com/view.php?pic=873mr5w&s=1

    For your issues with Terminal:
    Discussions > Mac OS X Technologies > Unix
    For your Java problems:
    Discussions > Developer Forums
    You're more likely to find answers to your questions there…

Maybe you are looking for