Then, on your home machine, just point any client programs to use the IP address of your work machine and its MySQL port number.
In my machine i do it like this:
C:\mysql\bin>mysql -h localhost -u root -p
Enter password:
but from home to office, not sure... can you pls give me an hint or...
i have two networked WinXp machines.
let's say machine called 'father' has java and mysql installed
now i need 'son' machine to have permission to access, from a java app, mysql in father machine.
how can i grant the accesses?
thanks in advance
i've win xp Pro, access database in odbc;
before i formated my disk, everything was fine - my site just dysplayed fine, but after that, i keep getting this error since the moment i try to login
the error msg points to this line of my script:
rs.Open strsql, "dsn=atc"
I know the script is ok...
i've trial jbuilder enterprise and, when i have something like this:
args); {
the prompt should be AFTER the {, but instead lies somewhere inside the word args and complicates very much the writing - one has to calculate, in similar situations, where to add spaces or clear or something else with...
i read the manual in
Using Ant
Writing a Simple Buildfile,
but... i dont get it: dont know where to put file names, dirs, and so on
Can anyone pls indicate me another tut or example about writing a very very simple build.xml?
thanks in advance
hi again
i checked from msdos and all files are inside .jar.
What i mean is that in my app , for instance, my FJrame has an icon, but when i run the jar, the icon doesnt show up,
when i run the app from dos, i see all North, South, East, West and Center pannes fullfilled, but from jar i only see...
Thanks for your help
i tried exactly what you recomended but the result is the same i got (after i posted): i only get A PART of the final result.
I explain better: i'm following this tut from sun about GUI and i'm building a dive log app.
I'm not over yet, and (to complicate a bit) i used a...
I have this problem: i want to create a jar file from a package called pt.rs.divelog
i use this dir:
C:\Java_Granel\Classes\pt\rs\divelog
inside this last one i've my classes and a folder named images with gifs, etc inside.
I tried creating the .mf and the .jar inside the last and first folders...
In first place i have to thank you again for your continued help
Now i made this:
i've a dir called: a
inside i have this file: HelloWorldApp.java
public class HelloWorldApp {
public static void main(String[] args) {
// escreve "Viva, Cosmos!"
System.out.println("Viva...
if i use your command to read the jar, i get this:
dos dir>java -jar a.jar
Exception in thread "main" java.lang.ClassFormatError: Adivinha (B
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at...
thanks for your answer
i get this:
META-INF/
META-INF/MANIFEST.MF
Adivinha.class
I'd like to open the jar with double click
i've win xp pro, all updates and jsdk1.4.2_03
i googled and searched for this item but coudnt find help
here's what i've:
a simple class Adivinha.class that compiles and runs perfectly
i wrote a m.txt (manifest) saying:
Main-Class: Adivinha.class
and inserted a new line at the end.
from the same dir, i made:
command line>jar cmf m.txt...
i guess i got it!!
missing // in url:
now i've it like this:
String url = "jdbc:mysql://localhost/Pedro?user=root&password=***";
no more missing driver :)))
thanks to everyone who helped me!
i changed a few things:
my code:
"import java.sql.*;
import java.util.*;
public class TesteJDBC {
public static void main(String[] args) {
Connection conn = null;
try {
// mysql-connector-j-2.0.14-bin.jar tem que estar na CLASSPATH
//String url =...
thanks for your help, sedj!
my bath file:
"
set JAVA_HOME=C:\j2sdk1.4.1_02
set PATH=%PATH%;%JAVA_HOME%\bin
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib
set MYSQL_DRIVER=C:\Documents and Settings\Rafael\Os meus...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.