Top.Mail.Ru
November 4th, 2005 - Java developers — LiveJournal
? ?

Java developers

November 4th, 2005
Image

01:47 pm - Imagegrauwulf - WebLogic 8.1 Portal

So I'm hitting walls on this. BEA WebLogic 8.1 sp3, I have a portal set up and everything is happy. yea. *waves little flag* I move the framework repository off of pointbase and onto Oracle 9.2.0.7.0. Everything is groovy. I set up a Data Repository and it wont allow me to upload a file bigger than 0k, but it will take any other object class that doesn't have a file attachment. I've tried different drivers for the connection pool and have been digging through the documentation but I'm finding nothing.
Any Ideas?
Image

08:03 pm - Imageasmor

Hey everyone! Just joined, and I have a bit of a problem.

I'm trying to read from a text file, and I'm using a String Buffer class to store the contents. Now, according to the documentation, StringBuffer.appent(int i) should append the string representation of an integer, but for me it appears to be just appending the integer.

Here's the relevant code snippet:

FileReader in = new FileReader(file);
int c;
StringBuffer incoming = new StringBuffer();
while ((c = in.read()) != -1) {
   incoming.append(c);
}
in.close();
JOptionPane.showMessageDialog(null, incoming.toString());


Now, it's definitely reading the file. I don't have the whole ASCII chart memorized, but for example there are sequential numbers where there should be "ab", and repeating numbers where there should "SS."

I have a feeling it has something to do with the encoding, but I'll be blunt and admit that I need to have this done by tomorrow night, and I'd never even tried looking up how to handle files before today. Trying to figure out encoding stuff, if that is the problem, seems an utterly daunting task.

Any help would greatly be appreciated!

Just in case it's helpful, here's the whole methodCollapse )
Image

10:24 pm - Imageasmor

Hey everybody, thanks for the help with that problem. Got the assignment all finished now, just gotta package it nicely and send it off.

Figure a bit of an introduction is in order... My name's Ian, you can call me Ian or Asmor, doesn't really matter. I'm honestly not terribly fond of Java, but it's what I have to do for my college courses. It's also my first "real" programming language, up until now I've mostly taught myself scripting and markup languages for the internet (JavaScript, PHP, MySQL, HTML, CSS, etc).

One of my big annoyances with Java is that it doesn't look like Windows. Things that have different looks annoy me. The first thing I do on a new machine is set the look back to classic windows. I'm wondering how I would go about setting my system's default look and feel to Windows? Right now it's some pretty, shiny, but not windowsy white and blue scheme.
Powered by LiveJournal.com
Image