Eclipse Question

The Hardey Har Har thread got me to download Eclipse and try it out.
I am a harcore vim fan but I can see already how useful Eclipse will be.
Anyway, I've started looking thru the tutorials (which are great) but can't figure one thing. This question may be off topic here, but here goes anyway....
I want to view an existing project of mine in Eclipse. It is an existing project only in the sense of being an application in a package and residing in a directory structure that reflects the package name. When I create a new project in Eclipse for this existing application, I assume I use the "Create new project in exisitng location" option. My question is, if my app files are in "com.whatever.projectname", do I create the new project in "com" or in "whatever" or in "projectname"? Does it matter? Also, will creating the project prevent me in any way from making manual changes to files outside of eclipse and compiling using javac if I want to?
Thanks for any info,
Johh

I want to view an existing project of mine in Eclipse.
It is an existing project only in the sense of being
an application in a package and residing in a
directory structure that reflects the package name.
When I create a new project in Eclipse for this
s existing application, I assume I use the "Create new
project in exisitng location" option.I ususally don't. I create my projects under the Eclipse workspace and import existing code into it.
My question is,
if my app files are in "com.whatever.projectname", do
I create the new project in "com" or in "whatever" or
in "projectname"?None of the above. Create the new project in a directory that above "com". If it's more than one level above it you can set the project properties to pick up source from the directory immediately above "com".
Does it matter? Also, will
creating the project prevent me in any way from making
manual changes to files outside of eclipse and
compiling using javac if I want to?Nope. If Eclipse is running at the time it won't know about your changes until you click on "Refresh" on the project.

