File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes running class from another machine (java+mysql) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "running class from another machine (java+mysql)" Watch "running class from another machine (java+mysql)" New topic
Author

running class from another machine (java+mysql)

miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i've two winXP connected in a home network.
Lets say the machine'sname where i have MySql and SDK installed is 'father'.
Now i've this piece of code (the whole class runs ok):

My Q:
Exactly what are the changes i've to perform to have this (well, another class, since i've to change it) class to run from my another machine?
From my knoleadge i'd to change this line to:

am i right?
thanks in advance
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
SOLVED!
i had to grant access to mysql to my other machine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running class from another machine (java+mysql)
 
Similar Threads
client cant connect to mysql
SQLException
how to connect MySql
JSP and MySql
java.sql.SQLException Access Denied