Question

Don't know how to open workspace in Eclipse

Asked by: kayvey

There is supposed to be an XML file that is a workspace, and I don't understand how to open it.  

I am running Ubuntu.. Follows is a command line of all possible relevant files. I have put them in workspace" which seems to be what Eclipse wants

kayve@kayve-laptop:~$ cd Documents/
kayve@kayve-laptop:~/Documents$ cd ..
kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/workspace$ pwd
/home/kayve/workspace
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4
kayve@kayve-laptop:~/workspace$ cd HW4
kayve@kayve-laptop:~/workspace/HW4$ ls
06~Chapter_09.zip  ch09
kayve@kayve-laptop:~/workspace/HW4$ cd ch09/
kayve@kayve-laptop:~/workspace/HW4/ch09$ ls
Lists
kayve@kayve-laptop:~/workspace/HW4/ch09$ cd Liat
bash: cd: Liat: No such file or directory
kayve@kayve-laptop:~/workspace/HW4/ch09$ cd Lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls nbproject/
build-impl.xml  genfiles.properties  project.properties  project.xml
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls src
lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls src/lists
CoarseList.java  LazyList.java      OptimisticList.java
FineList.java    LockFreeList.java
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls test
lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls test/lists
CoarseListTest.java  LazyListTest.java      OptimisticListTest.java
FineListTest.java    LockFreeListTest.java
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$



This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-10-28 at 14:46:00ID24852838
Topics

Eclipse

,

Linux

,

Linux Programming

Participating Experts
2
Points
500
Comments
111

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Java Eclipes step by step instructions
    Hi, I am new to programming and need some help learning how to get Eclipes working properly. I have used JCreate and it works great. I heard about this Eclipes program so I wanted to try it out. I downloaded and installed it. What I need is a step by step doc that shows me ho...
  2. how to config struts with eclipes
    Hello experts, I am using eclipse 3.1 and tomcat 5.5 and struts 1.2.8. I have successed to config tomcat with eclipse but I cann't getting config struts with eclipse. How to download Easy struts for eclipes pls tell me
  3. NetBeans or eclips IDE's for java
    NetBeans or eclips what to use? which is better? and why?
  4. print the result from Eclips
    if I run my programe and need to print out the result from the consol of eclips on printer.....How can I do that ??

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mwvisa1Posted on 2009-10-28 at 15:15:27ID: 25688876

Are you sure you want to open the XML file?
Did you pick the option previously to use a workspace as the default workspace, but you are now needing to open a different workspace?


From inside Eclipse, choose File | Switch Workspace | Other, then paste  "/home/kayve/workspace" in the workspace box without the quotes.

While still on the "select a workspace" dialog, there is a twisty you can expand to copy settings if you so choose.


If that is not what you need, please clarify what you are trying to do.

 

by: kayveyPosted on 2009-10-28 at 15:17:18ID: 25688887

There is supposed to be a project in here that I am supposed to be able to open and I am told it has to do with an xml file. Of course the Java files are relevant, they will be a part of the workspace.  

 

by: kayveyPosted on 2009-10-28 at 15:18:52ID: 25688905

I am at square 0 here and I am supposed to know wtf to do with somebody else's code. I don't know where to start I don't know how to open existing project it is just an endless series  of meaningless windows to me.  You can see all the code in the command lines I have shown. THey are all inside ~/workspace. I have no idea how to start with this.

 

by: kayveyPosted on 2009-10-28 at 15:20:58ID: 25688921

Eclipse is an endless bunch of hierarchical directories that are superfluous and nonsensical to me. I showed you all the files with the "ls" command something that is familiar to me. I have no idea what to feed this monstrosity.

 

by: kayveyPosted on 2009-10-28 at 15:22:01ID: 25688926

.

 

by: kayveyPosted on 2009-10-28 at 15:26:56ID: 25688957

There is supposed to be code I showed you all the files there is supposed to be an existing project. I have no idea how to interface with this extraneous nonsense.  I don't know why what I am saying is not clear. I don't know why everybody hates me I don't understand what anyone wants from me I only know they always say I am doing it wrong.

 

by: kayveyPosted on 2009-10-28 at 15:28:44ID: 25688969

I don't want the top level workspace I want whatever workspace exists that I untarred into ~/workspace/HW4  with my pwd, cd and ls commands you can see the structure of the existing code.

 

by: kayveyPosted on 2009-10-28 at 15:29:15ID: 25688974

kayve@kayve-laptop:~/workspace$ pwd
/home/kayve/workspace
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4
kayve@kayve-laptop:~/workspace$ cd HW4
kayve@kayve-laptop:~/workspace/HW4$ ls
06~Chapter_09.zip  ch09
kayve@kayve-laptop:~/workspace/HW4$ cd ch09/
kayve@kayve-laptop:~/workspace/HW4/ch09$ ls
Lists
kayve@kayve-laptop:~/workspace/HW4/ch09$ cd Liat
bash: cd: Liat: No such file or directory
kayve@kayve-laptop:~/workspace/HW4/ch09$ cd Lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls nbproject/
build-impl.xml  genfiles.properties  project.properties  project.xml
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls src
lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls src/lists
CoarseList.java  LazyList.java      OptimisticList.java
FineList.java    LockFreeList.java
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls test
lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls test/lists
CoarseListTest.java  LazyListTest.java      OptimisticListTest.java
FineListTest.java    LockFreeListTest.java
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ pwd
/home/kayve/workspace/HW4/ch09/Lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls ..
Lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$

 

by: mrjoltcolaPosted on 2009-10-28 at 15:32:10ID: 25688989

If it is a project, you will likely need to import the project.

Since I don't know what your instructor gave you, I can only guess. Eclipse does not require the project to be inside the workspace. It can be anywhere. Just open Eclipse, select a workspace (it can be any empty directory, or that high level workspace directory, then do "import"

File -> Import -> General -> Existing Projects into Workspace

Select root directory -> Browse -> Ok -> You should see the project listed

 

by: kayveyPosted on 2009-10-28 at 15:40:42ID: 25689041

you DO know what I was given I have shown the files plainly in the listing using "ls"  

I will give you screenshots now.

 

by: mrjoltcolaPosted on 2009-10-28 at 15:48:38ID: 25689099

>>you DO know what I was given I have shown the files plainly in the listing using "ls"

Try following my instructions.

If this is the level of patience you have, you are in for a lot of frustration.

 

by: kayveyPosted on 2009-10-28 at 15:49:59ID: 25689109

My screenshots shows that I plainly have done so.

 

by: mwvisa1Posted on 2009-10-28 at 15:50:02ID: 25689110

Okay, think I understand so take a deep breath and see if this helps.


Switch workspace to just /home/kayve/workspace .  The HW4 structure below are your project files.  HW4 you should consider the project name and by default Eclipse will treat it as such.


Anyway, establish your workspace as root of the folder I showed if not already.

Second, click File | New | Project .

See the image "New Project Screen" for what you want to look for as suspect you are creating a general Java project.  Therefore, you can choose Java project OR if the XML file being referenced is an ANT buildfile you can choose that.  Not to get you more confused, let's just go forward with Java Project (the more I look above, it appears you have a Netbeans project that you are porting to Eclipse).

Carrying on, on the next screen you want to pick the option shown in "Create From Existing Source Option" image.  You will then be able to browse and pick the correct project folder.  

*Again the more I look at this you have a Netbeans project here and looks like Lists is actually your project with src folder and package lists inside.  The other tests directory has your lists package and JUnit test classes which you can choose to put in same project in Eclipse or create a different project for.

Just to keep it simple let's just try to get you through the first step of adding the classes under src/lists first and then can worry about the test ones when you have a better understanding.  


*I have Netbeans and Eclipse on this machine which is Ubuntu as well, so if my above comments don't help you tonight I will be back on in the morning and can give a more step by step approach specific to Netbeans to Eclipse project import.

Should work for you as above.  After project is in Eclipse, you can set the source folder to /path/to/src.  Then lists will properly be recognized as a package name.

 

by: mwvisa1Posted on 2009-10-28 at 15:52:05ID: 25689120

Sorry mjc, I was typing this for a short while and didn't see your comments.  Hopefully I didn't duplicate your postings.  Since I am off for the night, it is good to know the wise one is here in my stead.

Night, sir.  Good luck, kayvey.  I am certain mjc can take care of you, but if this is still open when I get back in the morning I will comment further.

 

by: kayveyPosted on 2009-10-28 at 15:58:46ID: 25689162

here is build.xml

kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ more build.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="Lists" default="default" basedir=".">
    <description>Builds, tests, and runs the project Lists.</description>
    <import file="nbproject/build-impl.xml"/>
    <!--

    There exist several targets which are by default empty and which can be
    used for execution of your tasks. These targets are usually executed
    before and after some main targets. They are:

      -pre-init:                 called before initialization of project properties
      -post-init:                called after initialization of project properties
      -pre-compile:              called before javac compilation
      -post-compile:             called after javac compilation
      -pre-compile-single:       called before javac compilation of single file
      -post-compile-single:      called after javac compilation of single file
      -pre-compile-test:         called before javac compilation of JUnit tests
      -post-compile-test:        called after javac compilation of JUnit tests
      -pre-compile-test-single:  called before javac compilation of single JUnit test
      -post-compile-test-single: called after javac compilation of single JUunit test
      -pre-jar:                  called before JAR building
      -post-jar:                 called after JAR building
      -post-clean:               called after cleaning build products

    (Targets beginning with '-' are not intended to be called on their own.)

    Example of inserting an obfuscator after compilation could look like this:

        <target name="-post-compile">
            <obfuscate>
                <fileset dir="${build.classes.dir}"/>
            </obfuscate>
        </target>

    For list of available properties check the imported
    nbproject/build-impl.xml file.


    Another way to customize the build is by overriding existing main targets.
    The targets of interest are:

      -init-macrodef-javac:     defines macro for javac compilation
      -init-macrodef-junit:     defines macro for junit execution
      -init-macrodef-debug:     defines macro for class debugging
      -init-macrodef-java:      defines macro for class execution
      -do-jar-with-manifest:    JAR building (if you are using a manifest)
      -do-jar-without-manifest: JAR building (if you are not using a manifest)
      run:                      execution of project
      -javadoc-build:           Javadoc generation
      test-report:              JUnit report generation

    An example of overriding the target for project execution could look like this:

        <target name="run" depends="Lists-impl.jar">
            <exec dir="bin" executable="launcher.exe">
                <arg file="${dist.jar}"/>
            </exec>
        </target>

    Notice that the overridden target depends on the jar target and not only on
    the compile target as the regular run target does. Again, for a list of available
    properties which you can use, check the target you are overriding in the
    nbproject/build-impl.xml file.

    -->
</project>
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$

 

by: mrjoltcolaPosted on 2009-10-28 at 16:00:31ID: 25689173

@kayvey:

Hang in there buddy, it gets better.

I think mwvisa1 is correct, you don't have an Eclipse project. That would be a .project file. You have project.xml, which I am assuming, as he said, it is Netbeans.

If you like, upload the project.xml here, or even the whole project (if it is not copyrighted) and I'll try to import it to help. However, mwvisa1's instructions are probably what you need.


 

by: kayveyPosted on 2009-10-28 at 16:04:50ID: 25689201

it won't upload

