Forum: Java Jan 18th, 2006 |
| Replies: 4 Views: 1,590 Thanks for the suggestion! Horror upon horrors, it works fine from the command prompt>java -jar program.jar . But I don't want the users to have to go through that mess.
. I ended up going into... |
Forum: Java Jan 5th, 2006 |
| Replies: 4 Views: 1,590 Well, the above paths (C:...DMS-DNMS/jar and D:...DMS-DNMS/jar) are the two places where the jar is located (on Cimarron, that is. On Alpha and Beta, I don't get a directory listing because I don't... |
Forum: Java Jan 5th, 2006 |
| Replies: 4 Views: 1,590 Hello DaniWeb,
. I was hoping someone could help me with a portability issue.
. I've created a jar in JBuilder Foundation 2005. Said jar executes successfully on computers Alpha and Beta, but... |
Forum: Java Jan 5th, 2006 |
| Replies: 12 Views: 7,518 Okay... I've made another project in JBuilder. All it does is connect to the database and add a line. And it works.
Oddly, now both projects have "*mysql-connecter-*" in the classpath, but not... |
Forum: Java Dec 10th, 2005 |
| Replies: 12 Views: 7,518 Weirdness abounds. It seems to be getting a driver, a mysql one even, I just have no idea how or where it's coming from since the mysql-connector.jar isn't listed in the classpath. Except it should... |
Forum: Java Dec 10th, 2005 |
| Replies: 12 Views: 7,518 Well, bother. I was hopeful, since i was taking a user-inputted database and the user generally didn't add a "/" to the end of the host, but even after explicitly connecting to localhost:... |
Forum: Java Dec 3rd, 2005 |
| Replies: 12 Views: 7,518 More fidgeting; after changing the connection's catch statement to:
catch (SQLException ex) {
// handle any errors
System.out.println("SQLException: " + ex.getMessage());
... |
Forum: Java Dec 3rd, 2005 |
| Replies: 12 Views: 7,518 Okay, trying yours but adding error catching and helpful printlns:
public int DBtest2(String hst){
int worked = 1;
try{Class.forName("com.mysql.jdbc.Driver").newInstance();}
catch(Exception... |
Forum: Java Nov 18th, 2005 |
| Replies: 12 Views: 7,518 Okay, a rundown:
Running in JBuilder 2005
Using the following: try {
java.sql.Driver mySQLDriver = (Driver) Class.forName("com.mysql.jdbc.Driver").newInstance();
... |
Forum: Java Nov 8th, 2005 |
| Replies: 12 Views: 7,518 All right... I just downloaded MySQL 5, and the project's running on MySQL 4.0.14, and they both claim to be able to use driver 3.51. Unfortunately, after installing the 3.51 driver, the program is... |
Forum: Java Nov 7th, 2005 |
| Replies: 12 Views: 7,518 Hello Wizard!
This fellow wrote a two-step connection process; the first to just fire the Class.forName with the assumption that the driver was good, and then the next to see whether the... |
Forum: Java Nov 7th, 2005 |
| Replies: 12 Views: 7,518 Using the following:
protected void testDriver ( ) {
String drivers = "nada";
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (... |
Forum: Java Oct 19th, 2005 |
| Replies: 10 Views: 4,076 It's actually undecorated right now; I'm trying to copy the same look and feel as a JWindow, so no borders or buttons or whatnot. |
Forum: Java Oct 18th, 2005 |
| Replies: 10 Views: 4,076 As a JFrame or JWindow? Either way, I just ran it in Windows XP. UI = user interface? |
Forum: Java Oct 17th, 2005 |
| Replies: 10 Views: 4,076 I don't know whether anyone's still reading this, but I ended up changing the JWindow to an undecorated JFrame, which fixed the focus problem and hence the keylistener. It's behaving as expected... |
Forum: Java Sep 30th, 2005 |
| Replies: 10 Views: 4,076 Okay, I figured out the Base isn't getting the focus in the first place. I tried the code
this.show();
if(this.isDisplayable()) System.out.println("Displayable");
if(this.isVisible())... |
Forum: Java Sep 30th, 2005 |
| Replies: 10 Views: 4,076 In deed. There's a number of things I'd do differently if I were to make it myself, and considering how difficult some of it is to format, I'm considering remaking it anyway. Well obviously, if... |
Forum: Java Aug 15th, 2005 |
| Replies: 0 Views: 1,351 Hello, DaniWeb,
I'm trying to get better at troubleshooting, so I'd like to see what process other people go through.
I have three communication devices that aren't working in my program... a... |
Forum: Java Aug 9th, 2005 |
| Replies: 10 Views: 4,076 Well, I was hoping to avoid that; there's quite a lot of it...
Apologies in advance for the lack of commentary and the level of twistiness. I didn't write any of it to start off with, and am still... |
Forum: Java Aug 8th, 2005 |
| Replies: 10 Views: 4,076 Or rather, my program does. I'm supposedly revising someone else's working code, but the stuff I compile doesn't do quite the same thing the packaged version they did... not sure whether it's a... |