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.
Main Topics
Browse All TopicsThere 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:~/Docum
kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/works
/home/kayve/workspace
kayve@kayve-laptop:~/works
hw3 HW3 HW4
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
06~Chapter_09.zip ch09
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
Lists
kayve@kayve-laptop:~/works
bash: cd: Liat: No such file or directory
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
build-impl.xml genfiles.properties project.properties project.xml
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseList.java LazyList.java OptimisticList.java
FineList.java LockFreeList.java
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseListTest.java LazyListTest.java OptimisticListTest.java
FineListTest.java LockFreeListTest.java
kayve@kayve-laptop:~/works
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
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.
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.
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.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
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.
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.
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.
kayve@kayve-laptop:~/works
/home/kayve/workspace
kayve@kayve-laptop:~/works
hw3 HW3 HW4
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
06~Chapter_09.zip ch09
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
Lists
kayve@kayve-laptop:~/works
bash: cd: Liat: No such file or directory
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
build-impl.xml genfiles.properties project.properties project.xml
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseList.java LazyList.java OptimisticList.java
FineList.java LockFreeList.java
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseListTest.java LazyListTest.java OptimisticListTest.java
FineListTest.java LockFreeListTest.java
kayve@kayve-laptop:~/works
/home/kayve/workspace/HW4/
kayve@kayve-laptop:~/works
Lists
kayve@kayve-laptop:~/works
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
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.
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.
here is build.xml
kayve@kayve-laptop:~/works
<?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
<!--
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:
-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:~/works
@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.
it won't upload
</project>
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build-impl.xml genfiles.properties project.properties project.xml
kayve@kayve-laptop:~/works
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans
<type>org.netbeans.modules.j
<configuration>
<data xmlns="http://www.netbeans
<name>Lists</name>
<minimum-ant-version>1.6.5</m
<explicit-platform explicit-source-supported=
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
</configuration>
</project>
kayve@kayve-laptop:~/works
all righty
p:~/workspace/HW4/ch09/Lis
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
CoarseList.java FineList.java LazyList.java LockFreeList.java OptimisticList.java
kayve@kayve-laptop:~/works
Password:
su: Authentication failure
kayve@kayve-laptop:~/works
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-ge
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-jav
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
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-jav
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]?
I found a website..
http://groups.google.com/g
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:~#
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_V
> found.
> Solution: Click Resolve and create new platform called
> "Java_HotSpot_TM__Client_V
> ----------------
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.
The code is from our text:
http://www.elsevierdirect.
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.
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. :)
ayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
mv: cannot stat `Lists': No such file or directory
kayve@kayve-laptop:~/works
06~Chapter_09.zip ch09
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
aptop:~$ cd workspace/
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
mv: cannot stat `Lists': No such file or directory
kayve@kayve-laptop:~/works
06~Chapter_09.zip ch09
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
build-impl.xml genfiles.properties private project.properties project.xml
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseList.java LazyList.java OptimisticList.java
FineList.java LockFreeList.java
kayve@kayve-laptop:~/works
private.properties
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseListTest.java FineListTest.java LazyListTest.java LockFreeListTest.java OptimisticListTest.java
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseListTest.java FineListTest.java LazyListTest.java LockFreeListTest.java OptimisticListTest.java
kayve@kayve-laptop:~/works
/home/kayve/workspace/List
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
06~Chapter_09.zip ch09
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
/home/kayve/workspace/HW4/
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
06~Chapter_09.zip ch09
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
hw3 HW3 HW4 Lists
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
oh.
*@&# 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.h
kayve 4585 0.3 1.3 95736 38552 ? Sl 22:15 0:00 /usr/lib/jvm/java-gcj/bin/
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/o
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/
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.h
kayve 4585 0.3 1.3 95736 38552 ? Sl 22:15 0:00 /usr/lib/jvm/java-gcj/bin/
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/o
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/
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.h
kayve 4585 0.3 1.3 95736 38552 ? Sl 22:15 0:00 /usr/lib/jvm/java-gcj/bin/
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/o
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/
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.h
kayve 4585 0.2 1.3 95736 38552 ? Sl 22:15 0:00 /usr/lib/jvm/java-gcj/bin/
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:~#
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
hw3 HW3 HW4 Lists
kayve@kayve-laptop:~/works
build.xml nbproject src test
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
bin build.xml nbproject src test
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseList.class LazyListTest.class
CoarseList$Node.class LazyListTest$RemoveThread.
CoarseListTest$AddThread.c
CoarseListTest.class LockFreeList$Node.class
CoarseListTest$RemoveThrea
FineList.class LockFreeListTest.class
FineList$Node.class LockFreeListTest$RemoveThr
FineListTest$AddThread.cla
FineListTest.class OptimisticList.class
FineListTest$RemoveThread.
LazyList.class OptimisticListTest$AddThre
LazyList$Node.class OptimisticListTest.class
LazyListTest$AddThread.cla
kayve@kayve-laptop:~/works
This is going to be a file called:
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
/home/kayve/workspace/List
kayve@kayve-laptop:~/works
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
and another
build-impl.xml genfiles.properties private project.properties project.xml
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build-impl.xml genfiles.properties private project.properties project.xml
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
ayve@kayve-laptop:~/worksp
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
lists/ .metadata/
kayve@kayve-laptop:~/works
CoarseList.java FineList.java LazyList.java LockFreeList.java OptimisticList.java
kayve@kayve-laptop:~/works
version.ini
kayve@kayve-laptop:~/works
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:~/works
version.ini
kayve@kayve-laptop:~/works
wc: src/.metadata/: Is a directory
0 0 0 src/.metadata/
kayve@kayve-laptop:~/works
0 1 26 src/.metadata/version.ini
kayve@kayve-laptop:~/works
org.eclipse.core.runtime=1
kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/works
hw3 HW3 HW4 Lists
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
bin build.xml nbproject src test
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
CoarseList.java FineList.java LazyList.java LockFreeList.java OptimisticList.java
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
build-impl.xml genfiles.properties private project.properties project.xml
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
private.properties
kayve@kayve-laptop:~/works
user.properties.file=/home
kayve@kayve-laptop:~/works
I'm confused now
kayve@kayve-laptop:~/works
user.properties.file=/home
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
bin build.xml nbproject src test
kayve@kayve-laptop:~/works
bash: cd: tes: No such file or directory
kayve@kayve-laptop:~/works
bin build.xml nbproject src test
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
CoarseListTest.java FineListTest.java LazyListTest.java LockFreeListTest.java OptimisticListTest.java
kayve@kayve-laptop:~/works
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.
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 :
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 :
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.
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.
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.
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.
kayve@kayve-laptop:~$ cd workspace/
kayve@kayve-laptop:~/works
hw3 HW3 HW4 Lists
kayve@kayve-laptop:~/works
mv: missing destination file operand after `Lists/'
Try `mv --help' for more information.
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~$ mv workspace/ workspace_old
kayve@kayve-laptop:~$ mkdir workspace
kayve@kayve-laptop:~$ cd workspace_old/
kayve@kayve-laptop:~/works
hw3 HW3 HW4 Lists
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
/home/kayve/workspace_old
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
HW4
kayve@kayve-laptop:~/works
bash: pw: command not found
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~$ cd workspace/HW4/
kayve@kayve-laptop:~/works
Lists
kayve@kayve-laptop:~/works
kayve@kayve-laptop:~/works
HW4 Lists
kayve@kayve-laptop:~/works
/home/kayve/workspace/HW4
kayve@kayve-laptop:~/works
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)
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.
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!
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!"
Oops. They're not equivalently named:
kayve@kayve-laptop:~/works
CoarseList.java LazyList.java OptimisticList.java
FineList.java LockFreeList.java
kayve@kayve-laptop:~/works
lists
kayve@kayve-laptop:~/works
CoarseListTest.java LazyListTest.java OptimisticListTest.java
FineListTest.java LockFreeListTest.java
someone had an idea what the tests were for exactly...
Those are the JUnit test classes I was referring too :
CoarseListTest.java
LazyListTest.java
OptimisticListTest.java
Fin
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.
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...
>>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.
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.
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
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.
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.
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.
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.
:) 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
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.
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::
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
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.go
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/OpenSour
: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.
Business Accounts
Answer for Membership
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.