</project>
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$  ls
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ cd nbproject
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/nbproject$ ls
build-impl.xml  genfiles.properties  project.properties  project.xml
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/nbproject$ cat project.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
    <type>org.netbeans.modules.java.j2seproject</type>
    <configuration>
        <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
            <name>Lists</name>
            <minimum-ant-version>1.6.5</minimum-ant-version>
            <explicit-platform explicit-source-supported="true"/>
            <source-roots>
                <root id="src.dir"/>
            </source-roots>
            <test-roots>
                <root id="test.src.dir"/>
            </test-roots>
        </data>
    </configuration>
</project>
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/nbproject$

 

by: kayveyPosted on 2009-10-28 at 16:20:28ID: 25689277

all righty

p:~/workspace/HW4/ch09/Lists/nbproject$ cd ..
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ cd src
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/src$ ls
lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/src$ cd lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/src/lists$ ls
CoarseList.java  FineList.java  LazyList.java  LockFreeList.java  OptimisticList.java
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/src/lists$ su -
Password:
su: Authentication failure
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists/src/lists$ su -
Password:
root@kayve-laptop:~# apt-get install netbeans
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  apache2-utils javahelp2 jetty libappframework-java libapr1 libaprutil1 libbeansbinding-java libcommons-net-java libdb-je-java libdb4.6-java libdb4.6-java-gcj libfreemarker-java
  libini4j-java libjline-java libjna-java libjtidy-java liblucene2-java libnb-apisupport1-java libnb-ide10-java libnb-java2-java libnb-javaparser-java libnb-platform-devel-java
  libnb-platform9-java libnb-svnclientadapter-java liboro-java libpq5 libsvn-java libsvn1 libswing-layout-java libswingworker-java libxml-commons-resolver1.1-java subversion
Suggested packages:
  javahelp2-doc libapache2-mod-jk libappframework-java-doc libswingworker-java-doc libjline-java-doc libjna-java-doc libjtidy-java-doc libnb-platform9-java-doc libswing-layout-java-doc
  libxml-commons-resolver1.1-java-doc subversion-tools db4.6-util
The following NEW packages will be installed:
  apache2-utils javahelp2 jetty libappframework-java libapr1 libaprutil1 libbeansbinding-java libcommons-net-java libdb-je-java libdb4.6-java libdb4.6-java-gcj libfreemarker-java
  libini4j-java libjline-java libjna-java libjtidy-java liblucene2-java libnb-apisupport1-java libnb-ide10-java libnb-java2-java libnb-javaparser-java libnb-platform-devel-java
  libnb-platform9-java libnb-svnclientadapter-java liboro-java libpq5 libsvn-java libsvn1 libswing-layout-java libswingworker-java libxml-commons-resolver1.1-java netbeans subversion
0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.0MB of archives.
After this operation, 112MB of additional disk space will be used.
Do you want to continue [Y/n]?

 

by: kayveyPosted on 2009-10-28 at 16:46:18ID: 25689394

installation successful.. I guess

 

by: kayveyPosted on 2009-10-28 at 16:52:38ID: 25689427

oh oh.. this is looking happier, tho

 

by: kayveyPosted on 2009-10-28 at 16:55:14ID: 25689438

it says I have a broken platform

 

by: kayveyPosted on 2009-10-28 at 16:59:26ID: 25689456

Here's what happened when I hit the green arrow.

 

by: kayveyPosted on 2009-10-28 at 17:01:20ID: 25689463

I found a website..

http://groups.google.com/group/javaprogrammingwithpassion/browse_thread/thread/a70eb4bc33dc22f4?pli=1

so I did this:

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@kayve-laptop:~# java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK Server VM (build 14.0-b08, mixed mode)
root@kayve-laptop:~#

 

by: mrjoltcolaPosted on 2009-10-28 at 17:08:53ID: 25689484

Which Java IDE is your instructor running?

As simple as the project appears to be (just 3 source files) recreating the project from the source directory should get you going in Eclipse. I don't use Netbeans so I cannot offer much help.

 

by: kayveyPosted on 2009-10-28 at 17:09:37ID: 25689486

oh dang

On Jun 11, 1:22 am, Paulo Cardoso <paacard...@gmail.com> wrote:

> Problem: The project uses the Java Platform called
> "Java_HotSpot_TM__Client_VM_1.6.0-b105", but this platform was not
> found.
> Solution: Click Resolve and create new platform called
> "Java_HotSpot_TM__Client_VM_1.6.0-b105".
> ----------------

This is true for all projects in the course labs which uses Java 6.
The problem is that at the time the labs were written, the Java
version was still in beta version. Netbeans searches the exact version
of Java specified in the project and does not find it because you have
on your machine another version.

To get around this problem, open a new project, check that the
libraries and the jdk is set to java 1.6 in the properties' project,
accessible from the contextual menu on the project's name. Then create
new classes, interfaces, etc... as they are in the original project,
copy also eventually the resources if they are any, and copy and paste
the contents of the original classes in the new classes, fix
eventually the warnings, compile and run and it should work.

There is maybe another solution, but that's the only one who has
worked on my machine.

 

by: kayveyPosted on 2009-10-28 at 17:11:34ID: 25689498

It's not an instructor it's a professor and she is just expecting us to deal with it. The project is from some paper I think...

 

by: kayveyPosted on 2009-10-28 at 17:12:22ID: 25689503

 

by: kayveyPosted on 2009-10-28 at 17:14:28ID: 25689516

The text claims it's "pseudocode"

 

by: mrjoltcolaPosted on 2009-10-28 at 17:17:44ID: 25689535

If you want my advice, use Eclipse.

Go back to Eclipse, create a new project, then use "Import -> File System" and import the src directory into your new project.

 

by: kayveyPosted on 2009-10-28 at 17:19:47ID: 25689542

Eclipse doesn't see the project.. NetBeans does.. I have been to those places above.. I am not seeing any project files. build.xml clearly says "NetBeans" in it...

but okay.. those directions do say recreate everything.  I will see how it goes then.

 

by: mrjoltcolaPosted on 2009-10-28 at 17:21:20ID: 25689554

I said "create a new project, then use "Import -> File System" and import the src directory into your new project."

 

by: mrjoltcolaPosted on 2009-10-28 at 17:22:01ID: 25689559

We are getting overlap. Yes, that is because project.xml is a non-Eclipse project and unfortunately, mwvisa1 went to bed. :(

 

by: mrjoltcolaPosted on 2009-10-28 at 17:24:26ID: 25689575

Or.. you don't even have to use the import feature. Once you've created the empty project, simply copy the src and test directories (with contents) over into the root of the new project using filesystem commands. Then use F5 or Right-click on the Project and pick Refresh, and Eclipse will see the new files.

 

by: kayveyPosted on 2009-10-28 at 17:25:52ID: 25689583

I always get confused creating projects it wants it to have a certain name..

 

by: mrjoltcolaPosted on 2009-10-28 at 17:29:12ID: 25689598

The project name will simply be the upper level directory. The original project is called Lists, so you could keep it the same, or name it Homework4, or HW4. Whatever you name it, you'll end up with an Eclipse project. Then, you can fix all of your professor's projects to modernize them to Java 6 and Eclipse. :)

 

by: kayveyPosted on 2009-10-28 at 17:32:17ID: 25689614

NetBeans is not modern?

 

by: kayveyPosted on 2009-10-28 at 20:12:33ID: 25690388

OK see I have been here.  THis is all logical.. BUT THEN THE DANG THING DOES THIS TO ME!!!! I DON"T UNDERSTAND WTF is the deal with this convoluted naming nonsense!

 

by: kayveyPosted on 2009-10-28 at 20:13:44ID: 25690392

No name is good enough for this pig

 

by: kayveyPosted on 2009-10-28 at 20:57:08ID: 25690546

Looking at what this idiot application does

 

by: kayveyPosted on 2009-10-28 at 20:57:26ID: 25690548

ayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/workspace$ cd HW4
kayve@kayve-laptop:~/workspace/HW4$ mv Lists ..
mv: cannot stat `Lists': No such file or directory
kayve@kayve-laptop:~/workspace/HW4$ ls
06~Chapter_09.zip  ch09
kayve@kayve-laptop:~/workspace/HW4$ cd ch09
kayve@kayve-laptop:~/workspace/HW4/ch09$ mv Lists/ ../../
kayve@kayve-laptop:~/workspace/HW4/ch09$






 

by: kayveyPosted on 2009-10-28 at 20:58:27ID: 25690553

aptop:~$ cd workspace/
kayve@kayve-laptop:~/workspace$ cd HW4
kayve@kayve-laptop:~/workspace/HW4$ mv Lists ..
mv: cannot stat `Lists': No such file or directory
kayve@kayve-laptop:~/workspace/HW4$ ls
06~Chapter_09.zip  ch09
kayve@kayve-laptop:~/workspace/HW4$ cd ch09
kayve@kayve-laptop:~/workspace/HW4/ch09$ mv Lists/ ../../
kayve@kayve-laptop:~/workspace/HW4/ch09$ cd ../../Lists/
kayve@kayve-laptop:~/workspace/Lists$ ls
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/Lists$ ls nbproject/
build-impl.xml  genfiles.properties  private  project.properties  project.xml
kayve@kayve-laptop:~/workspace/Lists$ ls src
lists
kayve@kayve-laptop:~/workspace/Lists$ ls src/lists/
CoarseList.java  LazyList.java      OptimisticList.java
FineList.java    LockFreeList.java
kayve@kayve-laptop:~/workspace/Lists$ ls nbproject/private
private.properties
kayve@kayve-laptop:~/workspace/Lists$ ls test
lists
kayve@kayve-laptop:~/workspace/Lists$ ls test/lists/
CoarseListTest.java  FineListTest.java  LazyListTest.java  LockFreeListTest.java  OptimisticListTest.java
kayve@kayve-laptop:~/workspace/Lists$



 

by: kayveyPosted on 2009-10-28 at 22:08:03ID: 25690800

oh.  I called it "HW4" and it grabs HW4. I really hate the way it makes me use the directory it thinks

 

by: kayveyPosted on 2009-10-28 at 22:09:32ID: 25690802

I didn't do the right thing. Nothing's there.

 

by: kayveyPosted on 2009-10-28 at 22:11:18ID: 25690807

okay now I am trying to import. I think I screwed up again.

  • what-root.png
    • 151 KB

    It went blank when I went too deep in the hierarchy

    It went blank when I went too deep in the hierarchy
 

by: kayveyPosted on 2009-10-28 at 22:15:34ID: 25690822

lists
kayve@kayve-laptop:~/workspace/Lists$ ls test/lists/
CoarseListTest.java  FineListTest.java  LazyListTest.java  LockFreeListTest.java  OptimisticListTest.java
kayve@kayve-laptop:~/workspace/Lists$ pwd
/home/kayve/workspace/Lists
kayve@kayve-laptop:~/workspace/Lists$ cd ..
kayve@kayve-laptop:~/workspace$ cd HW4
kayve@kayve-laptop:~/workspace/HW4$ ls
06~Chapter_09.zip  ch09
kayve@kayve-laptop:~/workspace/HW4$ cd ch09/
kayve@kayve-laptop:~/workspace/HW4/ch09$ ls
kayve@kayve-laptop:~/workspace/HW4/ch09$ pwd
/home/kayve/workspace/HW4/ch09
kayve@kayve-laptop:~/workspace/HW4/ch09$ cd ..
kayve@kayve-laptop:~/workspace/HW4$ ls
06~Chapter_09.zip  ch09
kayve@kayve-laptop:~/workspace/HW4$ cd ..
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4  Lists
kayve@kayve-laptop:~/workspace$ ls Lists/
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace$

