Re: Java 2

1999-11-02 Thread Joost Helberg

rwk,

The java 2 implementation of Blackdown is great; a lot faster than
java 1, but there's a little deadlock in GUI's which stops it from use
for production systems, for the rest: good stuff.

Joost

> "Jacob" == Jacob Nikom <[EMAIL PROTECTED]> writes:


Jacob> I think Blackdown port is Java 2. What specific package do you need?
Jacob> Jacob Nikom

Jacob> [EMAIL PROTECTED] wrote:
>> 
>> Does anyone know even roughly when Java 2 will be ported to Linux?
>> 
>> I am planing to start a project, and would prefer to wait for Java 2 if
>> it won't be too long.
>> 
>> Thanks,
>> Dick Kreutzer
>> AmeriCom Inc.
>> 
>> --
>> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Jacob> --
Jacob> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
Jacob> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
Joost Helberg  Unix consultants  v   v
[EMAIL PROTECTED]   OO developers \ /
 ###   ####  # >---X---<
http://snow.nl  # #  #  #  # #  #  #  / \
Snow B.V.##   #  #  #  # #  #  # ^   ^
Tel. 0418-65   #  #  #  #  # #  #  #
Fax. 0418-653666###   #  #   ##   ## ##
PGP PblKey fprnt=4D BD 6A 45 6A 86 81 59  0D BA 7D D4 B2 F8 63 34


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



JDBC useing MySQL and mm.

1999-11-02 Thread Brent Allsop


tpeter,

This sound like some problems I had.  I was trying to import
the mm stuff but this wasn't correct.  Here's a a module
I finally was able to make work.  Hope it helps.


Brent

P.S.Hey, I went to BYU one semester a long time ago..


-- cut here -
import java.io.*;

import java.sql.*;

import javax.servlet.*;
import javax.servlet.http.*;


// Table Printer Server


public class TPServ extends HttpServlet {

/**
 * Creates a new BLPServe (was LinkCheckerServlet)
 */
public TPServ() {
}

/**
 * Services a single request from a client.
 * @param req the HTTP request
 * @param res the HTTP response
 * @exception IOException If an I/O error has occured
 */


  public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
  {
String table = req.getParameter("table");
ServletOutputStream out = res.getOutputStream();
String outStr;

res.setContentType("text/html");

out.println("");
out.println("");
out.println("Table Printer Server");
out.println("");
out.println("");

out.println("Class.forName");

out.flush();


try {

Class.forName("org.gjt.mm.mysql.Driver");

out.println("Trying connection...");

out.flush();

Connection Conn = null;
Statement stmt = null;
ResultSet rs = null;

Conn = DriverManager.getConnection(
"jdbc:mysql://localhost/bookstore?user=;password=");

stmt = Conn.createStatement();

//  String[] tables = {"db","user","host"};

String[] tables = {"person", "item", "rank"};

int tnum = tables.length;
if (table != null) {
tnum = 1;
tables[0] = table;
}


for (int j=0; j < tnum; j++) {
// Execute an SQL query, and retreive a ResultSet
rs = stmt.executeQuery("SELECT * FROM "+tables[j]);


ResultSetMetaData rsmd = rs.getMetaData();


// Display the result set in a table
out.println("\n\nTable: " + tables[j] + "\n");
out.println("");

// Title the table with Column Headers
int numcols = rsmd.getColumnCount();
out.print("");
for (int i=1; i<= numcols; i++)
out.print("" + rsmd.getColumnLabel(i));
out.println("");

// Print out result
while(rs.next()) {
out.println("");
for (int i=1; i<= numcols; i++) {
Object obj = rs.getObject(i);
out.print("");
out.print((obj != null) ?
  obj.toString() :
  " ");
}
out.println("");
}
out.println("");
}

if (stmt != null) stmt.close();
if (Conn != null) Conn.close();

//catch (SQLException ignored) { }
}
catch (Exception E) {
out.println("Connection failed : " + E.getMessage());
 }

out.println("completed connection call");


out.println("");

out.flush();

  }

}




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



off topic (code problem)

1999-11-02 Thread Yohans Mendoza

hi all,
I'm having a problem with a piece of code, and I'm going nuts here.

here's the piece, plese help

public STable(Vector fieldsv, Vector rowsv)
{
originalRows = (Vector)rowsv.clone();
rows = (Vector)rowsv.clone();
...
}
now, the problem is that when rows changes originalRows changes too.
the parameter is a vector of vectors, so I'm guessing that's messging
things up, right? 

Any help would be appreciated

TIA

