Recent activity
Subscribe to this feed
Jan Ignacio replied on April 10, 2009 20:17 to the problem "Slight lag during quub navigation" in quub:
Jan Ignacio replied on April 10, 2009 16:21 to the praise "Very useful web app!" in quub:
Jan Ignacio replied on April 10, 2009 15:41 to the praise "Very useful web app!" in quub:
Jan Ignacio replied on March 15, 2009 22:37 to the question "RandomAccessFile: readUTF() and writeUTF()" in LUCI:
Jan Ignacio replied on March 12, 2009 21:29 to the question "What's a good way to create a binary file from Java?" in LUCI:
Jan Ignacio replied on March 12, 2009 20:15 to the question "What's a good way to create a binary file from Java?" in LUCI:
Jan Ignacio asked a question in LUCI on March 12, 2009 18:20:
What's a good way to create a binary file from Java?i'm currently figuring out how to write my post-process java program to produce a binary file, but I'm stumped; I'm not finding much in terms of the Java 6 API, and most of the examples online that I find are about reading in binary files, not actually writing them.
Is there something specifically different about binary files versus regular text files, other than their file format suffix? (aka, .bin vs. .txt)
Jan Ignacio replied on March 04, 2009 18:17 to the question "Status of ICS openlab machines" in LUCI:
Jan Ignacio asked a question in LUCI on March 04, 2009 15:46:
Status of ICS openlab machinesI'm just wondering, what's the status of the machines? I attempted to run my 30000 last night, but my processes got killed. I was going to restart it this morning to turn in the assignment late, but I'm having problems even connecting via PuTTY (command line's hella slow, and I can't get past my password submission). What's going on?
Jan asked a question in LUCI on February 11, 2009 23:35:
Notes from Monday's discussion not up, and lecture?When will the notes from discussion and lecture be posted? My group could use some of the material covered to understand what we need to do. We had also seen some sample code during the discussion we'd like to look at. Also, will there be a linux solution for the class to use?
Jan replied on February 10, 2009 02:43 to the question "For those still working on getting Assignment 3 to work!" in LUCI:
Thanks, Prof; although your link was very helpful in using File objects in java, I think my question was a little unclear. I meant, when we run the jar file in openlab with a command like:
java -cp crawler.jar crawler.Controller
would it be possible to give the program inputs? For example, a normal program would go:
java myProgram input1 input2
where "input1" and "input2" were parameters passed into the program. I tried doing that with the above command, but java kept on complaining that it didn't know what I meant.
Also, if I was to pass in a file location parameter to java, would it look something like:
java myProgram /location/putmyfilehere
? Or am I getting the format wrong?
Thanks, sorry for the long post; just wanted to be a little more clearer.
Jan asked a question in LUCI on February 10, 2009 00:54:
For those still working on getting Assignment 3 to work!Hey all! I didn't get Assignment 3 to work before the deadline last week, but that's not stopping me from getting it to run and completed! If you're still working on it like I am, feel free to post here.
Here are some of my questions, and forgive me if I sound like a noob. Is it possible to specify the root folder and number of crawlers via command linux command line on openlab? Also, what's the structure for specifying the folder if you want the crawler to save to a directory there?
Thanks!
Jan replied on February 06, 2009 22:55 to the question "How do we run our crawler from openlab?" in LUCI:
Hey all, just wanted to update how my problem got solved, just in case there are other ppl working with it. I apparently imported the crawler4j dependencies as the original zip file into Eclipse, which is why Eclipse couldn't find the classes it needed when I ran the assignment. Once I unzipped the dependencies and imported them all into eclipse, the problem was solved.
Jan replied on February 02, 2009 04:58 to the question "How do we run our crawler from openlab?" in LUCI:
Jan replied on February 02, 2009 04:35 to the question "How do we run our crawler from openlab?" in LUCI:
Switched to the openlab server; now it's throwing a NoClassDef exception at me; I noticed that Jordan had gone through the same problem, so I attempted to run the code on my desktop, and kill it as soon as I could see it starting to crawl. However, I got the same msg; Eclipse posted the following to me:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at edu.uci.ics.crawler4j.crawler.CrawlController.<clinit>(CrawlController.java:27)
at crawler.Controller.main(Controller.java:7)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 2 more
As far as I can tell, it just can't find the pertinent classes in the edu.uci.ics.crawler4j.crawler.CrawlController import? How is that possible?
I should also add that I've even tried running the basic code you posted up on the Google Code page. I still get the same error.</clinit>
Jan replied on February 02, 2009 03:20 to the question "How do we run our crawler from openlab?" in LUCI:
Jan replied on February 02, 2009 01:58 to the question "How do we run our crawler from openlab?" in LUCI:
Thanks for the quick response! A couple of questions:
1) I'm currently getting an UnsupportedClassVersionError. which terminates at java.lang.ClassLoader.defineClass0, when I run my code as above. I'm guessing this has to do with me running it on my personal ICS space, as opposed to the extra ugrad space?
2) This is more out of curiosity, but why is "src" omitted? my crawler package is structured underneath the src package in Eclipse, so I figured it would be part of the command.
Jan asked a question in LUCI on February 02, 2009 01:27:
How do we run our crawler from openlab?This is pretty last-minute, but as I'm seeing plenty of ppl successfuly testing their code, I'm hoping for a quick response.
I've exported a jar file of my code onto my personal ICS space on my account, and I'm accessing it via PuTTY and connecting through the family guy UNIX machine. However, when I try to run the main method from the Controller class with the following command:
nohup java -cp crawler.jar src.crawler.Controller
I get a NoClassDefFoundError: src/crawler/Controller
Am I going about this the wrong way? I have plenty of code, but I'm afraid of testing it on my computer, as it has limited resources and I don't want to burn it out.
Jan marked one of Yasser's replies in LUCI as useful. Yasser replied to the question "ugrad space and our program".
Jan replied on January 15, 2009 04:19 to the question "ugrad space and our program" in LUCI:
| next » « previous |
Loading Profile...