oh.

 

by: kayveyPosted on 2009-10-28 at 22:16:22ID: 25690825

I moved everything to ~/workspace/Lists now I am switching to that workspace I hope

 

by: kayveyPosted on 2009-10-28 at 22:20:19ID: 25690844

*@&# I went to the restroom and back (way down the hall) and Eclipse is still thinking

woaaah

OpenJDK Server VM (build 14.0-b08, mixed mode)
root@kayve-laptop:~# ps -aux | grep eclipse
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
kayve     4585  0.3  1.3  95736 38552 ?        Sl   22:15   0:00 /usr/lib/jvm/java-gcj/bin/java -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar -data /home/kayve/workspace/Lists -os linux -ws gtk -arch x86 -launcher /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata f2001f -install /usr/lib/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar
kayve     4588  0.1  0.2  17688  8564 ?        S    22:15   0:00 /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 /usr/lib/eclipse/plugins/org.eclipse.platform_3.2.2.r322_v20070117b/splash.bmp
root      5899  0.0  0.0   3336   800 pts/1    R+   22:19   0:00 grep eclipse
kayve    25725  0.0  0.0  13908  2296 ?        S    18:42   0:00 /usr/lib/eclipse/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -install /usr/lib/eclipse -startup /usr/lib/eclipse/startup.jar -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none
root@kayve-laptop:~#
Setting up netbeans (6.5-0ubuntu2.1) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@kayve-laptop:~# java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK Server VM (build 14.0-b08, mixed mode)
root@kayve-laptop:~# ps -aux | grep eclipse
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
kayve     4585  0.3  1.3  95736 38552 ?        Sl   22:15   0:00 /usr/lib/jvm/java-gcj/bin/java -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar -data /home/kayve/workspace/Lists -os linux -ws gtk -arch x86 -launcher /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata f2001f -install /usr/lib/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar
kayve     4588  0.1  0.2  17688  8564 ?        S    22:15   0:00 /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 /usr/lib/eclipse/plugins/org.eclipse.platform_3.2.2.r322_v20070117b/splash.bmp
root      5899  0.0  0.0   3336   800 pts/1    R+   22:19   0:00 grep eclipse
kayve    25725  0.0  0.0  13908  2296 ?        S    18:42   0:00 /usr/lib/eclipse/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -install /usr/lib/eclipse -startup /usr/lib/eclipse/startup.jar -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none
root@kayve-laptop:~#
root@kayve-laptop:~# set -o vi
root@kayve-laptop:~# ps -aux | grep eclipse
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
kayve     4585  0.3  1.3  95736 38552 ?        Sl   22:15   0:00 /usr/lib/jvm/java-gcj/bin/java -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar -data /home/kayve/workspace/Lists -os linux -ws gtk -arch x86 -launcher /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata f2001f -install /usr/lib/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar
kayve     4588  0.1  0.2  17688  8564 ?        S    22:15   0:00 /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 /usr/lib/eclipse/plugins/org.eclipse.platform_3.2.2.r322_v20070117b/splash.bmp
root      6021  0.0  0.0   3336   800 pts/1    S+   22:19   0:00 grep eclipse
kayve    25725  0.0  0.0  13908  2296 ?        S    18:42   0:00 /usr/lib/eclipse/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -install /usr/lib/eclipse -startup /usr/lib/eclipse/startup.jar -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none
root@kayve-laptop:~# kill 4588
root@kayve-laptop:~# kill 25725
root@kayve-laptop:~# kill 4588
-su: kill: (4588) - No such process
root@kayve-laptop:~# ps -aux | grep eclipse
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
kayve     4585  0.2  1.3  95736 38552 ?        Sl   22:15   0:00 /usr/lib/jvm/java-gcj/bin/java -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar -data /home/kayve/workspace/Lists -os linux -ws gtk -arch x86 -launcher /usr/lib/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata f2001f -install /usr/lib/eclipse -vm /usr/lib/jvm/java-gcj/bin/java -vmargs -Djava.library.path=/usr/lib/jni -Dgnu.gcj.precompiled.db.path=/var/lib/gcj-4.2/classmap.db -Dgnu.gcj.runtime.VMClassLoader.library_control=never -Dosgi.locking=none -jar /usr/lib/eclipse/startup.jar
root      6114  0.0  0.0   3336   800 pts/1    S+   22:19   0:00 grep eclipse
root@kayve-laptop:~# kill 4584
-su: kill: (4584) - No such process
root@kayve-laptop:~# kill 4585
root@kayve-laptop:~#

 

by: kayveyPosted on 2009-10-28 at 22:22:42ID: 25690853

Stupid merry-go-round nonsense

 

by: kayveyPosted on 2009-10-28 at 22:25:54ID: 25690868

no no no no no no nono no no no no no nono no no no no no nono no no no no no nono no no no no no nono no no no no no nono no no no no no no

 

by: kayveyPosted on 2009-10-28 at 22:29:16ID: 25690883

Existing projects doesn't work

 

by: kayveyPosted on 2009-10-28 at 22:30:09ID: 25690888

kayve@kayve-laptop:~/workspace/HW4$ cd ..
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4  Lists
kayve@kayve-laptop:~/workspace$ ls Lists/
build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace$ cd Lists
kayve@kayve-laptop:~/workspace/Lists$ ls
bin  build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/Lists$ ls bin
lists
kayve@kayve-laptop:~/workspace/Lists$ ls bin/lists
CoarseList.class                   LazyListTest.class
CoarseList$Node.class              LazyListTest$RemoveThread.class
CoarseListTest$AddThread.class     LockFreeList.class
CoarseListTest.class               LockFreeList$Node.class
CoarseListTest$RemoveThread.class  LockFreeListTest$AddThread.class
FineList.class                     LockFreeListTest.class
FineList$Node.class                LockFreeListTest$RemoveThread.class
FineListTest$AddThread.class       LockFreeList$Window.class
FineListTest.class                 OptimisticList.class
FineListTest$RemoveThread.class    OptimisticList$Entry.class
LazyList.class                     OptimisticListTest$AddThread.class
LazyList$Node.class                OptimisticListTest.class
LazyListTest$AddThread.class       OptimisticListTest$RemoveThread.class
kayve@kayve-laptop:~/workspace/Lists$

 

by: kayveyPosted on 2009-10-28 at 22:39:33ID: 25690931

This is going to be a file called:

kayve@kayve-laptop:~/workspace/Lists$
kayve@kayve-laptop:~/workspace/Lists$ vi nbproject/build-impl.xml
kayve@kayve-laptop:~/workspace/Lists$ pwd
/home/kayve/workspace/Lists
kayve@kayve-laptop:~/workspace/Lists$

I have added "set number" in the vi editor... that is those numbers at the beginning.. maybe I shouldn't do that but otherwise I will be lost

Oh jesus it's 600 lines


 1 <?xml version="1.0" encoding="UTF-8"?>
  2 <!--
  3 *** GENERATED FROM project.xml - DO NOT EDIT  ***
  4 ***         EDIT ../build.xml INSTEAD         ***
  5 
  6 For the purpose of easier reading the script
  7 is divided into following sections:
  8 
  9   - initialization
 10   - compilation
 11   - jar
 12   - execution
 13   - debugging
 14   - javadoc
 15   - junit compilation
 16   - junit execution
 17   - junit debugging
 18   - applet
 19   - cleanup
 20 
 21         -->
 22 <project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project    /jax-rpc" basedir=".." default="default" name="Lists-impl">
 23     <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
 24     <!-- 
 25                 ======================
 26                 INITIALIZATION SECTION 
 27                 ======================
 28             -->
 29     <target name="-pre-init">
 30         <!-- Empty placeholder for easier customization. -->
 31         <!-- You can override this target in the ../build.xml file. -->
 32     </target>
 33     <target depends="-pre-init" name="-init-private">
 34         <property file="nbproject/private/config.properties"/>
 35         <property file="nbproject/private/configs/${config}.properties"/>
 36         <property file="nbproject/private/private.properties"/>
 37     </target>
 38     <target depends="-pre-init,-init-private" name="-init-user">
 39  40         <!-- The two properties below are usually overridden -->
 41         <!-- by the active platform. Just a fallback. -->
 42         <property name="default.javac.source" value="1.4"/>
 43         <property name="default.javac.target" value="1.4"/>
 44     </target>
 45     <target depends="-pre-init,-init-private,-init-user" name="-init-project">
 46         <property file="nbproject/configs/${config}.properties"/>
 47         <property file="nbproject/project.properties"/>
 48     </target>
 49     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
 50         <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/>
 51         <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/>
 52         <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/>
 53         <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/>
 54         <condition property="platform.javac" value="${platform.home}/bin/javac">
 55             <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/>
 56         </condition>
 57         <property name="platform.javac" value="${platform.javac.tmp}"/>
 58         <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/>
 59         <condition property="platform.java" value="${platform.home}/bin/java">
 60             <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/>
 61         </condition>
 62         <property name="platform.java" value="${platform.java.tmp}"/>
 63         <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/>
 64         <condition property="platform.javadoc" value="${platform.home}/bin/javadoc">
 65             <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/>
 66         </condition>
 67         <property name="platform.javadoc" value="${platform.javadoc.tmp}"/>
 68         <condition property="platform.invalid" value="true">
 69             <or>
 70                 <contains string="${platform.javac}" substring="$${platforms."/>
 71                 <contains string="${platform.java}" substring="$${platforms."/>
 72                 <contains string="${platform.javadoc}" substring="$${platforms."/>
 73             </or>
 74         </condition>
 75         <fail unless="platform.home">Must set platform.home</fail>
        <property file="${user.properties.file}"/>
 76         <fail unless="platform.bootcp">Must set platform.bootcp</fail>
 77         <fail unless="platform.java">Must set platform.java</fail>
 78         <fail unless="platform.javac">Must set platform.javac</fail>
 79         <fail if="platform.invalid">
 80  The J2SE Platform is not correctly set up.
 81  Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files.
 82  Either open the project in the IDE and setup the Platform with the same name or add it manually.
 83  For example like this:
 84      ant -Duser.properties.file=&lt;path_to_property_file&gt; jar (where you put the property "platforms.${platform.active}.home" in a .properties file)
 85   or ant -Dplatforms.${platform.active}.home=&lt;path_to_JDK_home&gt; jar (where no properties file is used)
 86   </fail>
 87         <available file="${manifest.file}" property="manifest.available"/>
 88         <condition property="manifest.available+main.class">
 89             <and>
 90                 <isset property="manifest.available"/>
 91                 <isset property="main.class"/>
 92                 <not>
 93                     <equals arg1="${main.class}" arg2="" trim="true"/>
 94                 </not>
 95             </and>
 96         </condition>
 97         <condition property="manifest.available+main.class+mkdist.available">
 98             <and>
 99                 <istrue value="${manifest.available+main.class}"/>
100                 <isset property="libs.CopyLibs.classpath"/>
101             </and>
102         </condition>
103         <condition property="have.tests">
104             <or>
105                 <available file="${test.src.dir}"/>
106             </or>
107         </condition>
108         <condition property="have.sources">
109             <or>
110                 <available file="${src.dir}"/>
111             </or>
112         </condition>
113         <condition property="netbeans.home+have.tests">
                                                                                                                                                                              74,9          11%114             <and>