--Yohans
~
Yohans Mendoza  Unix Administrator
[EMAIL PROTECTED]Sirius Images Inc.  
http://www2.utep.edu/~yohanshttp://www.sirius-images.net 
~


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



How do I create a 1-bit depth graphics in memory?

1999-11-02 Thread Eric Chao

Hi, I am currently trying to create a 1-bit depth graphics in memory.  I
do not need color capabilities, just black-and-white. I am using a
buffer made up of integers but it is a waste of memory when I can use
1-bit for a pixel instead of 32-bits.  What is the best way to do that?
I need to switch to the more efficient way since Java complains
OutOfMemory exception on large images

Eric Chao
[EMAIL PROTECTED]
Merlin Software Technologies Inc.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How do I create a 1-bit depth graphics in memory?

1999-11-02 Thread Aaron Mulder

I've run into this myself, and it seemed like the ColorModel class
assumes that you'll use either 1 byte or 1 int for each pixel.  So it
seemed like the best you could do was switch to 8-bit indexed color, which
is at least a 4x improvement.  If there is in fact a way to use a 1-bit
color model, I'd love to hear it!

Aaron

On Tue, 2 Nov 1999, Eric Chao wrote:
> Hi, I am currently trying to create a 1-bit depth graphics in memory.  I
> do not need color capabilities, just black-and-white. I am using a
> buffer made up of integers but it is a waste of memory when I can use
> 1-bit for a pixel instead of 32-bits.  What is the best way to do that?
> I need to switch to the more efficient way since Java complains
> OutOfMemory exception on large images
> 
> Eric Chao
> [EMAIL PROTECTED]
> Merlin Software Technologies Inc.
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: off topic (code problem)

1999-11-02 Thread schen



On Tue, 2 Nov 1999, Yohans Mendoza wrote:

> here's the piece, plese help
> 
> public STable(Vector fieldsv, Vector rowsv)
>   {
> originalRows = (Vector)rowsv.clone();
>   rows = (Vector)rowsv.clone();
>   ...
>   }
> now, the problem is that when rows changes originalRows changes too.
> the parameter is a vector of vectors, so I'm guessing that's messging
> things up, right? 

You need to clone every element in the Vector also.  By default, Vector's
clone() only does a shallow copy, whereas you seem to want a deep copy.

Remember that Java uses a reference data model, so when you clone the
Vector, the second vector "rows" has copies of the references from the
first vector "originalRows", but the references STILL point back to the
original objects in "originalRows".  Thus, adding or removing elements
from the cloned vector will work as expected, but changing the actual
elements in the vector will affect the original.

A basic Java mailing list such as those hosted by Sun or the Java
newsgroups will be more helpful here.

. . . Sean.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Path

1999-11-02 Thread Héctor Gibrán Ceballos Cancino



Excuse me, but I'm new in this.
I'm still configuring the JDK 1.1.7 in a 
computer with Redhat 6.0. 
What environment variables should I set and how 
should I do it?
I'm trying to configure AnyJ but when try to 
execute it I get the error 
"Class not found java.lang.Thread"
 
Thanks
Hector Gibran Ceballos 
Cancino


Re: Path

1999-11-02 Thread Riyad Kalla

First all make sure you have jdk1.1.7_v3 installed (glibc2.1
compliant).

If you are trying ot run AnyJ with the 1.1.7 jre, I suggest
IBM's JRE, its much MUCH faster running AnyJ, but if you are
settings up the JDK to work with projects, I would suggest
using blackdown's 1.1.7 or 1.2 jdk, I've had better lcuk.
When I use IBM's jdk/jre I get the error you said you are
getting compulsively, I never took the time to trouble shoot
it.

-Riyad

P.S.> For all of you AnyJ users out there, a big upgrade is
comming up in another few weeks with a lot of bug fixes and
features added (not all of them right away though). Woohoo!

Héctor Gibrán Ceballos Cancino wrote:

> Excuse me, but I'm new in this.I'm still configuring the
> JDK 1.1.7 in a computer with Redhat 6.0.What environment
> variables should I set and how should I do it?I'm trying
> to configure AnyJ but when try to execute it I get the
> error"Class not found java.lang.Thread" ThanksHector
> Gibran Ceballos Cancino

--
[  Riyad Kalla  ]
[   [EMAIL PROTECTED]   ]
[   CS - Major  ]
[ University of Arizona ]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



IBM jdk1.1.8 Linux port

1999-11-02 Thread Renzo Pecoraro


Can someone tell me what the differences are between IBMs port and the
blackdown port? I am thinking speed, licensing, stability, etc.


http://www.ibm.com/developer/linux/papers/java-118.html?loc=180,t=g,p=linux078


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]