Similar Messages

  • General Eclipse Question (Not a NetBeans vs Eclipse Thread!)

    I am going to play around with Vaadin, and I am going to use Eclipse and the Vaadin plugin for this play.
    In reading the Book of Vaadin, the author actually recommend downloading Eclipse, unZIPping it, and running it from that unZIPped archive instead of "installing" it. The author mentions more control and less aggravation in the long run.
    Now, I don't use Eclipse much at all (I use NetBeans usually). What I have done in the past with BOTH NetBeans and Eclipse is:
    1) Install from repo, run as my account for work, run as root to do updates and install plugins.
    2) Install from repo, run as my account for work AND plugin installs/updates.
    I prefer #2 as it's less of an issue to just "blow away" all the plugins and start again if I need to.
    My bottom-line question is: "Does running Eclipse from my 'local' /home/xxx without actually 'installing' it really make that much difference compared to #2 above?"
    I'm hoping someone that has more experience with this can render an opinion. Also, if any of you have experience with Vaadin, do you have any tips for a noob?!?

    One consideration with running Eclipse from a local unzipped install is being able to create multiple instances, with a different mix plugins. I keep three core versions going for Java, Python, and Android development. I've found some plugins do not always play well with others in Eclipse. At least that was my experience with Ganymede and Helios. My Java instance is loaded up with a bunch of enterprise junk, like JBoss Drools and Spring plugins, so it can sometimes get bogged down at start up when connecting to remote resources over VPN.
    I've found that limiting the number of plugins I keep in any instance I use is helpful in keeping it stable. Note that you'll also need separate workspaces for each instance. Also, to keep your sanity, tarball a backup before installing or updating any plugins. Probably not for everyone, but it works for me.

  • Pretty simple Eclipse question... about imports

    hi, i am developing with Eclipse. I am relatively new with it. So say I have two folders:
    \source\java\Folder1
    and
    \source\java\Folder2\Package1
    I want to import a class from Folder1 and some classes from Package1. How do i do that in Eclipse? i tried
    adding a classpath variable under Windows->Preferences and i am still getting the error that this package
    and these classes cannot be resolved. Any ideas? thanks

    thanks, that worked. I had already done that, but for some reason it did not update until i changed classes
    and then returned to the old class in question... thanks for the help. i really appreciate it.....

  • ECLIPSE question...what am i doing wrong???

    hi, i downloaded Eclipse 3.1 recently and i started playing with it today. I noticed
    right away, though, that there is something strange and maybe I have some
    settings I need to adjust. I have a project called 'LOG' that sits in the root
    workspace directory. In that project is a class called LOG.
    Now, I created another project called 'practice'. In that project I have 2 classes:
    The first is a class called practice1, which is in NO package, it is just by itself in
    the project.
    The second is a class called practice2, which resides in a package IN the
    practice project.
    The problem is that I added the 'LOG' project to my build path, but only practice1 can see it! I never had that problem in Eclipse 2.1. In that version if I loaded project B
    into project A, then all classes in project A could see classes in project B.
    Anyways, does understand where i am going awry? I would appreciate it.
    Thanks, Peter

    yawmark, what exactly is a namespace, and what is the default namespace?
    Also, if it is what i think it is, then it makes sense even if for nothing else than
    organizational purposes. I have written a swing app for my work that has turned
    from a simple class that does a few things to doing TONS of stuff. It relies on
    20-25 other classes to get the JAR file ready. I didn't understand the virtues of
    packages until recently. My JAR has gotten progressively more and more difficult
    to put together. Now i am going to just bite the bullet and go around and package
    up all my classes! I should've done this a LONG time ago!

  • JNI + Eclipse question

    I've been focusing on JNI lately. I have googled some good tutorials on how to work it. Now, my question is, if I have both the c++ and java can i some how link the project. like, have a project that contains both the c and java side of the code. Also, noticed when I made a c++ project and tryed to do #include <jni.h> it could not be resolved. I am assuming I would have to add this to the includes? If the compiler matters, I use xubuntu with the build-essential package. Thanks if you could help me:)

    Hi,
    I think you've posted your question in the wrong section of the forum that's why you're not getting a reply. Try 'new to java' or 'java programming' maybe?

  • Coldfusion Extensions and Eclipse Question...

    Hello,
    I'm wondering if the CF 8 Extensions for Eclipse will let you
    automatically close CFML tags like &lt;cfquery&gt; or
    &lt;cfoutput&gt; automatically? I'm comparing to how DW
    does it. After you open the tag, when you begin to close the tag
    with &quot;&lt;/&quot; it will guess the tag you want
    to close and finish it for you. Anyone know if that functionality
    exists? Thanks.

    Thanks. but I think that setting only controls automatically
    putting the ending &quot;&gt;&quot; on your tag. I
    notice that when I being a tag by typing
    &quot;&lt;&quot; the IDE sticks the ending
    &quot;&gt;&quot; in there so I end up with
    &quot;&lt;&gt;&quot; with my cursor inbetween. I
    can key my tag namd, and fill in parts of it and then when I typ
    &quot;&lt;/&quot; I only end up with
    &quot;&lt;/&gt;&quot; and it never does try to
    guess my ending tag.
    I'm very interested in Eclipse since it is supposed to have
    these great debugging features for CF8, however, I also need a
    great editor like DW. Sine I do more coding than debugging, I
    suspect I'll be sticking with DW. It is after all, a pretty nice
    editor for CF and so far I'm finding it more quick to code in for
    reasons just like tag completion.
    ...Brad

  • An Eclipse question

    i'd like to ask why when i debug a program at Eclipse in the console session and especially in the Problems tab shows the problems of all the programs? Do i make something wrong??
    Im new at java and sorry if there are any mistake at my english...
    thnx for the answers :)

    ConverseVIP wrote:
    i'd like to ask why when i debug a program at Eclipse in the console session and especially in the Problems tab shows the problems of all the programs? Do i make something wrong??
    Im new at java and sorry if there are any mistake at my english...
    thnx for the answers :)Eclipse will show errors and warnings for all of your projects in the workspace. This is normal.

  • Eclipse question-where did my projects go?

    hi,
    i just upgraded to Eclipse 3.1. I set the workspace to the same folder as before, but when
    I bring up the new program it does not detect any of my projects. Any advice for a man with
    this type of problem? thanks

    thanks for the reply. i have been working on this all
    day
    with a little bit of success, but i am still not
    finished.
    Is there any difference to eclipse between classes in
    packages and not? I have a project called 'LOG' that
    is
    included in a certain other project, but NONE of the
    classes in the latter project can see any of the
    classes in
    the LOG project. it is so frustrating since there
    e seems to
    be no rhyme or reason to it, other classes can see
    the
    LOG contents.
    In 'project properties', you can add a 'dependent' project. That project's source, class and JAR files will then be included in the target project.
    Also, i did notice one problem i had was that in
    this new
    release of eclipse they added a 'src' and 'bin'
    folder to
    each project folder, presumably to keep your class
    and
    java files seperate. I had to tell each project to
    look in its
    root directory for that stuff. Anyways, it works on
    some but
    not on all. Any other advice ?
    For a web application, you source files should go in 'src' or 'source'. Your class files should go in WEB-INF/classes. I'm not sure what you mean by 'root'. You should have packages, unless your application is extremely small.
    any advice is appreciated, i am at my wits end! thanksNever fear. IDE's are supposed to make things easier, not harder. You'll get the hang of it soon.
    - Saish

  • Eclipse question: why no compile?

    hi,
    i have my Eclipse workspace in:
    c:\\.....\\java, in this java folder I have a project called FORS, with 2 folders in the
    project, one called Site, the other called JFORLIBRARY. In the Site folder, when I
    save the classes (in Eclipse) Eclipse automatically compiles them from
    scratch.
    However, in the FORS directory and in the Site directory when I save (in Eclipse)
    i get no compile. Is there some setting I have to change to get it to compile any
    path in this folder? Does anyone know how i can get all these classes to
    compile when i save them in eclipse? thanks

    Doesn't it compile or don't you just notice? If you
    have incremental compiling turned on, you won't
    notice anything on saving, because the class files
    already exist.Aer you asking me or the OP? In my case, I know it wasn't compiling because I would change the code and the program would be unaffected. I deleted the binaries and they were never recreated by Eclipse. I have other projects that work fine so it's not that I don't understand how it works, it's that this one project is all jacked up.
    The biggest beef I have with Eclipse is that when IBM wrote it, they used the asinine Microsoft-esque approach of depending on a clean application exit. If the program (or your OS) crashes, it can completely screw up your workspace. I don't know what they do at close but it would be better if they made incremental changes instead of waiting for the application to close. For the life of me, I can't understand why they haven't changed this after IBM open-sourced it.

  • ?? Eclipse question... where did my classes go??

    hi, i am using Eclipse and I ran the Project->rebuild all. When It completed all my
    classes had been deleted! What is going on? does anyone know? i am not THAT
    worried because my java files are still intact, but it is a bit odd i think.
    Any advice? thanks!

    otherwise, where's it going to put the new class files?

  • Eclipse question: generated comments for conditional statments?

    out of habit, i always mark the end of my conditionals, for example:
    while (something) {
    } //end while
    if(something){
    }//end if
    else{
    }//end elseis is possible to designate comments to be appended to the automatically generated brackets in eclipse for
    certain conditionals?

    yawmark, you are the java GURU ( i know everyone hates
    that word, but it fits). Thanks. I looked everywhere
    under preferences but i never saw that screen until
    you just mentioned it.Well all marvel at yawmark we do!
    >
    tsith,
    i know many people hate those comments, but it helps
    me keep things straight, plus i comment extensively
    so when i need to go back and change a program i can
    figure out what's going on easily. it really works!Hey - if it works for you, then go for it. I guess for me my loop/conditional/method blocks are relatively short, and I'm consistent with my indentation, and my editor will let me know what braces are matching, and it supports folding - so marking the ends of those things doesn't really make sense.
    now
    tell the true tsith, you aren't the kind of person
    that programs an entire program on one line with 0
    comments,
    right? say it isn't so! =)Most of my co-workers think I'm pretty verbose wrt comments. I tend to comment intent pretty heavily, but I don't comment individual lines of code.
    Sometimes I use comments as a way to exercise my creative nature and break up the unrelenting monotony of the day - but then - sometimes I use the fora for that purpose as well!
    good luck
    Lee
    // end post

  • Eclipse question if you can answer

    Just curious. where can i find the generated servlet code in eclipse? Like i have a j2ee project in eclipse name JSPEXAMPLE and then i have a jsp page which is in JSPEXAMPLE/WebContent/WEB-INF. i have this jsp code.
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%@ page import = "java.util.Calendar" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    The server time is now
    <%
      Calendar now =Calendar.getInstance();
      int hour = now.get(Calendar.HOUR_OF_DAY);
      int minute = now.get(Calendar.MINUTE);
      if(hour<10)
           out.println("0" + hour);
      else
           out.println(hour);
      out.println(":");
      if(minute<0)
           out.println("0" + minute);
      else
           out.println(minute);
    %>
    </body>
    </html>I would like to see my generated servlet. i can't find it anywhere. Any ideas?

    It's nothing to do with Eclipse, your sevlet container compiles JSPs. Refer to the docs for whatever container you're using to see where it puts them, or Google it. I can't remember where Tomcat puts compiled JSPs, sorry!
    Be prepared to see some pretty ugly code though :-)

  • Java IDE (Eclipse) Question...

    Is there any way to import classes from outside a "Project"?
    For example, I have a very large set of packages (the "Substance Look and Feel") that clutters up my project when I import them. Is it possible to make a set of "General Libraries" that don't have to be imported into each project that uses them? Or, barring that, is there any way to import Substance into a project such that it doesn't deposit ~10 top-level packages into the directory?
    Thanks!

    > Is there any way to import classes from outside a "Project"?
    Yep.
    Project > Properties > Java Build Path > Libraries > Add Library
    And s� �n...

  • Eclipse java import question

    This is my first time using 3rd party open source code within one of my projects. I'm using Eclipse for development and I just imported the 3rd party project from their SVN repository. I imported the new project into my workspace. Now I need to use it in another project in Eclpse. I know I need an import statement to use it, but I'm not sure how to go about this. Any help? Do you need any more information? TIA

    Right, but since the 3rd party project is in my workspace shouldn't the import statement look like this?
    import jaudiotagger.src.org.Audio.*;
    If that is the package name. It's a very strange one, are you sure it shouldn't be just org.audio.*? Have a look in the Jar file.
    It isn't recognizing jaudiotagger at all when I try to do a ctr+space.So is it really in your workspace?
    These are really Eclipse questions, not Java questions, you would be better off at an Eclipse forum. But I think it's pretty simple to fix.

  • JDev vs. Eclipse wtp1.0 - something I am looking for to have in JDev

    I used to using eclipse (wtp) for J2EE projects. Recently found JDev. After playing a couple of days, quite impressed. Really good stuff, and more comprehensive functions for J2EE develpment, thanks to JDev folks.
    However, compared to eclipse, there are some trival things I feel not so convinent when using JDev, don't know if it's designed that way or I have not captured the right way to use the tool:
    - confusing "Erase from disk". If you create a new app with the same name, JDev will pick all stuffs that are supposed to erased. It's a bit confusing between 'delete' and 'erase form disk'
    - I did not find a way to remove a business method automatically from a EJB. So I have to clean up all related stuffs manually.
    - Code Insight does not work with user defined utility classes in JSP editor.
    - No consistency check on package declaration and folder location. You can simply change the package declaration after a java class is created, and make youself lost in compiling, because JDev does not check the consistency of package declaration and saving location path.
    - I love eclipse question marker signs on the navigation window to indicates something wrong in the package.
    - ... and other couple of things later .
    JDev is really good stuff, and Oracle is so generous to give it to OS community. Just trying to feed back something as a user, so to contribute my part to make JDev better...
    thanks

    Jeff,
    thanks for your suggestions.
    - I did not find a way to remove a business method automatically from a EJB. So I have to clean up all related stuffs manually.
    I filed bug 5143596
    Code Insight does not work with user defined utility classes in JSP editor.
    do you mean useBean or what kind of utility classes are you referring to?
    No consistency check on package declaration and folder location. You can simply change the package declaration after a java class is created, and make youself lost in compiling, because JDev does not check the consistency of package declaration and saving location path
    Did you try to rename the packaging using the refactoring option ? This should make sure everythin is created properly for you.
    - I love eclipse question marker signs on the navigation window to indicates something wrong in the package.
    Nevertheless, I filed bug 5143617
    Filed bug 5143628
    Waiting for more input ;-)
    thanks
    Frank