115                 <isset property="netbeans.home"/>
116                 <isset property="have.tests"/>
117             </and>
118         </condition>
119         <condition property="no.javadoc.preview">
120             <and>
121                 <isset property="javadoc.preview"/>
122                 <isfalse value="${javadoc.preview}"/>
123             </and>
124         </condition>
125         <property name="run.jvmargs" value=""/>
126         <property name="javac.compilerargs" value=""/>
127         <property name="work.dir" value="${basedir}"/>
128         <condition property="no.deps">
129             <and>
130                 <istrue value="${no.dependencies}"/>
131             </and>
132         </condition>
133         <property name="javac.debug" value="true"/>
134         <property name="javadoc.preview" value="true"/>
135         <property name="application.args" value=""/>
136         <property name="source.encoding" value="${file.encoding}"/>
137         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
138             <and>
139                 <isset property="javadoc.encoding"/>
140                 <not>
141                     <equals arg1="${javadoc.encoding}" arg2=""/>
142                 </not>
143             </and>
144         </condition>
145         <property name="javadoc.encoding.used" value="${source.encoding}"/>
146         <property name="includes" value="**"/>
147         <property name="excludes" value=""/>
148         <property name="do.depend" value="false"/>
149         <condition property="do.depend.true">
                                                                                                                                                                              110,9         16%
150             <istrue value="${do.depend}"/>
151         </condition>
152         <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
153             <and>
154                 <isset property="jaxws.endorsed.dir"/>
155                 <available file="nbproject/jaxws-build.xml"/>
156             </and>
157         </condition>
158     </target>
159     <target name="-post-init">
160         <!-- Empty placeholder for easier customization. -->
161         <!-- You can override this target in the ../build.xml file. -->
162     </target>
163     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
164         <fail unless="src.dir">Must set src.dir</fail>
165         <fail unless="test.src.dir">Must set test.src.dir</fail>
166         <fail unless="build.dir">Must set build.dir</fail>
167         <fail unless="dist.dir">Must set dist.dir</fail>
168         <fail unless="build.classes.dir">Must set build.classes.dir</fail>
169         <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
170         <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
171         <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
172         <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
173         <fail unless="dist.jar">Must set dist.jar</fail>
174     </target>
175     <target name="-init-macrodef-property">
176         <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
177             <attribute name="name"/>
178             <attribute name="value"/>
179             <sequential>
180                 <property name="@{name}" value="${@{value}}"/>
181             </sequential>
182         </macrodef>
183     </target>
184     <target name="-init-macrodef-javac">
185         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
186             <attribute default="${src.dir}" name="srcdir"/>
187             <attribute default="${build.classes.dir}" name="destdir"/>
188             <attribute default="${javac.classpath}" name="classpath"/>
189             <attribute default="${includes}" name="includes"/>
190             <attribute default="${excludes}" name="excludes"/>
191             <attribute default="${javac.debug}" name="debug"/>
192             <attribute default="/does/not/exist" name="sourcepath"/>
193             <element name="customize" optional="true"/>
194             <sequential>
195                 <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="ye    s" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
196                     <classpath>
197                         <path path="@{classpath}"/>
198                     </classpath>
199                     <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
200                     <customize/>
201                 </javac>
202             </sequential>
203         </macrodef>
204         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
205             <attribute default="${src.dir}" name="srcdir"/>
206             <attribute default="${build.classes.dir}" name="destdir"/>
207             <attribute default="${javac.classpath}" name="classpath"/>
208             <sequential>
209                 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
210                     <classpath>
211                         <path path="@{classpath}"/>
212                     </classpath>
213                 </depend>
214             </sequential>
215         </macrodef>
216         <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
217             <attribute default="${build.classes.dir}" name="destdir"/>
218             <sequential>
219                 <fail unless="javac.includes">Must set javac.includes</fail>
220                 <pathconvert pathsep="," property="javac.includes.binary">
221                     <path>
222                         <filelist dir="@{destdir}" files="${javac.includes}"/>
223                     </path>
224                     <globmapper from="*.java" to="*.class"/>
224                     <globmapper from="*.java" to="*.class"/>
225                 </pathconvert>
226                 <delete>
227                     <files includes="${javac.includes.binary}"/>
228                 </delete>
229             </sequential>
230         </macrodef>
231     </target>
232     <target name="-init-macrodef-junit">
233         <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
234             <attribute default="${includes}" name="includes"/>
235             <attribute default="${excludes}" name="excludes"/>
236             <attribute default="**" name="testincludes"/>
237             <sequential>
238                 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true">
239                     <batchtest todir="${build.test.results.dir}">
240                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
241                             <filename name="@{testincludes}"/>
242                         </fileset>
243                     </batchtest>
244                     <classpath>
245                         <path path="${run.test.classpath}"/>
246                     </classpath>
247                     <syspropertyset>
248                         <propertyref prefix="test-sys-prop."/>
249                         <mapper from="test-sys-prop.*" to="*" type="glob"/>
250                     </syspropertyset>
251                     <formatter type="brief" usefile="false"/>
252                     <formatter type="xml"/>
253                     <jvmarg line="${run.jvmargs}"/>
254                 </junit>
255             </sequential>
256         </macrodef>
257     </target>
258     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
259         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
260             <attribute default="${main.class}" name="name"/>
261             <attribute default="${debug.classpath}" name="classpath"/>
262             <attribute default="" name="stopclassname"/>
263             <sequential>
264                 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
265                     <classpath>
266                         <path path="@{classpath}"/>
267                     </classpath>
268                     <bootclasspath>
269                         <path path="${platform.bootcp}"/>
270                     </bootclasspath>
271                 </nbjpdastart>
272             </sequential>
273         </macrodef>
274         <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
275             <attribute default="${build.classes.dir}" name="dir"/>
276             <sequential>
277                 <nbjpdareload>
278                     <fileset dir="@{dir}" includes="${fix.classes}">
279                         <include name="${fix.includes}*.class"/>
280                     </fileset>
281                 </nbjpdareload>
282             </sequential>
283         </macrodef>
284     </target>
285     <target name="-init-debug-args">
286         <exec executable="${platform.java}" outputproperty="version-output">
287             <arg value="-version"/>
288         </exec>
289         <condition property="have-jdk-older-than-1.4">
290             <or>
291                 <contains string="${version-output}" substring="java version &quot;1.0"/>
292                 <contains string="${version-output}" substring="java version &quot;1.1"/>
293                 <contains string="${version-output}" substring="java version &quot;1.2"/>
294                 <contains string="${version-output}" substring="java version &quot;1.3"/>
295             </or>
296         </condition>
297         <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
298             <istrue value="${have-jdk-older-than-1.4}"/>
299         </condition>
300         <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
301             <os family="windows"/>
302         </condition>
303         <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
304             <isset property="debug.transport"/>
305         </condition>
306     </target>
307     <target depends="-init-debug-args" name="-init-macrodef-debug">
308         <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
309             <attribute default="${main.class}" name="classname"/>
310             <attribute default="${debug.classpath}" name="classpath"/>
311             <element name="customize" optional="true"/>
312             <sequential>
313                 <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}">
314                     <jvmarg line="${debug-args-line}"/>
315                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
316                     <jvmarg line="${run.jvmargs}"/>
317                     <classpath>
318                         <path path="@{classpath}"/>
319                     </classpath>
320                     <syspropertyset>
321                         <propertyref prefix="run-sys-prop."/>
322                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
323                     </syspropertyset>
324                     <customize/>
325                 </java>
326             </sequential>
327         </macrodef>
328     </target>
329     <target name="-init-macrodef-java">
330         <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
331             <attribute default="${main.class}" name="classname"/>
332             <element name="customize" optional="true"/>
333             <sequential>
     334                 <java classname="@{classname}" dir="${work.dir}" fork="true" jvm="${platform.java}">
335                     <jvmarg line="${run.jvmargs}"/>
336                     <classpath>
337                         <path path="${run.classpath}"/>
338                     </classpath>
339                     <syspropertyset>
340                         <propertyref prefix="run-sys-prop."/>
341                         <mapper from="run-sys-prop.*" to="*" type="glob"/>
342                     </syspropertyset>
343                     <customize/>
344                 </java>
345             </sequential>
346         </macrodef>
347     </target>
348     <target name="-init-presetdef-jar">
349         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
350             <jar compress="${jar.compress}" jarfile="${dist.jar}">
351                 <j2seproject1:fileset dir="${build.classes.dir}"/>
352             </jar>
353         </presetdef>
354     </target>
355     <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpd    a,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
356     <!--
357                 ===================
358                 COMPILATION SECTION
359                 ===================
360             -->
361     <target depends="init" name="deps-jar" unless="no.deps"/>
362     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
363     <target depends="init" name="-check-automatic-build">
364         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
365     </target>
366     <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
367         <antcall target="clean"/>
368     </target>
369     <target depends="init,deps-jar" name="-pre-pre-compile">
370         <mkdir dir="${build.classes.dir}"/>
       371     </target>
372     <target name="-pre-compile">
373         <!-- Empty placeholder for easier customization. -->
374         <!-- You can override this target in the ../build.xml file. -->
375     </target>
376     <target if="do.depend.true" name="-compile-depend">
377         <j2seproject3:depend/>
378     </target>
379     <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
380         <j2seproject3:javac/>
381         <copy todir="${build.classes.dir}">
382             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
383         </copy>
384     </target>
385     <target name="-post-compile">
386         <!-- Empty placeholder for easier customization. -->
387         <!-- You can override this target in the ../build.xml file. -->
388     </target>
389     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
390     <target name="-pre-compile-single">
391         <!-- Empty placeholder for easier customization. -->
392         <!-- You can override this target in the ../build.xml file. -->
393     </target>
394     <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
395         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
396         <j2seproject3:force-recompile/>
397         <j2seproject3:javac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/>
398     </target>
399     <target name="-post-compile-single">
400         <!-- Empty placeholder for easier customization. -->
401         <!-- You can override this target in the ../build.xml file. -->
402     </target>
403     <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
404     <!--
405                 ====================
406                 JAR BUILDING SECTION
407                 ====================
408             -->
         409     <target depends="init" name="-pre-pre-jar">
