Home » Language IDEs » Java Development Tools (JDT) » Building individual class files, using projects and TODO, and version
Building individual class files, using projects and TODO, and version [message #126524] |
Thu, 11 December 2003 18:50  |
Eclipse User |
|
|
|
Originally posted by: norepliesplease.reply-to-group.com
Hi there, newbie to Eclipse, blah, blah, blah.
I am trying to use Eclipse to do development on a couple of simultaneous
Java projects. I have the projects set up correctly to where Eclipse is
recognizing them as projects (I think), but I can't compile individual
classes or even the project.
Here's the deal (the file content between foo and bar is completely
different, this is just an example). I created each of these projects as
new...java Project and changed the source directory to point at my existing
source.
foo <-- project 1
package com.foo
fooMain.java
fooForm.java
fooUtils.java
bar <-- project 2
package com.bar
barMain.java
barForm.java
barUtils.java
I have set up some main method tests in my barUtils.java file and I would
like to compile and execute it within Eclipse to verify my unit testing (I
will eventually use JUnit but I'm in serious STMF mode right now). I have
gone through the tutorials but they're about creating new projects, not
using Eclipse with existing ones.
The file compiles and does its thing fine from the command line with javac.
But when I try to Run... barUtils as a Java application I get two issues:
1. It tries to compile everything in both packages, foo and bar.
2. The barUtils method fails with a "ClassDef not found" error.
I can compile the entire project fine using Ant from the command line, but
when I try to run Ant... with the build.xml file from within Eclipse, I get
an error referring to org.apache.tools.ant.DemuxOutputStream with an
instruction to check the classpath. I looked at the javadoc and this class
does not appear in my tools.jar file, yet I can compile from the command
line without it.
Also, one more thing: when I enter a //TODO (text of to-do) as a comment
line in the editor window, I get a TODO entry in the task list but no check
box to check when it's complete. On the other hand, when I right-click in
the margin and Add Task, I get a check box but no indicator in the code. Am
I doing something wrong or is this deliberate?
One more thing...which version should I be using? I tried to run 3.0M5 and
got an
I will be surprised if anyone reads this and replies 'cause it's so long, so
please...surprise me. I will try to give back by helping others once I buy a
clue. I like Eclipse, I've ditched Netbeans for it (our corporate
alternative being Visual Cafe, blech) but I need to get some of this stuff
worked out to really get going. Thanks.
|
|
|
Re: Building individual class files, using projects and TODO, and version [message #126537 is a reply to message #126524] |
Thu, 11 December 2003 19:01   |
Eclipse User |
|
|
|
Originally posted by: norepliesplease.reply-to-group.com
Oops...I forgot to mention my error with 3.0M5.
I try to start it up and I get a dialog box stating "JVM terminated Exit
Code=1 c:\winnt\system32\javaw.exe -cp c:\eclipse\startup.jar
eclipse.core.launcher.Main -os win32 -ws win32 -arch x86 -showsplash
c:\eclipse\eclipse.exe -showsplash 600".
"Eclipse" <norepliesplease@reply-to-group.com> wrote in message
news:bravu0$pf7$1@eclipse.org...
> Hi there, newbie to Eclipse, blah, blah, blah.
>
> I am trying to use Eclipse to do development on a couple of simultaneous
> Java projects. I have the projects set up correctly to where Eclipse is
> recognizing them as projects (I think), but I can't compile individual
> classes or even the project.
>
> Here's the deal (the file content between foo and bar is completely
> different, this is just an example). I created each of these projects as
> new...java Project and changed the source directory to point at my
existing
> source.
>
> foo <-- project 1
> package com.foo
> fooMain.java
> fooForm.java
> fooUtils.java
>
> bar <-- project 2
> package com.bar
> barMain.java
> barForm.java
> barUtils.java
>
> I have set up some main method tests in my barUtils.java file and I would
> like to compile and execute it within Eclipse to verify my unit testing (I
> will eventually use JUnit but I'm in serious STMF mode right now). I have
> gone through the tutorials but they're about creating new projects, not
> using Eclipse with existing ones.
>
> The file compiles and does its thing fine from the command line with
javac.
> But when I try to Run... barUtils as a Java application I get two issues:
>
> 1. It tries to compile everything in both packages, foo and bar.
> 2. The barUtils method fails with a "ClassDef not found" error.
>
> I can compile the entire project fine using Ant from the command line, but
> when I try to run Ant... with the build.xml file from within Eclipse, I
get
> an error referring to org.apache.tools.ant.DemuxOutputStream with an
> instruction to check the classpath. I looked at the javadoc and this class
> does not appear in my tools.jar file, yet I can compile from the command
> line without it.
>
> Also, one more thing: when I enter a //TODO (text of to-do) as a comment
> line in the editor window, I get a TODO entry in the task list but no
check
> box to check when it's complete. On the other hand, when I right-click in
> the margin and Add Task, I get a check box but no indicator in the code.
Am
> I doing something wrong or is this deliberate?
>
> One more thing...which version should I be using? I tried to run 3.0M5 and
> got an
>
> I will be surprised if anyone reads this and replies 'cause it's so long,
so
> please...surprise me. I will try to give back by helping others once I buy
a
> clue. I like Eclipse, I've ditched Netbeans for it (our corporate
> alternative being Visual Cafe, blech) but I need to get some of this stuff
> worked out to really get going. Thanks.
>
>
>
|
|
|
Re: Building individual class files, using projects and TODO, and version [message #127887 is a reply to message #126524] |
Tue, 16 December 2003 12:13   |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Eclipse wrote:
>Hi there, newbie to Eclipse, blah, blah, blah.
>
>I am trying to use Eclipse to do development on a couple of simultaneous
>Java projects. I have the projects set up correctly to where Eclipse is
>recognizing them as projects (I think), but I can't compile individual
>classes or even the project.
>
>
You can't compile individual classes. Eclipse uses an incremental
compiler i.e. you can either use auto-build which will build what's
needed whenever you save or you can manually start the builder (all or a
set of projects). You can also rebuild (all or a set of projects).
>Here's the deal (the file content between foo and bar is completely
>different, this is just an example). I created each of these projects as
>new...java Project and changed the source directory to point at my existing
>source.
>
>foo <-- project 1
> package com.foo
> fooMain.java
> fooForm.java
> fooUtils.java
>
>bar <-- project 2
> package com.bar
> barMain.java
> barForm.java
> barUtils.java
>
>I have set up some main method tests in my barUtils.java file and I would
>like to compile and execute it within Eclipse to verify my unit testing (I
>will eventually use JUnit but I'm in serious STMF mode right now). I have
>gone through the tutorials but they're about creating new projects, not
>using Eclipse with existing ones.
>
>The file compiles and does its thing fine from the command line with javac.
>But when I try to Run... barUtils as a Java application I get two issues:
>
>1. It tries to compile everything in both packages, foo and bar.
>
>
See above. It compiles what's not yet built. You can disable this
preference if you wish (see Run/Debug prefs).
>2. The barUtils method fails with a "ClassDef not found" error.
>
>
You need to post more info here to get any help on this one (e.g. which
class is not found).
>I can compile the entire project fine using Ant from the command line, but
>when I try to run Ant... with the build.xml file from within Eclipse, I get
>an error referring to org.apache.tools.ant.DemuxOutputStream with an
>instruction to check the classpath. I looked at the javadoc and this class
>does not appear in my tools.jar file, yet I can compile from the command
>line without it.
>
>
Check the Ant > Runtime preferences: the classpath should contain:
Ant Home Entries
org.appache.ant/lib/ant.jar
org.appache.ant/lib/optional.jar
Global Entries
tools.jar from you JDK
>Also, one more thing: when I enter a //TODO (text of to-do) as a comment
>line in the editor window, I get a TODO entry in the task list but no check
>box to check when it's complete. On the other hand, when I right-click in
>the margin and Add Task, I get a check box but no indicator in the code. Am
>I doing something wrong or is this deliberate?
>
>
You cannot remove them via Task list - only via code.
>One more thing...which version should I be using? I tried to run 3.0M5 and
>got an
>
>
3.0 M6 which is about to come out in the next days.
Dani
>I will be surprised if anyone reads this and replies 'cause it's so long, so
>please...surprise me. I will try to give back by helping others once I buy a
>clue. I like Eclipse, I've ditched Netbeans for it (our corporate
>alternative being Visual Cafe, blech) but I need to get some of this stuff
>worked out to really get going. Thanks.
>
>
>
>
>
|
|
|
Re: Building individual class files, using projects and TODO, and version [message #128194 is a reply to message #127887] |
Wed, 17 December 2003 10:52   |
Eclipse User |
|
|
|
Originally posted by: norepliesplease.reply-to-group.com
Thanks for the help. I didn't include the details of the ClassDef error
because I thought it was only happening due to an app misconfig.
I will try M6 when it's available. A couple of questions about that:
1. There's no "installer" for Eclipse, right? Just unpack into a directory
and go to town?
2. I have a set of classes I like to use for standard functions like file
i/o, etc. They're in a package/folder, let's say it's com.bigco.chestnuts. I
would like to make this a standalone project available in the IDE but not
recompile every time I make changes to another open project. How would you
do this?
3. Any recommendations about UML plugins?
Like I said, thanks a lot for the help.
"Daniel Megert" <daniel.megert@gmx.net> wrote in message
news:brnef6$ufn$1@eclipse.org...
> Eclipse wrote:
>
> >Hi there, newbie to Eclipse, blah, blah, blah.
> >
> >I am trying to use Eclipse to do development on a couple of simultaneous
> >Java projects. I have the projects set up correctly to where Eclipse is
> >recognizing them as projects (I think), but I can't compile individual
> >classes or even the project.
> >
> >
> You can't compile individual classes. Eclipse uses an incremental
> compiler i.e. you can either use auto-build which will build what's
> needed whenever you save or you can manually start the builder (all or a
> set of projects). You can also rebuild (all or a set of projects).
>
> >Here's the deal (the file content between foo and bar is completely
> >different, this is just an example). I created each of these projects as
> >new...java Project and changed the source directory to point at my
existing
> >source.
> >
> >foo <-- project 1
> > package com.foo
> > fooMain.java
> > fooForm.java
> > fooUtils.java
> >
> >bar <-- project 2
> > package com.bar
> > barMain.java
> > barForm.java
> > barUtils.java
> >
> >I have set up some main method tests in my barUtils.java file and I would
> >like to compile and execute it within Eclipse to verify my unit testing
(I
> >will eventually use JUnit but I'm in serious STMF mode right now). I have
> >gone through the tutorials but they're about creating new projects, not
> >using Eclipse with existing ones.
> >
> >The file compiles and does its thing fine from the command line with
javac.
> >But when I try to Run... barUtils as a Java application I get two issues:
> >
> >1. It tries to compile everything in both packages, foo and bar.
> >
> >
> See above. It compiles what's not yet built. You can disable this
> preference if you wish (see Run/Debug prefs).
>
> >2. The barUtils method fails with a "ClassDef not found" error.
> >
> >
> You need to post more info here to get any help on this one (e.g. which
> class is not found).
>
> >I can compile the entire project fine using Ant from the command line,
but
> >when I try to run Ant... with the build.xml file from within Eclipse, I
get
> >an error referring to org.apache.tools.ant.DemuxOutputStream with an
> >instruction to check the classpath. I looked at the javadoc and this
class
> >does not appear in my tools.jar file, yet I can compile from the command
> >line without it.
> >
> >
> Check the Ant > Runtime preferences: the classpath should contain:
> Ant Home Entries
> org.appache.ant/lib/ant.jar
> org.appache.ant/lib/optional.jar
> Global Entries
> tools.jar from you JDK
>
> >Also, one more thing: when I enter a //TODO (text of to-do) as a comment
> >line in the editor window, I get a TODO entry in the task list but no
check
> >box to check when it's complete. On the other hand, when I right-click in
> >the margin and Add Task, I get a check box but no indicator in the code.
Am
> >I doing something wrong or is this deliberate?
> >
> >
> You cannot remove them via Task list - only via code.
>
> >One more thing...which version should I be using? I tried to run 3.0M5
and
> >got an
> >
> >
> 3.0 M6 which is about to come out in the next days.
>
> Dani
>
> >I will be surprised if anyone reads this and replies 'cause it's so long,
so
> >please...surprise me. I will try to give back by helping others once I
buy a
> >clue. I like Eclipse, I've ditched Netbeans for it (our corporate
> >alternative being Visual Cafe, blech) but I need to get some of this
stuff
> >worked out to really get going. Thanks.
> >
> >
> >
> >
> >
>
|
|
|
Re: Building individual class files, using projects and TODO, and version [message #128221 is a reply to message #128194] |
Wed, 17 December 2003 11:29  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Eclipse wrote:
>Thanks for the help. I didn't include the details of the ClassDef error
>because I thought it was only happening due to an app misconfig.
>
>I will try M6 when it's available. A couple of questions about that:
>
>1. There's no "installer" for Eclipse, right? Just unpack into a directory
>and go to town?
>
>
Yes. But remember to always use a fresh directory - don't extract over
an existing release.
>2. I have a set of classes I like to use for standard functions like file
>i/o, etc. They're in a package/folder, let's say it's com.bigco.chestnuts. I
>would like to make this a standalone project available in the IDE but not
>recompile every time I make changes to another open project. How would you
>do this?
>
>
Since the compiler is incremental you don't have to do anything (except
reference that project from the other ones).
>3. Any recommendations about UML plugins?
>
>
Search the newsgroups. This has been answered several times.
>Like I said, thanks a lot for the help.
>
>
>
>
>"Daniel Megert" <daniel.megert@gmx.net> wrote in message
>news:brnef6$ufn$1@eclipse.org...
>
>
>>Eclipse wrote:
>>
>>
>>
>>>Hi there, newbie to Eclipse, blah, blah, blah.
>>>
>>>I am trying to use Eclipse to do development on a couple of simultaneous
>>>Java projects. I have the projects set up correctly to where Eclipse is
>>>recognizing them as projects (I think), but I can't compile individual
>>>classes or even the project.
>>>
>>>
>>>
>>>
>>You can't compile individual classes. Eclipse uses an incremental
>>compiler i.e. you can either use auto-build which will build what's
>>needed whenever you save or you can manually start the builder (all or a
>>set of projects). You can also rebuild (all or a set of projects).
>>
>>
>>
>>>Here's the deal (the file content between foo and bar is completely
>>>different, this is just an example). I created each of these projects as
>>>new...java Project and changed the source directory to point at my
>>>
>>>
>existing
>
>
>>>source.
>>>
>>>foo <-- project 1
>>> package com.foo
>>> fooMain.java
>>> fooForm.java
>>> fooUtils.java
>>>
>>>bar <-- project 2
>>> package com.bar
>>> barMain.java
>>> barForm.java
>>> barUtils.java
>>>
>>>I have set up some main method tests in my barUtils.java file and I would
>>>like to compile and execute it within Eclipse to verify my unit testing
>>>
>>>
>(I
>
>
>>>will eventually use JUnit but I'm in serious STMF mode right now). I have
>>>gone through the tutorials but they're about creating new projects, not
>>>using Eclipse with existing ones.
>>>
>>>The file compiles and does its thing fine from the command line with
>>>
>>>
>javac.
>
>
>>>But when I try to Run... barUtils as a Java application I get two issues:
>>>
>>>1. It tries to compile everything in both packages, foo and bar.
>>>
>>>
>>>
>>>
>>See above. It compiles what's not yet built. You can disable this
>>preference if you wish (see Run/Debug prefs).
>>
>>
>>
>>>2. The barUtils method fails with a "ClassDef not found" error.
>>>
>>>
>>>
>>>
>>You need to post more info here to get any help on this one (e.g. which
>>class is not found).
>>
>>
>>
>>>I can compile the entire project fine using Ant from the command line,
>>>
>>>
>but
>
>
>>>when I try to run Ant... with the build.xml file from within Eclipse, I
>>>
>>>
>get
>
>
>>>an error referring to org.apache.tools.ant.DemuxOutputStream with an
>>>instruction to check the classpath. I looked at the javadoc and this
>>>
>>>
>class
>
>
>>>does not appear in my tools.jar file, yet I can compile from the command
>>>line without it.
>>>
>>>
>>>
>>>
>>Check the Ant > Runtime preferences: the classpath should contain:
>>Ant Home Entries
>> org.appache.ant/lib/ant.jar
>> org.appache.ant/lib/optional.jar
>>Global Entries
>> tools.jar from you JDK
>>
>>
>>
>>>Also, one more thing: when I enter a //TODO (text of to-do) as a comment
>>>line in the editor window, I get a TODO entry in the task list but no
>>>
>>>
>check
>
>
>>>box to check when it's complete. On the other hand, when I right-click in
>>>the margin and Add Task, I get a check box but no indicator in the code.
>>>
>>>
>Am
>
>
>>>I doing something wrong or is this deliberate?
>>>
>>>
>>>
>>>
>>You cannot remove them via Task list - only via code.
>>
>>
>>
>>>One more thing...which version should I be using? I tried to run 3.0M5
>>>
>>>
>and
>
>
>>>got an
>>>
>>>
>>>
>>>
>>3.0 M6 which is about to come out in the next days.
>>
>>Dani
>>
>>
>>
>>>I will be surprised if anyone reads this and replies 'cause it's so long,
>>>
>>>
>so
>
>
>>>please...surprise me. I will try to give back by helping others once I
>>>
>>>
>buy a
>
>
>>>clue. I like Eclipse, I've ditched Netbeans for it (our corporate
>>>alternative being Visual Cafe, blech) but I need to get some of this
>>>
>>>
>stuff
>
>
>>>worked out to really get going. Thanks.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>
>
>
>
|
|
|
Goto Forum:
Current Time: Tue May 06 00:01:44 EDT 2025
Powered by FUDForum. Page generated in 0.03025 seconds
|