Maybe you are looking for

  • Acrobat not displaying PDFs properly in browser

    this seems to only happen on chrome where if viewed in browser some graphics, especially text isnt displayed properly or in this case not at all. You can see the "Fi" in financial is missing. This is a major problem because most people who view the s

  • Stop iTunes 11.0 from launching automatically when iPhone is connected?

    Hi all - Just got an iPhone 5 and connected it to my computer to charge. Discovered upon doing so that my version of iTunes is now upgraded to 11.0.  How do I stop iTunes 11.0 from automatically launching when I connect my iPhone?  I can't find an ap

  • Invalid signature on pdf generated by SAP

    Hi all, i have an issue with a pdf file generated by Adobe Livecycle Designer on SAP Netweaver.  The signature is invalid while opening the file. I have yet added the signer as trusted in certificate properties, but i have the same problem. In attach

  • Organizer 12 slide show editor not working

    The editor button in organizer 12 slide show is grayed out, therefore not working. Is there a fix for this. It is inconvenient to go back into pe12 and back to organizer just to fix a photo.

  • Contacts sync from phone to icloud

    I have a iphone 4 and I'm updating my contacts when I switch the contacts button on it asks contacts "contacts previously merged will be synced with icloud." Is it going to undue all the work I just did fixing my contacts ie I have 4 contacts for one