410         <dirname file="${dist.jar}" property="dist.jar.dir"/>
411         <mkdir dir="${dist.jar.dir}"/>
412     </target>
413     <target name="-pre-jar">
414         <!-- Empty placeholder for easier customization. -->
415         <!-- You can override this target in the ../build.xml file. -->
416     </target>
417     <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
418         <j2seproject1:jar/>
419     </target>
420     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
421         <j2seproject1:jar manifest="${manifest.file}"/>
422     </target>
423     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
424         <j2seproject1:jar manifest="${manifest.file}">
425             <j2seproject1:manifest>
426                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
427             </j2seproject1:manifest>
428         </j2seproject1:jar>
429         <echo>To run this application from the command line without Ant, try:</echo>
430         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
431         <property location="${dist.jar}" name="dist.jar.resolved"/>
432         <pathconvert property="run.classpath.with.dist.jar">
433             <path path="${run.classpath}"/>
434             <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
435         </pathconvert>
436         <echo>${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
437     </target>
438     <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
439         <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
440         <pathconvert property="run.classpath.without.build.classes.dir">
441             <path path="${run.classpath}"/>
442             <map from="${build.classes.dir.resolved}" to=""/>
443         </pathconvert>
444         <pathconvert pathsep=" " property="jar.classpath">
445             <path path="${run.classpath.without.build.classes.dir}"/>
446             <chainedmapper>
                       447                 <flattenmapper/>
448                 <globmapper from="*" to="lib/*"/>
449             </chainedmapper>
450         </pathconvert>
451         <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
452         <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
453             <fileset dir="${build.classes.dir}"/>
454             <manifest>
455                 <attribute name="Main-Class" value="${main.class}"/>
456                 <attribute name="Class-Path" value="${jar.classpath}"/>
457             </manifest>
458         </copylibs>
459         <echo>To run this application from the command line without Ant, try:</echo>
460         <property location="${dist.jar}" name="dist.jar.resolved"/>
461         <echo>${platform.java} -jar "${dist.jar.resolved}"</echo>
462     </target>
463     <target name="-post-jar">
464         <!-- Empty placeholder for easier customization. -->
465         <!-- You can override this target in the ../build.xml file. -->
466     </target>
467     <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
468     <!--
469                 =================
470                 EXECUTION SECTION
471                 =================
472             -->
473     <target depends="init,compile" description="Run a main class." name="run">
474         <j2seproject1:java>
475             <customize>
476                 <arg line="${application.args}"/>
477             </customize>
478         </j2seproject1:java>
479     </target>
480     <target name="-do-not-recompile">
481         <property name="javac.includes.binary" value=""/>
482     </target>
483     <target depends="init,-do-not-recompile,compile-single" name="run-single">
484         <fail unless="run.class">Must select one file in the IDE or set r
                485         <j2seproject1:java classname="${run.class}"/>
486     </target>
487     <!--
488                 =================
489                 DEBUGGING SECTION
490                 =================
491             -->
492     <target depends="init" if="netbeans.home" name="-debug-start-debugger">
493         <j2seproject1:nbjpdastart name="${debug.class}"/>
494     </target>
495     <target depends="init,compile" name="-debug-start-debuggee">
496         <j2seproject3:debug>
497             <customize>
498                 <arg line="${application.args}"/>
499             </customize>
500         </j2seproject3:debug>
501     </target>
502     <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
503     <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
504         <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
505     </target>
506     <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
507     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
508         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
509         <j2seproject3:debug classname="${debug.class}"/>
510     </target>
511     <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
512     <target depends="init" name="-pre-debug-fix">
513         <fail unless="fix.includes">Must set fix.includes</fail>
514         <property name="javac.includes" value="${fix.includes}.java"/>
515     </target>
516     <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
517         <j2seproject1:nbjpdareload/>
518     </target>
519     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
520     <!-- ===============
522                 JAVADOC SECTION
523                 ===============
524             -->
525     <target depends="init" name="-javadoc-build">
526         <mkdir dir="${dist.javadoc.dir}"/>
527         <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used    }" executable="${platform.javadoc}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.s    ource}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
528             <classpath>
529                 <path path="${javac.classpath}"/>
530             </classpath>
531             <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
532                 <filename name="**/*.java"/>
533             </fileset>
534         </javadoc>
535     </target>
536     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
537         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
538     </target>
539     <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
540     <!--
541                 =========================
542                 JUNIT COMPILATION SECTION
543                 =========================
544             -->
545     <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
546         <mkdir dir="${build.test.classes.dir}"/>
547     </target>
548     <target name="-pre-compile-test">
549         <!-- Empty placeholder for easier customization. -->
550         <!-- You can override this target in the ../build.xml file. -->
551     </target>
552     <target if="do.depend.true" name="-compile-test-depend">
553         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
554     </target>
555     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
556         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
557         <copy todir="${build.test.classes.dir}">
558             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
          559         </copy>
560     </target>
561     <target name="-post-compile-test">
562         <!-- Empty placeholder for easier customization. -->
563         <!-- You can override this target in the ../build.xml file. -->
564     </target>
565     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
566     <target name="-pre-compile-test-single">
567         <!-- Empty placeholder for easier customization. -->
568         <!-- You can override this target in the ../build.xml file. -->
569     </target>
570     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
571         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
572         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
573         <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdi    r="${test.src.dir}"/>
574         <copy todir="${build.test.classes.dir}">
575             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
576         </copy>
577     </target>
578     <target name="-post-compile-test-single">
579         <!-- Empty placeholder for easier customization. -->
580         <!-- You can override this target in the ../build.xml file. -->
581     </target>
582     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
583     <!--
584                 =======================
585                 JUNIT EXECUTION SECTION
586                 =======================
587             -->
588     <target depends="init" if="have.tests" name="-pre-test-run">
589         <mkdir dir="${build.test.results.dir}"/>
590     </target>
591     <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
592         <j2seproject3:junit testincludes="**/*Test.java"/>
593     </target>
594     <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
595         <fail if="tests.failed">Some tests failed; see details above.</fail>
                                                                                                                                                                              557,9         86%
                 596     </target>
597     <target depends="init" if="have.tests" name="test-report"/>
598     <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
599     <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
600     <target depends="init" if="have.tests" name="-pre-test-run-single">
601         <mkdir dir="${build.test.results.dir}"/>
602     </target>
603     <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
604         <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
605         <j2seproject3:junit excludes="" includes="${test.includes}"/>
606     </target>
607     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
608         <fail if="tests.failed">Some tests failed; see details above.</fail>
609     </target>
610     <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
611     <!--
612                 =======================
613                 JUNIT DEBUGGING SECTION
614                 =======================
615             -->
616     <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
617         <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
618         <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
619         <delete file="${test.report.file}"/>
620         <mkdir dir="${build.test.results.dir}"/>
621         <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath    }">
622             <customize>
623                 <syspropertyset>
624                     <propertyref prefix="test-sys-prop."/>
625                     <mapper from="test-sys-prop.*" to="*" type="glob"/>
626                 </syspropertyset>
627                 <arg value="${test.class}"/>
628                 <arg value="showoutput=true"/>
629                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
630                 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
631             </customize>
632         </j2seproject3:debug>
        633     </target>
634     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
635         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
636     </target>
637     <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
638     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
639         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
640     </target>
641     <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
642     <!--
643                 =========================
644                 APPLET EXECUTION SECTION
645                 =========================
646             -->
647     <target depends="init,compile-single" name="run-applet">
648         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
649         <j2seproject1:java classname="sun.applet.AppletViewer">
650             <customize>
651                 <arg value="${applet.url}"/>
652             </customize>
653         </j2seproject1:java>
654     </target>
655     <!--
656                 =========================
657                 APPLET DEBUGGING  SECTION
658                 =========================
659             -->
660     <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
661         <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
662         <j2seproject3:debug classname="sun.applet.AppletViewer">
663             <customize>
664                 <arg value="${applet.url}"/>
665             </customize>
666         </j2seproject3:debug>
667     </target>
668     <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
669     <!--
              670                 ===============
671                 CLEANUP SECTION
672                 ===============
673             -->
674     <target depends="init" name="deps-clean" unless="no.deps"/>
675     <target depends="init" name="-do-clean">
676         <delete dir="${build.dir}"/>
677         <delete dir="${dist.dir}"/>
678     </target>
679     <target name="-post-clean">
680         <!-- Empty placeholder for easier customization. -->
681         <!-- You can override this target in the ../build.xml file. -->
682     </target>
683     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
684 </project>
~                                                                                                                                                                                               
~                                                                                                                                                                                               
~                                                                                                                                                                                                                                                                                 
521                 ===============
522                 JAVADOC SECTION
                                                                                                      
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
563:
564:
565:
566:
567:
568:
569:
570:
571:
572:
573:
574:
575:
576:
577:
578:
579:
580:
581:
582:
583:
584:
585:
586:
587:
588:
589:
590:
591:
592:
593:
594:
595:
596:
597:
598:
599:
600:
601:
602:
603:
604:
605:
606:
607:
608:
609:
610:
611:
612:
613:
614:
615:
616:
617:
618:
619:
620:
621:
622:
623:
624:
625:
626:
627:
628:
629:
630:
631:
632:
633:
634:
635:
636:
637:
638:
639:
640:
641:
642:
643:
644:
645:
646:
647:
648:
649:
650:
651:
652:
653:
654:
655:
656:
657:
658:
659:
660:
661:
662:
663:
664:
665:
666:
667:
668:
669:
670:
671:
672:
673:
674:
675:
676:
677:
678:
679:
680:
681:
682:
683:
684:
685:
686:
687:
688:
689:
690:
691:
692:
693:

Select allOpen in new window

 

by: kayveyPosted on 2009-10-28 at 22:40:22ID: 25690934

here is another file

kayve@kayve-laptop:~/workspace/Lists$ ls
bin  build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/Lists$ ls nbproject/
build-impl.xml  genfiles.properties  private  project.properties  project.xml
kayve@kayve-laptop:~/workspace/Lists$ vi nbproject/genfiles.properties

build.xml.data.CRC32=1abe0078
build.xml.script.CRC32=96337101
build.xml.stylesheet.CRC32=958a1d3e
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=1abe0078
nbproject/build-impl.xml.script.CRC32=80efc0bd
nbproject/build-impl.xml.stylesheet.CRC32=65b8de21
~                                                                                                                                                                                               
~                                                                                                                                                                                               
~                                                ~                                                                                                                                                                                               
~                                                                                                                                                                                               
"nbproject/genfiles.properties" 8L, 447C                                                                                                                                                 
~                                                      

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:

Select allOpen in new window

 

by: kayveyPosted on 2009-10-28 at 22:41:32ID: 25690936

and another

build-impl.xml  genfiles.properties  private  project.properties  project.xml
kayve@kayve-laptop:~/workspace/Lists$ vi nbproject/genfiles.properties
kayve@kayve-laptop:~/workspace/Lists$ ls nbproject/
build-impl.xml  genfiles.properties  private  project.properties  project.xml
kayve@kayve-laptop:~/workspace/Lists$ vi nbproject/project.properties
kayve@kayve-laptop:~/workspace/Lists$

  1 application.args=
  2 build.classes.dir=${build.dir}/classes
  3 build.classes.excludes=**/*.java,**/*.form
  4 # This directory is removed when the project is cleaned:
  5 build.dir=build
  6 build.generated.dir=${build.dir}/generated
  7 # Only compile against the classpath explicitly listed here:
  8 build.sysclasspath=ignore
  9 build.test.classes.dir=${build.dir}/test/classes
 10 build.test.results.dir=${build.dir}/test/results
 11 debug.classpath=\
 12     ${run.classpath}
 13 debug.test.classpath=\
 14     ${run.test.classpath}
 15 # This directory is removed when the project is cleaned:
 16 dist.dir=dist
 17 dist.jar=${dist.dir}/Lists.jar
 18 dist.javadoc.dir=${dist.dir}/javadoc
 19 excludes=
 20 file.reference.Lists-src=src
 21 file.reference.Lists-test=test
 22 includes=**
 23 jar.compress=false
 24 javac.classpath=
 25 # Space-separated list of extra javac options
 26 javac.compilerargs=
 27 javac.deprecation=false
 28 javac.source=1.5
 29 javac.target=1.5
 30 javac.test.classpath=\
 31     ${javac.classpath}:\
 32     ${build.classes.dir}:\
 33     ${libs.junit.classpath}
 34 javadoc.additionalparam=
 35 javadoc.author=false
 36 javadoc.encoding=
 37 javadoc.noindex=false
 38 javadoc.nonavbar=false
 39 javadoc.notree=false
 40 javadoc.private=false
 40 javadoc.private=false
 41 javadoc.splitindex=true
 42 javadoc.use=true
 43 javadoc.version=false
 44 javadoc.windowtitle=
 45 main.class=
 46 manifest.file=manifest.mf
 47 meta.inf.dir=${src.dir}/META-INF
 48 platform.active=Java_HotSpot_TM__Client_VM_1.6.0-b105
 49 run.classpath=\
 50     ${javac.classpath}:\
 51     ${build.classes.dir}
 52 # Space-separated list of JVM arguments used when running the project
 53 # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
 54 # or test-sys-prop.name=value to set system properties for unit tests):
 55 run.jvmargs=
 56 run.test.classpath=\
 57     ${javac.test.classpath}:\
 58     ${build.test.classes.dir}
 59 src.dir=${file.reference.Lists-src}
 60 test.src.dir=${file.reference.Lists-test}
~                                              

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:

Select allOpen in new window

 

by: kayveyPosted on 2009-10-28 at 22:44:05ID: 25690944

ayve@kayve-laptop:~/workspace/Lists$ vi nbproject/project.properties
kayve@kayve-laptop:~/workspace/Lists$ ls src/
lists
kayve@kayve-laptop:~/workspace/Lists$ ls src/
lists/     .metadata/
kayve@kayve-laptop:~/workspace/Lists$ ls src/lists/
CoarseList.java  FineList.java  LazyList.java  LockFreeList.java  OptimisticList.java
kayve@kayve-laptop:~/workspace/Lists$ ls src/.metadata/
version.ini
kayve@kayve-laptop:~/workspace/Lists$


oh mwan

I done goobered up my shell

    do
        [ -d /var/lib/$i ] && admindir=/var/lib/$i && break;
    done;
    for ((i=1; i < COMP_CWORD; i++ ))
    do
        if [[ "${COMP_WORDS[i]}" == --admindir ]]; then
            admindir=${COMP_WORDS[i+1]};
            break;
        fi;
    done;
    COMPREPLY=($( command ls $admindir | grep "^$cur" ))
}
quote ()
{
    echo \'${1//\'/\'\\\'\'}\'
}
quote_readline ()
{
    local t="${1//\\/\\\\}";
    echo \'${t//\'/\'\\\'\'}\'
}
kayve@kayve-laptop:~/workspace/Lists$ ls src/.metadata/
version.ini
kayve@kayve-laptop:~/workspace/Lists$ wc src/.metadata/
wc: src/.metadata/: Is a directory
      0       0       0 src/.metadata/
kayve@kayve-laptop:~/workspace/Lists$ wc src/.metadata/version.ini
 0  1 26 src/.metadata/version.ini
kayve@kayve-laptop:~/workspace/Lists$ cat src/.metadata/version.ini
org.eclipse.core.runtime=1kayve@kayve-laptop:~/workspace/Lists$

 

by: kayveyPosted on 2009-10-28 at 22:45:02ID: 25690947

kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4  Lists
kayve@kayve-laptop:~/workspace$ cd Lists/
kayve@kayve-laptop:~/workspace/Lists$ ls
bin  build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/Lists$ cd src/
kayve@kayve-laptop:~/workspace/Lists/src$ ls
lists
kayve@kayve-laptop:~/workspace/Lists/src$ cd lists/
kayve@kayve-laptop:~/workspace/Lists/src/lists$ ls
CoarseList.java  FineList.java  LazyList.java  LockFreeList.java  OptimisticList.java
kayve@kayve-laptop:~/workspace/Lists/src/lists$ cd ..
kayve@kayve-laptop:~/workspace/Lists/src$ cd ..
kayve@kayve-laptop:~/workspace/Lists$ cd nbproject/
kayve@kayve-laptop:~/workspace/Lists/nbproject$ ls
build-impl.xml  genfiles.properties  private  project.properties  project.xml
kayve@kayve-laptop:~/workspace/Lists/nbproject$ cd private/
kayve@kayve-laptop:~/workspace/Lists/nbproject/private$ ls
private.properties
kayve@kayve-laptop:~/workspace/Lists/nbproject/private$ cat private.properties
user.properties.file=/home/kayve/.netbeans/6.5/build.properties
kayve@kayve-laptop:~/workspace/Lists/nbproject/private$

 

by: kayveyPosted on 2009-10-28 at 22:45:49ID: 25690948

I'm confused now

kayve@kayve-laptop:~/workspace/Lists/nbproject/private$ cat private.properties
user.properties.file=/home/kayve/.netbeans/6.5/build.properties
kayve@kayve-laptop:~/workspace/Lists/nbproject/private$ cd ..
kayve@kayve-laptop:~/workspace/Lists/nbproject$ cd ..
kayve@kayve-laptop:~/workspace/Lists$ ls
bin  build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/Lists$ cd tes
bash: cd: tes: No such file or directory
kayve@kayve-laptop:~/workspace/Lists$ ls
bin  build.xml  nbproject  src  test
kayve@kayve-laptop:~/workspace/Lists$ cd test
kayve@kayve-laptop:~/workspace/Lists/test$ ls
lists
kayve@kayve-laptop:~/workspace/Lists/test$ cd lists/
kayve@kayve-laptop:~/workspace/Lists/test/lists$ ls
CoarseListTest.java  FineListTest.java  LazyListTest.java  LockFreeListTest.java  OptimisticListTest.java
kayve@kayve-laptop:~/workspace/Lists/test/lists$

 

by: kayveyPosted on 2009-10-28 at 22:48:47ID: 25690958

Open File is not the thing?

 

by: mwvisa1Posted on 2009-10-29 at 06:16:10ID: 25693253

kayvey,

Please calm down.  You are only going to make things worst for yourself.  

As stated before, you don't want to switch your workspace to the folder with your code as that is the project folder.  Leave your workspace as ~/workspace.

Follow my instructions and pick Lists folder now that you have moved it up to root of workspace.

You had this before when you showed picture with HW4.  What you had to do next was my instructions that said to "After project is in Eclipse, you can set the source folder to /path/to/src.  Then lists will properly be recognized as a package name."  What this means is in the screen pictured by HW4-proj.png you would change the source folder to the correct path to Lists/src.

However, since you have moved the contents to workspace hopefully with this structure:

Lists
  src
     lists
        SomeJavaClass.java

You should follow my instructions again and when you pick Lists, Eclipse should automatically make src your source folder.  If it doesn't do same thing mentioned earlier to mark it as such.

 

by: mwvisa1Posted on 2009-10-29 at 07:30:08ID: 25694062

kayvey,

I see you were up until about 2:00a my time and also that you may be 3 hours behind me in time zone; therefore, I hope your deadline for this assignment was not today and that you get to see this in time.

If you have the time, we can get you going no worries as I can bring my laptop home tonight.  I coach a few teams and last night was practice and family time with my sons as I spend most of my other time at work and on EE.  I apologize as it may have felt like I abandoned you, but have to take time away from my computer or I would get as frustrated as I think you were last night. :)

With that said let's step away from this particular project and ensure you understand the process of creating project from existing source.  mjc's approach is for importing projects which I tend to use when they were originally created in Eclipse and I just moved workspaces or reinstalled Eclipse.  For your current case you have a Netbeans project (you can tell from the folder structure - especially the nbproject folder) and XML files), so I would treat this like just having a plain old folder with Java classes since the Eclipse .project file will not already exist.

So let's start with a totally from scratch and then you can apply what you learn to the Lists project.

Create dummy existing project folder :

  1. Open Places | Home Folder, then Open workspace.  If you prefer terminal or other means, please do what is comfortable.  
  2. Create a folder in ~/workspace called TestProject.  This is the project folder.  
  3. Open Test and create a sub folder called src.  
  4. Open ~/workspace/TestProject/src and create a sub folder called testpackage.  
  5. Open ~/workspace/TestProject/src/testpackage and create a text file called TestClass.java.  If you want you can fill with content like :  
package testpackage;

public class TestClass {}


Content is not needed, but will help have a clean (no errors) project once we are done.

When you get this far, please post back.


 

by: mwvisa1Posted on 2009-10-29 at 12:32:06ID: 25697363

kayvey,

I don't want this to get lost in the shuffle when I am in transit from work to home, so here is the next step once you complete the above -- http:#25694062.



Now, let's bring project into Eclipse :

  1. Open Eclipse, selecting ~/workspace if prompted  
  2. File | New | Java Project OR File | New | Project and choose Java Project  
  3. Click "Create project from existing source" radio button  
  4. Click browse and navigate to ~/workspace.  
  5. Click on TestProject (don't open, just highlight folder) then click OK  
  6. Click Finish  

You should now have a project in Eclipse and should look like the attached image which will show the following :

  • Project named "TestProject"  
  • Source folder "src"  
  • Package name "testpackage"  
  • Class file "TestClass.java"  

If your environment doesn't look the same, then please let me know.  Otherwise, that is it! :) Therefore, you are ready to try the same process on Lists project.  

If you have issues with that, then post back before trying anything different.

That way we can do a little troubleshooting with what exactly is different between the simple project we just used here and the Lists project itself. :)

 
Regards,
Kevin

 

by: kayveyPosted on 2009-10-29 at 15:21:43ID: 25698840

I changed the "workspace" as in the very first comment.. but it still won't let me create a "project from existing source."

 

by: mwvisa1Posted on 2009-10-29 at 15:38:30ID: 25698926

Please do exactly what is in my last two posts step by step.

 

by: kayveyPosted on 2009-10-29 at 16:15:35ID: 25699104

I don't know how to get back to HW4_proj.png  {:(

 

by: kayveyPosted on 2009-10-29 at 16:20:19ID: 25699126

it DOES think build.xml is an ANT file.. it has the little creepy iconography...

 

by: kayveyPosted on 2009-10-29 at 16:21:45ID: 25699132

the dead line is next week.. but I have to get started.  There are two assignments due and this is just one part of this assignment.  AFTER I figure out how to run the existing code... THEN I have to write some of my own..

 

by: mrjoltcolaPosted on 2009-10-29 at 16:23:03ID: 25699141

I'm reading along and mwvisa1 took a lot of time and care to post explicit directions above, and you respond as if you've never even took the time to read his instructions.

This seems to be a basic problem of following directions. We don't need to see another screenshot if you are not going to try his suggestions above and respond to them in detail.

Creating a new project in Eclipse or Netbeans is not that difficult. If you close all this garbage, delete the workspace (or rename it) and start over, I'm sure you can create a project in 15 seconds.

 

by: kayveyPosted on 2009-10-29 at 16:23:16ID: 25699144

what I described.. the code is only part of the assignment.. one of the assignments all due midnight PST monday

 

by: kayveyPosted on 2009-10-29 at 16:24:02ID: 25699148

I got to HW4_proj.png by creating a new project called 'HW4," but I think I moved all the files since then...

 

by: kayveyPosted on 2009-10-29 at 16:24:24ID: 25699150

kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4  Lists
kayve@kayve-laptop:~/workspace$ mv Lists/
mv: missing destination file operand after `Lists/'
Try `mv --help' for more information.
kayve@kayve-laptop:~/workspace$ mv Lists/ HW4
kayve@kayve-laptop:~/workspace$

 

by: kayveyPosted on 2009-10-29 at 16:27:24ID: 25699163

Maybe I shouldn't have done that

 

by: kayveyPosted on 2009-10-29 at 16:29:56ID: 25699175

I didn't see the instructions until later after I made some of those posts.. but right now I don't know how I got to the thing he is telling me how to get back to.  I haven't read all the instructions right now because I am trying to figure out how to follow the early part of the "two posts"

Anyway.. these stupid IDEs are very confusing and I don't know when I am doing what somebody says anyway.

 

by: kayveyPosted on 2009-10-29 at 16:34:17ID: 25699187

as for the ease of "creating a project" I have displayed multiple screenshots of the failure of the creation of a project. THe arrows are greyed out until I type a name, and no name I can type is "correct" they all show errors.  The one time that didn't happen was when I created the project "HW4_proj.png" but as I have written, I think when I did that the Lists where inside HW4 directory.  Maybe I am wrong about that but you should know it is difficult to get details right sometimes, for me these damned directory games eclipse plays.. I have been struggling with this .. I was in a team project situation and my impatient teammates kept doing it for me and not explaining..

I knew it was a good thing when I created HW4_proj.png.. but I SCREWED UP AND THAT IS GONE AND I DON"T KNOW HOW TO GET BACK.

 

by: kayveyPosted on 2009-10-29 at 16:37:55ID: 25699207

This is what I remember doing when I created the screenshot HW4_proj.png and it is taking me 15 seconds TO DO IT AGAIN AND FAIL!

 

by: mrjoltcolaPosted on 2009-10-29 at 16:39:46ID: 25699217

Try this so we can start from a fresh workspace.

1) Close the IDE.
2) Rename your current workspace to workspace_old (cd ~ ; mv workspace workspace_old)
3) Start Eclipse again
4) When prompted, select default workspace of "workspace" (or full path would be /home/kayve/workspace). THis should create a new directory for you to start creating projects. (Don't copy
5) Everything is square one, so create a new project using File -> New -> Project (name it NewHW4)


Now you can take one of several approaches to move source files over.

 

by: mwvisa1Posted on 2009-10-29 at 16:51:58ID: 25699266

Agree with mjc.  

 

by: kayveyPosted on 2009-10-29 at 17:06:52ID: 25699317

I thought you said to move the files and I thought I got to HW4_proj.png by importing but now I get this error.

 

by: kayveyPosted on 2009-10-29 at 17:07:41ID: 25699320

kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/workspace$ ls
hw3  HW3  HW4  Lists
kayve@kayve-laptop:~/workspace$ mv Lists/
mv: missing destination file operand after `Lists/'
Try `mv --help' for more information.
kayve@kayve-laptop:~/workspace$ mv Lists/ HW4
kayve@kayve-laptop:~/workspace$ cd ..
kayve@kayve-laptop:~$ mv workspace/ workspace_old
kayve@kayve-laptop:~$ mkdir workspace
kayve@kayve-laptop:~$ cd workspace_old/
kayve@kayve-laptop:~/workspace_old$ ls
hw3  HW3  HW4  Lists
kayve@kayve-laptop:~/workspace_old$ mv Lists/ ../workspace/HW4/
kayve@kayve-laptop:~/workspace_old$ pwd
/home/kayve/workspace_old
kayve@kayve-laptop:~/workspace_old$ cd ../workspace
kayve@kayve-laptop:~/workspace$ ls
HW4
kayve@kayve-laptop:~/workspace$ pw
bash: pw: command not found
kayve@kayve-laptop:~/workspace$ cd
kayve@kayve-laptop:~$ cd workspace/HW4/
kayve@kayve-laptop:~/workspace/HW4$ ls
Lists
kayve@kayve-laptop:~/workspace/HW4$ mv Lists/ ..
kayve@kayve-laptop:~/workspace/HW4$ ls ..
HW4  Lists
kayve@kayve-laptop:~/workspace/HW4$ pwd
/home/kayve/workspace/HW4
kayve@kayve-laptop:~/workspace/HW4$

 

by: kayveyPosted on 2009-10-29 at 17:10:59ID: 25699334

I don't know if this is good. Maybe its good.

 

by: mrjoltcolaPosted on 2009-10-29 at 17:12:56ID: 25699339

I'm reposting my directions, verbatim, since you've deviated again and somewhere between step 4 and 5 you added 4b and started copying files from the old workspace. The goal here is to get one empty project, and stop.


1) Close the IDE.
2) Rename your current workspace to workspace_old (cd ~ ; mv workspace workspace_old)
3) Start Eclipse again
4) When prompted, select default workspace of "workspace" (or full path would be /home/kayve/workspace). THis should create a new directory for you to start creating projects. (Don't copy anything from the old workspace)
5) Everything is square one, so create a new project using File -> New -> Project (name it NewHW4)

 

by: kayveyPosted on 2009-10-29 at 22:10:56ID: 25700288

I didn't call it New_HW4 and I think some of the avenues to rome are equivalent. I didn't necessarily show every step I did even if I did it. The code seems to be included.. You were saying that the stuff in test is probably duplicate?  I only need the stuf in src? What about nbproject?  I should add all of it?

At this point I think I have to talk to my classmates about what is to be done with the code.  Maybe ask the professor.  I think you have helped me.. umm.. I'll give points by next Monday for sure.

 

by: mwvisa1Posted on 2009-10-29 at 22:22:54ID: 25700333

You only need the .Java files which is typically in the src folder.  If your test folder contains classes which it appeared yours does, you can import that to a separate project called ListsTest in which case you would follow same directions using only test folder.  nbproject and other folders are for the NetBeans project structure and are not necessary for you to work on the Java files in Eclipse.

Good luck!

 

by: kayveyPosted on 2009-10-29 at 23:52:28ID: 25700566

I know about *.java versus *.class.. but there were some equivalently named *.java files in those other folders.  I think I listed it all in the voluminous stuff above.

 

by: mwvisa1Posted on 2009-10-29 at 23:53:06ID: 25700569

kayvey,

If it helps you in the future to remember (maybe as a visual learner), I put together my thoughts in the following -- http:A_1885.html.

It is not yet published, but it already has the information pertinent to your needs here so might be worth a quick glance and then you can always take a good read when things calm down a bit more in a week as should be published by then. :) *hoping*

Anyway, glad you are starting to see the light a bit and sincerely wish you the best in your learning.

Best regards and happy coding,
Kevin

"Keep smiling; keep learning!"

 

by: kayveyPosted on 2009-10-29 at 23:55:32ID: 25700574

Oops. They're not equivalently named:

kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls src/lists
CoarseList.java  LazyList.java      OptimisticList.java
FineList.java    LockFreeList.java
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls test
lists
kayve@kayve-laptop:~/workspace/HW4/ch09/Lists$ ls test/lists
CoarseListTest.java  LazyListTest.java      OptimisticListTest.java
FineListTest.java    LockFreeListTest.java

someone had an idea what the tests were for exactly...

 

by: mwvisa1Posted on 2009-10-29 at 23:56:24ID: 25700580

Those are the JUnit test classes I was referring too :

CoarseListTest.java  
LazyListTest.java      
OptimisticListTest.java
FineListTest.java    
LockFreeListTest.java


You could have that in its own project called ListsTest as I said and reference Lists project OR if that gets too complicated for you simply make tests a source folder / package within the same project as Lists.  From my Article link above I showed how to bring files into an existing project, so after you get the project with only src folder working then you can use that technique replacing tests whereever src is referenced.

Hope that helps.

 

by: kayveyPosted on 2009-10-30 at 00:00:40ID: 25700584

why are they "JUnit test classes" and not just "test classes?"

 

by: kayveyPosted on 2009-10-30 at 00:02:14ID: 25700588

I think I brought the src file in using the import directory like you said. I think I have done that before. I bought the O'Reilly book on eclipse a while back and figure that out.. This creation of projects to me... I don't know.. I don't feel it was covered so well I guess.

 

by: mwvisa1Posted on 2009-10-30 at 00:18:54ID: 25700666

Just an educated guess given my knowledge of NetBeans.  The test package typically has JUnit test classes which are simply test classes, but I am classifying for you as it will help you identify the right project type to pick and/or help you with what library you are most likely going to need to add to your project build path.  :) Subliminal teaching! Guess not so much as you saw right through my Jedi mind trick...

 

by: mrjoltcolaPosted on 2009-10-30 at 09:00:42ID: 25704261

>>I didn't call it New_HW4 and I think some of the avenues to rome are equivalent


kayvey: Since you have a proverb for me, I have one for you. Some personal advice for life. I am put off by your attitude and sarcasm. When asking for directions to Rome, you are not in a position to argue with the one giving the directions.

I made several attempts to simplify the issue by getting you to main street first (by asking you to execute a simple set of steps), but you continue to do your own thing, then post screenshots, and want us to continue "helping", all the while demonstrating a very bad attitude towards this. If you aren't enjoying it, change majors.

Where I am from, we are taught to be patient and polite. You might consider how you conduct yourself, as it will become more important once you graduate and move out of the academic environment.

Good luck, but I am unsubscribing.

 

by: kayveyPosted on 2009-10-30 at 16:11:03ID: 25707362

I'm sorry, you have been nice..

My frustration was all at the Eclipse program, if that helps at all..

You have not at all been an example of this, but I have found a lot of "helpers" out to denigrate "n00bs" so I have sort of a callous about that.

You give good advice, but criticizing me to fail to follow directions because I had other things to do and I only got so far into your advice..

Well.. I guess I made some posts, which you took to be spurious, since I had not yet taken all of your advice..

I guess I don't know what else to say other than life sucks and then you die.  I am saying this about my own life since I have been trying to do this nonsense for 20 years and it appears they might let me have a MSCS, but there are HS student hackers who do things better than I do.  As for the advice of dropping my entire life.. well.. unless you are doing that yourself, I don't think you grasp fully the implications of that advice, with due respect.

I hope I am not copping any "attitude" because apparently I have absolutely no aptitude for that sort of thing (besides my ineptness at other things that we are exposing here.)  I don't know what else to do but call it the way I see it.  When I invoked "Rome" I felt it implied that despite it may have seemed that I wasn't following your advice, in actuality, I want to say that it helped me nonetheless.  Perhaps the implication here was that you told me to go to Rome instead of Paris, and I got there the easiest way I saw it, because it isn't like I have 0% clue of what is going on even with this Eclipse app.  The importance of the ~/workspace directory here is probably "Rome."

Anyway.  I'm sorry you had to unsubscribe, but whatever.  You were very nice. Thank you for your advice. I think I need to learn to unsubscribe.  That isn't something that is natural for me.

 

by: kayveyPosted on 2009-10-30 at 20:22:42ID: 25708211

WTF?

 

by: kayveyPosted on 2009-10-30 at 20:26:13ID: 25708228

OKay.. it is closing it and giving the points as assigned? Great Super. Do it.

 

by: mwvisa1Posted on 2009-10-30 at 20:36:26ID: 25708260

Looks like you got it that time kayvey.  Should close in 4 days, but reason it is closing like that is you chose one of your comments as the answer; therefore, to avoid this in the future you can click on the Accept Multiple Solutions on one of the expert comments and then split points from there.

Anyway, glad to help and thanks for the points.

Respectfully yours,


mwvisa1

 

by: kayveyPosted on 2009-10-30 at 20:39:20ID: 25708268

I don't see that I did that! Shoot! THat's not what I wanted to do!

 

by: kayveyPosted on 2009-10-30 at 20:42:16ID: 25708279

DId I split the points correctly?  I wanted to give  points to a number of substative or important suggestions, and none of them should be my own comments.

 

by: kayveyPosted on 2009-10-30 at 20:42:47ID: 25708280

THis is really getting confusing now.

 

by: kayveyPosted on 2009-10-30 at 20:43:45ID: 25708285

oh well.. if it goes around a merry-go-round again, I'm out.

 

by: kayveyPosted on 2009-10-30 at 20:50:37ID: 25708306


Notice: kayvey has requested that this question be closed by accepting kayvey's comment #25708268 (0 points) as the solution and mrjoltcola's comment #25688989 (72 points), mwvisa1's comment #25689110 (72 points), mwvisa1's comment #25693253 (72 points), mwvisa1's comment #25694062 (71 points), mwvisa1's comment #25697363 (71 points), mrjoltcola's comment #25699217 (71 points) and mrjoltcola's comment #25699339 (71 points) as the assisted solutions for the following reason:
I hope I did it right this time.
To cancel this request and generate a request in Community Support for Moderator review, state your reason for objecting in the standard comment box and click the 'Object' button. This question will be closed on 11/3/2009 if there are no objections.

It says I accepted my comment "(0 points)" umm.. so yeah.  Whatever Mr. WebServer.. tell your programmer something fishy is going on.  It looks good to me.

 

by: mwvisa1Posted on 2009-10-30 at 20:51:24ID: 25708315

I believe you can still click on the Accept Multiple Solutions button even though auto-close has started.  When you clicked object, it should have created a thread for the moderators; therefore, one should be along to help you in a bit.

:)

 

by: mwvisa1Posted on 2009-10-30 at 20:54:02ID: 25708325

I know it is at 0 points.  My point was that in the future just note, a question will only close immediately if the accepted comments are all Expert comments and not Author (your) comments.  If you have a comment involved in the accepted solution or list of solutions, then the 4 day auto-close process you see now will occur. ;)

Hope that makes sense.

 

by: kayveyPosted on 2009-10-30 at 20:55:51ID: 25708334

There was a green button for "Accept as Solution" and a blue button where "Accept Multiple Solutions" used to be, but it didn't say that I think it said "Award Points."  I clicked on it, and I liked the new feature that calculated equivalent splittings..I used to have to do them myself and it was irritating and cumbersome when you didn't do it right.  I guess I was allowed to alter the respective values, but in this case I didn't.. some got 71 and some got 72 obviously by virtue of integral division, and I think it is a straight up bug that it is thinking that I wanted to award myself points unless I was clicking the box BELOW the comment when I should have been clicking the box ABOVE the comment.. or vica versa.. but still.. it is saying 0 points for  me.  I am confused, and I think I will let an admin sort this out at this point.

 

by: kayveyPosted on 2009-10-30 at 20:58:26ID: 25708343

I didn't think I did the check box on any of my comments.  I hope it is doing the right thing. I selected comments that had the very detailed specific instructions that maybe I still have to follow, but from my experience in an earlier assignment I think as long as the *.java files show up in the hierarchy (although I might have to add the test directory *.java files yet) I think it will work.

It seemed pretty clear that I was selecting the right check boxes, but if obvious large and detailed comments were NOT awarded points then I think there might be an "off by one" error here.

 

by: mwvisa1Posted on 2009-10-30 at 21:07:32ID: 25708369

:) I wouldn't worry about it.  Just happy you are at a point were you are moving forward on your assignment.  Thought you were going to keep trying to object and re-close to have it go immediate as I misread your comment.  

Yes, as long as you get the *.java files in Eclipse you are good to go as you can always move them around using the IDE's Refactor | Move command.

Regards,
Kevin

 

by: kayveyPosted on 2009-10-30 at 21:09:44ID: 25708377


Notice: kayvey has requested that this question be closed by accepting kayvey's comment #25708268 (0 points) as the solution and

 mrjoltcola's comment #25688989 (72 points)

This looks OK

, mwvisa1's comment #25689110 (72 points)

This looks good.

, mwvisa1's comment #25693253 (72 points),

I think leave workspace as ~/workspace if that is all that was said in one comment, (it was bolded in the above large comment) might have been the one most important piece of advice that I followed, but of which I perhaps did not get a screenshot.

mwvisa1's comment #25694062 (71 points),

This is probably the advice that got me in trouble for not following.  Since it is also MWs it is appropriate to award him points because he gave that one most important piece of advice.  Also, in the event that I refer back to this if I have future problems it should be emphasised.

mwvisa1's comment #25697363 (71 points),

Ibid.

 mrjoltcola's comment #25699217 (71 points) and

I followed this simple advice.. I think it helped me to tell me to close the IDE, although it happened once that it crashed.  I supplied some comment line output of `ps aux | grep eclipse` in that aftermath.

mrjoltcola's comment #25699339 (71 points)

hmm.. this might be repetitive.. I think I meant to award MWVista these 71 points for this comment:

>>I didn't call it New_HW4 and I think some of the avenues to rome are equivalent


kayvey: Since you have a proverb for me, I have one for you. Some personal advice for life. I am put off by your attitude and sarcasm. When asking for directions to Rome, you are not in a position to argue with the one giving the directions.

I made several attempts to simplify the issue by getting you to main street first (by asking you to execute a simple set of steps), but you continue to do your own thing, then post screenshots, and want us to continue "helping", all the while demonstrating a very bad attitude towards this. If you aren't enjoying it, change majors.

Where I am from, we are taught to be patient and polite. You might consider how you conduct yourself, as it will become more important once you graduate and move out of the academic environment.

Good luck, but I am unsubscribing.


 as the assisted solutions for the following reason:
I hope I did it right this time.
To cancel this request and generate a request in Community Support for Moderator review, state your reason for objecting in the standard comment box and click the 'Object' button. This question will be closed on 11/3/2009 if there are no objections.

It says I accepted my comment "(0 points)" umm.. so yeah.  Whatever Mr. WebServer.. tell your programmer something fishy is going on.  It looks good to me.

 

by: kayveyPosted on 2009-10-30 at 21:11:40ID: 25708390

I think I will try this one last time.

 

by: kayveyPosted on 2009-10-30 at 21:16:34ID: 25708404

OK, this is really silly.  I was unable to discern anything that was "me awarding points to myself."  I looked carefully, and every check box was on the same line with the text "Expert comment by [mwvista or mj]

 

by: kayveyPosted on 2009-10-30 at 21:18:20ID: 25708409

yeah.  From where I sit I could swear somebody needs to debug this web application.  THat's just my hoary old inept opinion

      
Notice: kayvey has requested that this question be closed by accepting kayvey's comment #25708377 (0 points) as the solution and mwvisa1's comment #25689110 (72 points), mrjoltcola's comment #25689554 (71 points), mwvisa1's comment #25693253 (71 points), mwvisa1's comment #25694062 (71 points), mwvisa1's comment #25697363 (71 points), mrjoltcola's comment #25699217 (72 points) and mrjoltcola's comment #25704261 (72 points) as the assisted solutions for the following reason:
::fingers crossed::

 

by: mrjoltcolaPosted on 2009-10-31 at 07:40:40ID: 25709960

Kayven,

>>there are HS student hackers who do things better than I do

Let me reassure you, you can still do anything a high school hacker can do. I learned Eclipse in my thirties, and at first I hated it and wanted to run back to Linux + makefiles + vi.


>>I guess I don't know what else to say other than life sucks and then you die.

That is one that I strongly disagree with. I see things differently. Life is wonderful. It is too short to spend it being ticked off.

Yes, I can completely sympathize, Eclipse and Java technology is complex and frustrating to the point that you do want to take a baseball bat to your PC sometimes. I started when we programmed 1 file at a time, on 12 inch green screens on UNIX. The complexity of a large Java project, all of the XML files, etc. make me think of the old "frogs boiling" proverb, heat it up slowly and he will sit. That is what has happened with Java and web technology in general. High school kids take all of this for granted, and they think XML is just "the way" it is done.

I think this generation of approach to web will run its course eventually. Let's hope we can survive to see the next best thing. If there is one thing I've lived through, it is 4 generations of technology, so I know this too shall pass. :)

If my comments were hurtful, they were not meant to me. Honestly, I had pictured you as a college kid who hadn't been around the block. So I am also guilty of making assumptions. Sounds like you are trying something new, so I reconsider my words. The only thing I do hope you take from this is that "patience" and "confidence" and "good attitude" can make a world of difference with stuff like Java. It may not seem like it the first hour, or the first day, or even the first week, but, if you are patient and persistent and do not get discouraged, your brain will slowly absorb this stuff, and slowly but surely you will develop skillset such that when you look back 6 months from now, you'll laugh. Discouragement is the biggest evil you have to fight in this world of IT. So find people to hang out with that encourage.

The fact that you run Linux encourages me that you have all the aptitude needed to learn Java. Noone learns Java overnight.

Cheers, and feel free to post another question for more help. I feel we understand each other better now and I'll also be a bit more patient in helping you through this challenge.

-mjc

 

by: kayveyPosted on 2009-10-31 at 20:54:11ID: 25712541

TO be honest, I really don't want to jump on the Java bandwagon, but I have to for this class. I don't recall anything you said that hurt me, but I am sad that MWVista "unsubscribed" and I feel a little frustrated the way he was so miffed that I "wasn't following his instructions"  I got a bee in my bonnet at one point to give all possible info, and did a lot of things and I don't think he liked that because I "wasn't following his advice."

We are doing a lot of timing projects, and I am happy to see that c still rocks java butt on this stuff.  Another thing I am really happy about right now is the revamped NCBI website that seems to have a robust C library:

http://www.ncbi.nlm.nih.gov/IEB/ToolBox/SDKDOCS/CORELIB.HTML

They are forcing me to do java, though, and I certainly can appreciate IDEs, actually.. I did get exposed to them at City College of San Francisco, where I took a bunch of classes "starting over" maybe I was being a putz.. but I was intrigued at the time by "Windows Programming" which turned out to use MFC.. at the time I really didn't have a sense for the who "Microsoft/Wintel/OpenSource," although I was aware of GNU because I had already dealt with something called "GNUchess" because I am a rated competive chess player a class below expert, and the software was necessary for online play. It took me a while to realize that my BSCS was all UNIX/C, umm.. although when I first tried to sign up for this course "Windows Programming" he said I had to start over with C++.  I tried to take that same guy's "data structures" course which made me crazy because I took "data structures" for my BSCS.  I knew I did C.. the ramifications of unix didn't so strike me as much as I understand it now.. The thing about IDEs and CCSF, though is that they have this huge computer lab, and it is very well maintained.. they have some very good techs that never let anything get mucked up.  So what happened, this guy wouldn't let me take "data structures" and I ended up getting all the courses for a dang AS degree or whatever because a few others piqued my interest.. but I never had to run my own machine and it was hard for me to budget for it.. but I really feel I got pretty spoiled, and now the constant struggle with the setting up of things..

:sigh:: what a blowhard I am.  

Tell MWVIsta I am sad I made him so unhappy.  I guess he isn't listening to me anymore.  Both you guys were super nice.  

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...